Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jkawamoto/sitemap-gen

Generate a sitemap of a website managed in a git repository.
https://github.com/jkawamoto/sitemap-gen

Last synced: 13 days ago
JSON representation

Generate a sitemap of a website managed in a git repository.

Awesome Lists containing this project

README

        

# sitemap-gen
[![MIT License](http://img.shields.io/badge/license-MIT-blue.svg?style=flat)](LICENSE)
[![Build Status](https://travis-ci.org/jkawamoto/sitemap-gen.svg?branch=master)](https://travis-ci.org/jkawamoto/sitemap-gen)
[![Release](https://img.shields.io/badge/release-0.1.3-brightgreen.svg)](https://github.com/jkawamoto/sitemap-gen/releases/tag/v0.1.3)

Generate a sitemap of a website managed in a git repository.

This tool generates `sitemap.xml` from a given document root
(by default the document root is the current directory).
To determine last modification time of each html file,
this tool uses the git commit log of those files.

## Install

```
$ pip install -e git+https://github.com/jkawamoto/sitemap-gen.git
```

## Usage

~~~
sitemap-gen [-h] [--root ROOT] [--output OUTPUT] [--tracked-files] base_url

Generate a sitemap of a website managed in a git repository.

positional arguments:
base_url Base URL of the web site.

optional arguments:
-h, --help show this help message and exit
--root ROOT Document root of the web site. (Default: current dir)
--output OUTPUT Output filename. (Default: sitemap.xml)
--tracked-files If set, only tracked files will be included in the sitemap.
~~~

## License
This software is released under the MIT License, see [LICENSE](LICENSE).