Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Links

The source of this chapter links to other chapters by their .md paths:

In the output:

  • HTML links point at .html pages, as usual for mdBook.
  • Per-chapter .md files keep relative .md links. A link to a README.md chapter is changed to index.md, its published path.
  • llms-full.txt has every chapter in one file, so the links are rewritten to work from there.

After the build, mdbook-llms checks the relative links in llms.txt and in every chapter’s .md file. A missing target, such as a typo or a chapter left out of SUMMARY.md, prints a warning like this and the build carries on:

warning: mdbook-llms: broken link in example/links.md: nowhere.md

Anchors and external URLs are not checked. This repository’s just snapshot treats these warnings as errors.

mdBook publishes a README.md chapter as index.html, but its HTML renderer does not rewrite links to it. A link like [Overview](README.md) becomes README.html, which does not exist, so it is broken in the HTML site.

mdbook-llms changes these links to index.md in its own output, but cannot fix the HTML. This book avoids linking to README.md chapters for that reason.