crystal_docs_sitemap

Generator for Crystal API 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

  1. Fork it (https://github.com/straight-shoota/crystal_docs_sitemap/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

Repository

crystal_docs_sitemap

Owner
Statistic
  • 1
  • 0
  • 0
  • 0
  • 0
  • over 4 years ago
  • September 5, 2019
License

MIT License

Links
Synced at

Fri, 03 May 2024 21:59:57 GMT

Languages