mdBook Documentation Generator
Transform Markdown into beautiful, searchable documentation instantly
❌ Creating and maintaining well-organized technical documentation from scratch is time-consuming and requires managing multiple file formats and configurations.
✅ Users can quickly build, customize, and deploy professional documentation sites directly from Markdown files with minimal configuration.
- ✓Convert Markdown files into static HTML documentation sites
- ✓Customize themes and styling with index.hbs templates
- ✓Configure builds with book.toml for flexible project setup
- ✓Deploy to GitHub Pages, GitLab Pages, and CI/CD pipelines
- ✓Enable full-text search and MathJax support for technical content
👁 3 views · 📦 0 installs
Free to install — no account needed
Copy the command below and paste into your agent.
Instant access • No coding needed • No account needed
What you get in 5 minutes
- Full skill code ready to install
- Works with 7 AI agents
- Lifetime updates included
Run this helper
Answer a few questions and let this helper do the work.
▸Advanced: use with your AI agent
Description
--- name: mdbook description: >- This skill should be used when the user asks about "mdBook", "mdbook", "book.toml", "SUMMARY.md", "mdbook build", "mdbook serve", "mdbook init", "mdbook watch", "mdbook test", "mdbook clean", "mdBook configuration", "mdBook preprocessor", "mdBook renderer", "mdBook backend", "mdBook theme", "mdBook syntax highlighting", "mdBook MathJax", "mdBook search", "mdBook CI deployment", "mdBook GitHub Pages", "mdBook GitLab Pages", "mdBook custom theme", "index.hbs", "mdBook editor", "mdBook markdown", "mdBook include files", "mdBook hiding code lines", or any topic related to creating, configuring, theming, building, or deploying documentation books with mdBook. version: 0.1.0 --- # mdBook Documentation Complete reference for [mdBook](https://rust-lang.github.io/mdBook/), the Rust-based tool for creating books from Markdown. Auto-generated from the official guide at https://github.com/rust-lang/mdBook. The `references/` directory contains the full, unmodified guide markdown, updated daily. ## Directives - Base all answers on the official mdBook documentation in the reference files below. - Use correct `book.toml` (TOML) syntax for configuration examples. - Use correct `SUMMARY.md` format for table of contents structure. - Distinguish between **built-in preprocessors** (links, index) and **custom preprocessors**. - Distinguish between **built-in renderers** (HTML) and **alternative backends** (pdf, epub, etc.). ## Reference Files Identify the topic from the user's question, then read the matching reference file: ### Getting Started | Topic | File | |-------|------| | Overview and introduction | **`references/overview.md`** | | Installation (cargo, binaries) | **`references/installation.md`** | | Creating a new book | **`references/creating-a-book.md`** | | Reading / navigating books | **`references/reading-books.md`** | ### CLI | Topic | File | |-------|------| | All CLI commands (init, build, watch, serve, test, clean, completions) | **`references/cli.md`** | ### Book Format | Topic | File | |-------|------| | SUMMARY.md structure and syntax | **`references/summary-format.md`** | | Markdown features and extensions | **`references/markdown.md`** | | mdBook-specific features (hiding code, include, playground) | **`references/mdbook-specific.md`** | | MathJax support | **`references/mathjax.md`** | ### Configuration | Topic | File | |-------|------| | book.toml (general, preprocessors, renderers, environment variables) | **`references/configuration.md`** | ### Theme | Topic | File | |-------|------| | Theme customization (index.hbs, syntax highlighting, editor) | **`references/theme.md`** | ### For Developers | Topic | File | |-------|------| | Writing preprocessors and backends (Rust API) | **`references/for-developers.md`** | ### Deployment | Topic | File | |-------|------| | CI/CD (GitHub Actions, GitLab CI) | **`references/continuous-integration.md`** | ## Live Fetching When reference files are insufficient, fetch the latest docs from raw GitHub: ``` https://raw.githubusercontent.com/rust-lang/mdBook/master/guide/src/<path>.md ``` Examples: - `https://raw.githubusercontent.com/rust-lang/mdBook/master/guide/src/format/configuration/general.md` - `https://raw.githubusercontent.com/rust-lang/mdBook/master/guide/src/cli/build.md` - `https://raw.githubusercontent.com/rust-lang/mdBook/master/guide/src/format/theme/syntax-highlighting.md` ## Strategy 1. Identify the topic from the user's question. 2. Read the matching reference file from the tables above. 3. Answer with correct TOML syntax for `book.toml` and Markdown for `SUMMARY.md`. 4. If more detail is needed, fetch from the corresponding raw GitHub URL. 5. For custom preprocessors/backends, reference `references/for-developers.md`. 6. For CI deployment, check `references/continuous-integration.md`. ## Quick Reference ### Create a new book ```bash mdbook init my-book cd my-book mdbook serve --open # preview at http://localhost:3000 ``` ### Project structure ``` my-book/ ├── book.toml # Configuration ├── src/ │ ├── SUMMARY.md # Table of contents │ ├── chapter_1.md │ └── chapter_2/ │ ├── section_1.md │ └── section_2.md └── book/ # Generated output (after build) ``` ### SUMMARY.md syntax ```markdown # Summary [Introduction](README.md) - [Chapter 1](chapter_1.md) - [Section 1.1](chapter_1/section_1.md) - [Chapter 2](chapter_2.md) --- [Appendix](appendix.md) ``` ### book.toml basics ```toml [book] title = "My Book" authors = ["Author Name"] language = "en" src = "src" [build] build-dir = "book" [output.html] default-theme = "light" preferred-dark-theme = "ayu" git-repository-url = "https://github.com/user/repo" ``` ### Build commands ```bash mdbook build # build to book/ mdbook serve # live preview server mdbook watch # rebuild on changes mdbook test # test Rust code samples mdbook clean # remove build artifacts ```
Security Status
Verified
Manually verified by security team
Related AI Tools
More Grow Business tools you might like
codex-collab
FreeUse when the user asks to invoke, delegate to, or collaborate with Codex on any task. Also use PROACTIVELY when an independent, non-Claude perspective from Codex would add value — second opinions on code, plans, architecture, or design decisions.
Rails Upgrade Analyzer
FreeAnalyze Rails application upgrade path. Checks current version, finds latest release, fetches upgrade notes and diffs, then performs selective upgrade preserving local customizations.
Asta MCP — Academic Paper Search
FreeDomain expertise for Ai2 Asta MCP tools (Semantic Scholar corpus). Intent-to-tool routing, safe defaults, workflow patterns, and pitfall warnings for academic paper search, citation traversal, and author discovery.
Hand Drawn Diagrams
FreeCreate hand-drawn Excalidraw diagrams, flows, explainers, wireframes, and page mockups. Default to monochrome sketch output; allow restrained color only for page mockups when the user explicitly wants webpage-like fidelity.
Move Code Quality Checker
FreeAnalyzes Move language packages against the official Move Book Code Quality Checklist. Use this skill when reviewing Move code, checking Move 2024 Edition compliance, or analyzing Move packages for best practices. Activates automatically when working
Claude Memory Kit
Free"Persistent memory system for Claude Code. Your agent remembers everything across sessions and projects. Two-layer architecture: hot cache (MEMORY.md) + knowledge wiki. Safety hooks prevent context loss. /close-day captures your day in one command. Z