/mdbook-cms

A preprocessor bring cms to mdbook.

Primary LanguageRust

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