#mdbook #markdown #cms #summary

bin+lib mdbook-cms

A preprocessor to add cms

1 unstable release

0.1.1 Aug 29, 2021
0.1.0 Aug 29, 2021

#361 in Text processing

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

~10MB
~198K SLoC