Skip to content

docs: build the docs with MkDocs NG and publish llms.txt - #585

Merged
shenxianpeng merged 2 commits into
mainfrom
claude/project-thread-ao33wf-579
Nov 16, 2026
Merged

shenxianpeng merged 2 commits into
mainfrom
claude/project-thread-ao33wf-579

Conversation

@shenxianpeng

@shenxianpeng shenxianpeng commented Nov 16, 2026 •

Copy link
Copy Markdown
Member

Closes #579. You said llms.txt is fine and the MkDocs NG move doesn't matter to you for now; llms.txt comes from MkDocs NG's llms_txt plugin, so this PR does both. It is the same change as cpp-linter/cpp-linter-action#534, which you merged.

What changes

  • docs group: mkdocs → mkdocs-ng==1.11.2, mkdocs-material → mkdocs-ng-material==9.8.1. Same material theme, same mkdocs.yml, same plugins.
  • Root pyproject.toml: a uv override keeps upstream mkdocs (still a dependency of mkdocs-gen-files and mkdocs-include-markdown-plugin) out of the environment; mkdocs-ng provides the mkdocs module. uv.lock updated with the same uv lock format (revision 5).
  • mkdocs.yml: enable llms_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.
  • cspell: add llms.

Before / after

uv sync --package cli-gen --all-groups then uv run mkdocs build --strict --config-file docs/mkdocs.yml (what nur docs --build runs):

main @ eb32556 this branch
Build passes, with the "Warning from the Material for MkDocs team" (MkDocs 2.0) box and WARNING: MkDocs may break support for all existing plugins and themes soon! passes, no warnings
mkdocs / mkdocs-material installed yes no (mkdocs-ng, mkdocs-ng-material)
New output – llms.txt and a .md copy of all 14 pages, incl. cli.md with the generated options (420 lines) and the four changelogs
Nav labels Home, Command Line Interface, Migration, …, Third-party Licenses identical
HTML – same content; external links gain rel="external", the generator tag and asset hashes change

The generated llms.txt:

# Cpp-Linter

> Documentation for the cpp-linter package.

## Pages

