# Diagnose missing mdBook chapters from SUMMARY.md

Canonical: https://githtml.com/guides/mdbook-summary-build-missing-chapters
Published: 2026-11-23
Publisher: WaveTech LLC / gitHtml

Compare mdBook's SUMMARY.md with the actual chapter files and configured source directory before building. The summary defines the book structure, and configured behavior can create missing chapter files. Verify the output and working-tree changes after a local build so a typo in navigation does not quietly become an empty chapter that looks intentional.

## Read the summary as the book's structural contract

Start with the chapter entry that is missing or empty in the rendered book. Compare its path with the real file, including case and relative location. Check the configured source directory and any nested chapter structure. Do not assume that every Markdown file in the repository becomes part of the book automatically. Decide whether the page belongs in the main reading sequence, as an optional linked reference, or outside this book. A summary should express a coherent route through the material, not simply reproduce every directory. Record intended chapter order before changing paths so a syntax repair does not unintentionally reorder the lesson.

## Check creation behavior before the first build

mdBook can create files referenced by the summary when they are missing, depending on configuration. Inspect that setting before running a build in a sensitive or already modified checkout. The sample disables automatic creation for a review-oriented configuration, but confirm the current version's behavior and preserve existing project choices. Use the normal local build command after reconciling obvious path errors. Review any newly created or changed source files rather than assuming a documentation build only writes output. An empty chapter produced from a misspelled link is not a successful recovery; it is evidence that the source relationship needs correction.

````toml
[build]
create-missing = false

# Run separately in the terminal:
# mdbook build
````

## Verify chapter content and reading sequence

Open the rendered book and follow the sidebar and next-chapter navigation. Confirm that every expected chapter contains the intended text, not merely the expected title. Check links arriving from other chapters after moving or renaming files. Inspect the configured output directory and preserve related assets when reviewing the book as a site. Do not infer that a single page is self-contained because the book built successfully. Keep the source summary, configuration, and accepted output route together in the review notes. When adding a new chapter later, repeat the path and content check before treating its appearance in navigation as proof that the lesson is complete.

1. Compare every affected summary path with the actual source file and configured source directory.
2. Inspect create-missing behavior before running the build.
3. Review source changes and empty generated chapters after the command.
4. Follow chapter navigation and confirm substantive content, not only titles.

## Sources and further reading

- [mdBook build command](https://rust-lang.github.io/mdBook/cli/build.html)
- [mdBook general configuration](https://rust-lang.github.io/mdBook/format/configuration/general.html)

## Related guides

- [Distinguish MkDocs drafts, exclusions, and unlisted pages](https://githtml.com/guides/mkdocs-drafts-excluded-files-check)
- [Find why a MkDocs page is missing from navigation](https://githtml.com/guides/mkdocs-nav-page-missing)
- [Use MkDocs strict builds to investigate documentation warnings](https://githtml.com/guides/mkdocs-strict-warnings-local-review)
- [Check Pandoc citations before publishing an HTML bibliography](https://githtml.com/guides/pandoc-citations-bibliography-check)

Editorial approach: https://githtml.com/guides/about
