What mdBook Does
- Markdown to HTML — clean default theme
- SUMMARY.md — table of contents as navigation
- Search — full-text search built in
- Syntax highlighting — for code blocks
- Preprocessors — custom Markdown transforms
- Renderers — HTML (default), PDF, EPUB via plugins
- Themes — customizable CSS
- Link checking — validate internal links
- Includes — embed file contents with
{{#include}} - Rust code testing —
mdbook testruns Rust code examples
Comparison
| Tool | Language | Speed | Node.js |
|---|---|---|---|
| mdBook | Rust | Fast | No |
| Gitbook | JS | Medium | Yes |
| Docusaurus | JS | Medium | Yes |
| VitePress | JS | Fast | Yes |
| Sphinx | Python | Medium | No |
常见问题 FAQ
Q: 和 VitePress 比? A: mdBook 零依赖(单 Rust 二进制),VitePress 需要 Node.js 但支持 Vue 组件和更丰富的自定义。纯文档选 mdBook,交互式文档选 VitePress。
来源与致谢 Sources
- Docs: https://rust-lang.github.io/mdBook
- GitHub: https://github.com/rust-lang/mdBook
- License: MPL 2.0