mdbook-sitemap-generator

Crates.iomdbook-sitemap-generator
lib.rsmdbook-sitemap-generator
version0.2.0
sourcesrc
created_at2022-08-03 13:05:50.362446
updated_at2023-09-01 20:03:30.74468
descriptionUtility to generate a sitemap.xml file for an mdbook project
homepage
repositoryhttps://github.com/rxdn/mdbook-sitemap-generator
max_upload_size
id638037
size14,884
Ryan (rxdn)

documentation

README

mdbook-sitemap-generator

What is this?

mdbook-sitemap-generator is a simple utility to generate sitemap.xml files for mdbook projects.

Installation

Binaries are distributed on the Github Releases Page.

It is also possible to install this utility via cargo, using cargo install mdbook-sitemap-generator.

Usage

The utility should be run from the root of the project.

USAGE:
    mdbook-sitemap-generator [OPTIONS] --domain <DOMAIN>

OPTIONS:
    -d, --domain <DOMAIN>
    -h, --help               Print help information
    -o, --output <OUTPUT>

When running the utility, you must pass the site's domain on URL via the -d flag, for example, -d docs.example.com.

If the -o flag is not passed, the sitemap will be written to stdout.

For example:

$ ls
book  book.toml  src
$ mdbook-sitemap-generator -d docs.example.com -o book/sitemap.xml
Commit count: 3

cargo fmt