cargo-mdbook:基于 Cargo 生态的 mdbook 管理工具项目

A simple bin to exprot mdbook.

Branch1Tags0

cargo-mdbook

A tool for build-in mdbook in cargo

Version Downloads License Author

en | 简体中文

With this tool, you can use mdbook in your cargo projects.

Notes:

Before using this tool, make sure you have mdbook installed. If you don't have mdbook installed, you can install it by using this:

cargo install mdbook

Why use this tool instead of using mdbook directly?

If you have a large number of mdbook projects, using this tool can help you manage them more easily. You can write metadata in a mdbook.toml file and use this tool to build your book. Like this config (optional):

[package.metadata.mdbook]
targets = [
    "docs/en",
    "docs/zh_cn"
]
[workspace.metadata.mdbook]
targets = [
    "docs/en",
    "docs/zh_cn"
]

Then, use this command to build your book:

cargo mdbook build

Usage

cargo-mdbook - A tool for building and testing mdbook books in cargo

Usage: cargo-mdbook COMMAND ...

Available options:
    -h, --help     Prints help information
    -V, --version  Prints version information

Available commands:
    build          Builds book(s) from its markdown files
    test           Tests that book(s)'s Rust code samples compile
    clean          Deletes built book(s)
    watch          Watches book(s)'s files and rebuilds it on changes
    serve          Serves book(s), and rebuilds it on changes