Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/jkawamoto/sitemap-gen
- Owner: jkawamoto
- License: mit
- Created: 2016-12-07T10:41:12.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2024-05-06T21:51:41.000Z (6 months ago)
- Last Synced: 2024-05-06T22:42:24.212Z (6 months ago)
- Language: Python
- Size: 23.4 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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_urlGenerate 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).