- [Home](https://cpp-linter.github.io/cpp-linter-rs/index.md)
- [Command Line Interface](https://cpp-linter.github.io/cpp-linter-rs/cli.md)
- [Migration](https://cpp-linter.github.io/cpp-linter-rs/migration.md)
- [Pull Request Review Caveats](https://cpp-linter.github.io/cpp-linter-rs/pr-review-caveats.md)
- [Permissions](https://cpp-linter.github.io/cpp-linter-rs/permissions.md)
- [Supported Git Servers](https://cpp-linter.github.io/cpp-linter-rs/git-servers.md)
- [Python Binding](https://cpp-linter.github.io/cpp-linter-rs/python.md)
- [Node.js Binding](https://cpp-linter.github.io/cpp-linter-rs/node.md)
- [Contributing](https://cpp-linter.github.io/cpp-linter-rs/contributing.md)
- [Third-party Licenses](https://cpp-linter.github.io/cpp-linter-rs/other-licenses.md)

## Changes

- [Changes in cpp-linter](https://cpp-linter.github.io/cpp-linter-rs/changelog/cpp-linter.md)
- [Changes in Python Binding](https://cpp-linter.github.io/cpp-linter-rs/changelog/cpp-linter-py.md)
- [Changes in Node.js binding](https://cpp-linter.github.io/cpp-linter-rs/changelog/cpp-linter-js.md)
- [Changes in clang-tools-manager](https://cpp-linter.github.io/cpp-linter-rs/changelog/clang-tools-manager.md)

cspell is clean on the changed files.

Summary by CodeRabbit

  • Documentation
    • Updated the documentation site’s navigation labels and page organization.
    • Refreshed the documentation site’s publishing setup, including support for additional generated documentation outputs.
    • Updated the site’s underlying documentation platform and theme. These changes affect how documentation is presented and published, without changing the documented product features.

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
@coderabbitai

coderabbitai Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The documentation dependencies switch to MkDocs NG packages. The configuration enables the llms_txt plugin and sets explicit navigation labels. The spelling configuration adds llms to its recognized words.

Changes: Documentation tooling

Layer / File(s) Summary
MkDocs NG dependency setup
docs/pyproject.toml, pyproject.toml
The docs dependency pins change to mkdocs-ng and mkdocs-ng-material. A uv override excludes upstream mkdocs.
Documentation build configuration
docs/mkdocs.yml, cspell.config.yml
The navigation labels become explicit, the llms_txt plugin is enabled, and cspell recognizes llms.

Estimated code review effort: 2 (Simple) | ~10 minutes

Merge Risk: Minimal · up to 7bc51

This swaps the documentation toolchain to MkDocs NG and adds llms.txt output. It does not touch runtime code, so production users are unaffected. The risk of merging is minimal.

Pre-merge checks: Passed 3 · Inconclusive 1

Failed Failed checks: 1 inconclusive

Check name Status Explanation Resolution
Linked Issues check Inconclusive Linked issue #579 is direct and open. Its requirements are: (1) replace mkdocs and mkdocs-material with mkdocs-ng and mkdocs-ng-material; (2) enable the llms_txt plugin in docs/mkdocs.yml; (3) keep up… Provide independent evidence that uv.lock resolves mkdocs-ng and mkdocs-ng-material and omits upstream mkdocs. For example, confirm that uv lock --check succeeds on the reviewed head, or reviewers can run `uv run mkdocs build --strict --c…
Passed Passed checks: 3 passed

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title "docs: build the docs with MkDocs NG and publish llms.txt" matches the main changes. The docs dependencies move from mkdocs and mkdocs-material to mkdocs-ng and mkdocs-ng-material, and the l…
Out of Scope Changes check Passed All reviewable changes connect to #579. The docs/pyproject.toml dependency swap, the pyproject.toml uv override, and the docs/mkdocs.yml llms_txt entry are the three edits the issue lists. The explici…
Full details: Title check

Explanation

The title "docs: build the docs with MkDocs NG and publish llms.txt" matches the main changes. The docs dependencies move from mkdocs and mkdocs-material to mkdocs-ng and mkdocs-ng-material, and the llms_txt plugin is enabled to generate llms.txt. The title is short, specific, and follows the conventional-commit style. The title does not mention the UV override or cspell change, but those are supporting changes.

Full details: Out of Scope Changes check

Explanation

All reviewable changes connect to #579. The docs/pyproject.toml dependency swap, the pyproject.toml uv override, and the docs/mkdocs.yml llms_txt entry are the three edits the issue lists. The explicit nav titles for Home, Migration, and Permissions keep existing labels after the move; the issue names this effect and describes keeping old labels as the preferred result. The cspell addition of llms supports the new llms.txt term. The uv.lock change is the lock refresh the issue requires, but its content is excluded from review, so it is not assessed here. No unrelated file or feature change appears in the summary.

Full details: Linked Issues check

Explanation

Linked issue #579 is direct and open. Its requirements are: (1) replace mkdocs and mkdocs-material with mkdocs-ng and mkdocs-ng-material; (2) enable the llms_txt plugin in docs/mkdocs.yml; (3) keep upstream mkdocs out of the uv environment with an override; (4) run uv lock; (5) produce llms.txt and Markdown copies of pages, including cli.md, migration, binding pages, and changelogs. The summary shows requirements 1, 2, and 3 in reviewable files: docs/pyproject.toml pins mkdocs-ng==1.11.2 and mkdocs-ng-material==9.8.1; docs/mkdocs.yml enables llms_txt; pyproject.toml sets override-dependencies to mkdocs; sys_platform == 'never'. Requirement 4 depends on uv.lock, which is listed in ignored_files under the !**/*.lock rule. The lock content is excluded from review, so this cannot be verified. The build result (llms.txt and 14 .md pages) is stated only in the PR description and is not independently verified from reviewable evidence. Requirement 5 therefore rests on the author's reported build output. No automated test change is required by the issue. The nav labels and cspell entry are supporting changes.

Resolution

Provide independent evidence that uv.lock resolves mkdocs-ng and mkdocs-ng-material and omits upstream mkdocs. For example, confirm that uv lock --check succeeds on the reviewed head, or reviewers can run uv run mkdocs build --strict --config-file docs/mkdocs.yml and confirm llms.txt and the .md copies are generated.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI (base), Organization UI (inherited)
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 27da30c7-97cb-4383-9b72-c5f4d8aefa17
Commits

Reviewing files that changed from the base of the PR and between db2acce and 7bc5184.

Files ignored due to path filters: 1

  • uv.lock is excluded by !**/*.lock
Files selected for processing: 4

  • cspell.config.yml
  • docs/mkdocs.yml
  • docs/pyproject.toml
  • pyproject.toml

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@shenxianpeng shenxianpeng added the documentation Improvements or additions to documentation label Nov 16, 2026 — with Claude
@shenxianpeng shenxianpeng self-assigned this Nov 16, 2026
@shenxianpeng
shenxianpeng merged commit d23b196 into main Nov 16, 2026
51 checks passed
@shenxianpeng
shenxianpeng deleted the claude/project-thread-ao33wf-579 branch November 16, 2026 20:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs: move the v2 docs to MkDocs NG and publish llms.txt?

2 participants