mdbook-indexing

A preprocessor for mdbook to support building an index.

Installation

To use, install the tool

sh cargo install mdbook-indexing

and add it as a preprocessor in book.toml:

toml [preprocessor.indexing]

Configuration

See Instead

Key-value pairs in the [preprocessor.indexing.see_instead] section of the book.toml configuration file indicate index entries where the key should point to the value. Thus an entry like:

toml "unit type" = "`()`"

would result in an index entry that says: "unit type, see ()" (instead of a list of locations).

Nested Entries

Key-value pairs in the [preprocessor.indexing.nest_under] section of the book.toml configuration file indicate index entries where the entry for the key should be nested under value. Thus an entry like:

toml "generic type" = "generics"

would result in the index entry for "generic type" being only listed as an indented sub-entry under "generics".

Limitations