Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

安装

安装预处理器

crates.io 安装:

cargo install mdbook-modern-dot

从源码安装:

cargo install --path .

安装 Graphviz

预处理器在构建时会调用 dot 命令,需单独安装 Graphviz

# macOS
brew install graphviz

# Debian/Ubuntu
sudo apt install graphviz

验证安装:

dot -V

若未找到 dotmdbook build 会失败并提示安装方法。

安装 mdBook

构建书籍还需要 mdBook:

cargo install mdbook