crystal_docs_sitemap
docs-sitemap
This is a simple tool to build a sitemap index for Crystal API docs.
See https://github.com/crystal-lang/crystal-website/issues/79 for details.
- it queries the index file for each API version on https://crystal-lang.org/api
- it extracts each link from the navigation menu
- the links for each version are placed in a separate sitemap file and given a specific priority depending on how recent the version is
- references to all sitemaps are collected in a sitemap index file
Usage
> crystal run src/app.cr
The program generates the individual sitemap files in output/sitemaps/
and the sitemap index at output/sitemap-index.xml.gz
.
Contributing
- Fork it (https://github.com/straight-shoota/crystal_docs_sitemap/fork)
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
Contributors
- Johannes Müller - creator and maintainer
Repository
crystal_docs_sitemap
Owner
Statistic
- 1
- 0
- 0
- 0
- 0
- about 5 years ago
- September 5, 2019
License
MIT License
Links
Synced at
Sun, 17 Nov 2024 10:56:40 GMT
Languages