Repository navigation
docs: build the docs with MkDocs NG and publish llms.txt - #585
Conversation
MkDocs 1.x has had no release since 1.6.1, and Material for MkDocs reaches end of life in 2027; every build warned about both. Use the maintained forks mkdocs-ng and mkdocs-ng-material (same theme, same mkdocs.yml, same plugins), and keep upstream mkdocs out of the uv environment with an override. Enable MkDocs NG's llms_txt plugin, which writes llms.txt and a Markdown copy of every page for AI agents. Keep the old nav labels. Closes #579
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Closes #579. You said llms.txt is fine and the MkDocs NG move doesn't matter to you for now;
llms.txtcomes from MkDocs NG'sllms_txtplugin, so this PR does both. It is the same change as cpp-linter/cpp-linter-action#534, which you merged.What changes
docsgroup:mkdocs→mkdocs-ng==1.11.2,mkdocs-material→mkdocs-ng-material==9.8.1. Samematerialtheme, samemkdocs.yml, same plugins.pyproject.toml: a uv override keeps upstreammkdocs(still a dependency ofmkdocs-gen-filesandmkdocs-include-markdown-plugin) out of the environment;mkdocs-ngprovides themkdocsmodule.uv.lockupdated with the same uv lock format (revision 5).mkdocs.yml: enablellms_txt. MkDocs NG labels a bare nav entry with the page's title ("Home" would become "cpp-linter-rs", "Migration" → "Migrating from v1", "Permissions" → "Token Permissions"), so those three entries get explicit titles and the nav looks as before.llms.Before / after
uv sync --package cli-gen --all-groupsthenuv run mkdocs build --strict --config-file docs/mkdocs.yml(whatnur docs --buildruns):WARNING: MkDocs may break support for all existing plugins and themes soon!mkdocs/mkdocs-materialinstalledmkdocs-ng,mkdocs-ng-material)llms.txtand a.mdcopy of all 14 pages, incl.cli.mdwith the generated options (420 lines) and the four changelogsrel="external", the generator tag and asset hashes changeThe generated
llms.txt:cspell is clean on the changed files.
Summary by CodeRabbit