Esta página se muestra en inglés. Una traducción al español está en curso.
ScriptsApr 12, 2026·2 min de lectura

mdBook — Create Books from Markdown Like Gitbook in Rust

mdBook creates online books from Markdown files, similar to Gitbook but implemented in Rust. Used for the official Rust Book, Cargo Book, Tokio Tutorial, and many open-source documentation sites. Fast builds and a clean default theme.

Introducción

mdBook is a command-line tool and Rust library to create online books from Markdown files. Similar to Gitbook but implemented in Rust — fast, single binary, no Node.js required. Used for the official Rust Book, Cargo Book, Tokio Tutorial, Bevy Book, and many Rust ecosystem docs.

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 testingmdbook test runs 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: Compared to VitePress? A: mdBook is zero-dependency (single Rust binary); VitePress requires Node.js but supports Vue components and richer customization. Pick mdBook for pure docs and VitePress for interactive documentation.

Sources

Discusión

Inicia sesión para unirte a la discusión.
Aún no hay comentarios. Sé el primero en compartir tus ideas.

Activos relacionados