Crates.io | mdbook-cms |
lib.rs | mdbook-cms |
version | 0.1.1 |
source | src |
created_at | 2021-08-29 16:06:37.599473 |
updated_at | 2021-08-29 16:18:16.140615 |
description | A preprocessor to add cms. |
homepage | https://crates.io/crates/mdbook-cms |
repository | https://github.com/alongwy/mdbook-cms |
max_upload_size | |
id | 443822 |
size | 73,950 |
A preprocessor bring cms to mdbook.
cargo install mdbook-cms
#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