Skip to content

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

Merged
2bndy5 merged 1 commit into
mainfrom
claude/project-thread-q3asba
Nov 16, 2026
Merged

2bndy5 merged 1 commit into
mainfrom
claude/project-thread-q3asba

Conversation

@shenxianpeng

@shenxianpeng shenxianpeng commented Nov 15, 2026 •

Copy link
Copy Markdown
Member

Summary

Build the docs with the maintained forks of MkDocs and Material, and publish them for AI agents.

  • MkDocs 1.x has had no release since 1.6.1 (2024-08), and Material for MkDocs reaches end of life on 2027-05-05. Every build printed both warnings. The docs group now uses mkdocs-ng and mkdocs-ng-material: same material theme, same mkdocs.yml, same plugins. The website already builds with them.
  • The plugins still depend on mkdocs, which mkdocs-ng provides. A uv override with a marker that never matches keeps the upstream package out of the environment.
  • The llms_txt plugin of MkDocs NG writes llms.txt and a Markdown copy of every page.
  • The Recipes page pulls the example workflows in with include-markdown instead of pymdownx.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_description was "Developer documentation from sources." It now describes the action; llms.txt and pages without their own description use it.
  • llms added to cspell words.

Tested

  • uv sync --group docs (as the shared docs workflow runs it): upstream mkdocs and mkdocs-material are not installed. uv run mkdocs build --strict passes, with no end-of-life or MkDocs 2 warning.
  • Compared with a build of main: the new files are llms.txt and seven page .md files. In the HTML, external links gain rel="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

  • Documentation
    • Updated the examples page to display current workflow examples for formatting, linting, and pull-request comments, including workflows for contributions from forks.
    • Clarified the documentation site description to reflect the project’s pull-request formatting and linting capabilities.
    • Added generated llms.txt and Markdown versions of documentation pages.

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.
@shenxianpeng
shenxianpeng requested a review from a team as a code owner November 15, 2026 22:43
@shenxianpeng
shenxianpeng requested review from 2bndy5 and removed request for a team November 15, 2026 22:43
@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Nov 15, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Cpp-Linter Report ⚠️

Some files did not pass the configured checks!

clang-format (v16.0.6) reports: 2 file(s) not formatted
  • docs/examples/demo/demo.cpp
  • docs/examples/demo/demo.hpp
clang-tidy (v16.0.6) reports: 7 concern(s)

✨ Powered by cpp-linter -- ⭐ Star • ❤️ Sponsor • 💬 Feedback

@shenxianpeng shenxianpeng self-assigned this Nov 15, 2026
@coderabbitai

coderabbitai Bot commented Nov 15, 2026

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The documentation build configuration now uses MkDocs NG packages and the llms_txt plugin. The site description and spelling word list are updated. Six example entries now include workflow files through template includes.

Changes

Documentation updates

Layer / File(s) Summary
Documentation build configuration
pyproject.toml, mkdocs.yml, cspell.config.yml
The docs dependency group switches to mkdocs-ng packages and adds an override for mkdocs. The MkDocs configuration adds the llms_txt plugin and updates the site description. The spelling word list adds llms.
Workflow example includes
docs/examples/index.md
Six examples replace YAML snippet directives with template includes for their corresponding workflow files.

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

Merge Risk: Minimal · up to 40663

This change moves the documentation build to maintained MkDocs forks and publishes llms.txt. Only docs tooling and content are affected, with no runtime impact on the action itself. Merge risk is minimal.

Pre-merge checks: Passed 4

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 change. The PR swaps the docs dependency group to mkdocs-ng and mkdocs-ng-material, and enables the llms_txt plugi…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "docs: build the docs with MkDocs NG and publish llms.txt" matches the main change. The PR swaps the docs dependency group to mkdocs-ng and mkdocs-ng-material, and enables the llms_txt plugin to publish llms.txt and Markdown copies of each page. The title is concise and specific, and a teammate scanning history would understand the primary change. Other edits (cspell word, examples snippet replacement, site_description, uv override) are supporting details that the title does not need to cover.

  • 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: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 6809e995-1d89-4ed5-a303-0c2f16064673
Commits

Reviewing files that changed from the base of the PR and between 365e676 and 4066366.

Files ignored due to path filters: 1

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

  • cspell.config.yml
  • docs/examples/index.md
  • mkdocs.yml
  • pyproject.toml

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

@2bndy5
2bndy5 merged commit 7af087b into main Nov 16, 2026
49 checks passed
@2bndy5
2bndy5 deleted the claude/project-thread-q3asba branch November 16, 2026 01:05
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.

2 participants