Repository navigation
docs: build the docs with MkDocs NG and publish llms.txt - #534
Conversation
MkDocs 1.x has had no release since 1.6.1 and Material for MkDocs reaches end of life on 2027-05-05; every build printed both warnings. Switch the docs group to mkdocs-ng and mkdocs-ng-material, the maintained forks with the same `material` theme and configuration, and keep the upstream mkdocs package (still required by the plugins) out of the environment with a uv override. Turn on the llms_txt plugin of MkDocs NG: the build now writes llms.txt and a Markdown copy of every page for AI agents. Pull the example workflows into the Recipes page with include-markdown instead of pymdownx.snippets, so its Markdown copy holds the YAML rather than `--8<--` lines; the HTML is unchanged. Give the site a real description, which llms.txt and the pages' meta description use.
Cpp-Linter Report
|
|
No actionable comments were generated in the recent review. WalkthroughThe documentation build configuration now uses MkDocs NG packages and the ChangesDocumentation updates
Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk:
|
Summary
Build the docs with the maintained forks of MkDocs and Material, and publish them for AI agents.
docsgroup now usesmkdocs-ngandmkdocs-ng-material: samematerialtheme, samemkdocs.yml, same plugins. The website already builds with them.mkdocs, whichmkdocs-ngprovides. A uv override with a marker that never matches keeps the upstream package out of the environment.llms_txtplugin of MkDocs NG writesllms.txtand a Markdown copy of every page.include-markdowninstead ofpymdownx.snippets. Snippets expand only when the HTML is rendered, so the Markdown copy of that page held--8<--lines instead of the YAML. The HTML is the same.site_descriptionwas "Developer documentation from sources." It now describes the action; llms.txt and pages without their own description use it.llmsadded to cspell words.Tested
uv sync --group docs(as the shared docs workflow runs it): upstreammkdocsandmkdocs-materialare not installed.uv run mkdocs build --strictpasses, with no end-of-life or MkDocs 2 warning.main: the new files arellms.txtand seven page.mdfiles. In the HTML, external links gainrel="external"and the generator tag changes; content is otherwise identical. Screenshots of the Recipes page before and after match.Related Issues
Relates to cpp-linter/cpp-linter-rs#579 (same change proposed for the v2 docs).
Summary by CodeRabbit
llms.txtand Markdown versions of documentation pages.