#cms #mdbook #summary #markdown

bin+lib mdbook-cms

A preprocessor to add cms

1 unstable release

0.1.1 Aug 29, 2021
0.1.0 Aug 29, 2021

#19 in #cms

MIT license

21KB
484 lines

mdbook-cms

A preprocessor bring cms to mdbook.

install

cargo install mdbook-cms

Use cms mdbook preprocessor.

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

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

[build]
create-missing = false

#use cms preprocessor
[preprocessor.cms]
# meta/first-line/filename
title = "meta"

[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

Dependencies

~13–24MB
~349K SLoC