mdbook-auto-gen-summary 0.1.2

A preprocessor and cli tool for mdbook to auto generate summary.
mdbook-auto-gen-summary-0.1.2 is not a library.

mdbook-auto-gen-book-summary

A preprocessor and cli tool for mdbook to auto generate summary.

install

cargo install mdbook-auto-gen-summary

It can be use in two ways:

1. Use as a cli tool.

mdbook-auto-gen-summary gen /path/to/your/mdbook/src

This will walk your mdbook src dir and generate the book summary in /path/to/your/mdbook/src/SUMMARY.md

2. Use as mdbook preprocessor.

#cat /path/to/your/mdbook/book.toml

[book]
authors = []
language = "en"
multilingual = false
src = "src"

[build]
create-missing = false

#use as mdbook preprocessor
[preprocessor.auto-gen-summary]

[output.html.fold]
enable = true
level = 0

When you run

mdbook serve

Or

mdbook build

this will also walk your mdbook src dir and generate the book summary in /path/to/your/mdbook/src/SUMMARY.md