A tool that automatically generates SUMMARY.md for mdBook projects.

What Problem Does This Solve?

Writing a technical book with mdBook — every new chapter means manually editing SUMMARY.md?

As chapters grow, keeping the table of contents in sync becomes tedious and error-prone.

The Solution

This tool scans your directory structure and generates SUMMARY.md automatically.

  • Auto-scan — recursively scans the target directory
  • Smart filtering — supports .gmsignore files
  • One-command generationgms -d src -o src/SUMMARY.md

Quick Start

cargo install gen-mdbook-summary
gms -d src -o src/SUMMARY.md