Cette page est affichée en anglais. Une traduction française est en cours.
ScriptsApr 12, 2026·2 min de lecture

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.

Introduction

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

Discussion

Connectez-vous pour rejoindre la discussion.
Aucun commentaire pour l'instant. Soyez le premier à partager votre avis.

Actifs similaires