Skip to content

llms_txt: list pages outside nav, and let pages link to llms.txt - #119

Merged
shenxianpeng merged 2 commits into
mainfrom
claude/project-thread-sh24d1
Oct 31, 2026
Merged

shenxianpeng merged 2 commits into
mainfrom
claude/project-thread-sh24d1

Conversation

@shenxianpeng

@shenxianpeng shenxianpeng commented Oct 31, 2026 •

Copy link
Copy Markdown
Member

Two small improvements to the llms_txt plugin (#105), found while building the docs site for the new Sumi theme (mkdocs-ng/mkdocs-sumi):

  1. Pages outside nav are listed in llms.txt under a final "Other pages" section. Blog posts are typically not_in_nav. They already got a Markdown copy, but agents had no way to discover them from llms.txt. Drafts stay out.
  2. Pages can link to llms.txt / llms-full.txt. A link like [llms.txt](llms.txt) used to be reported as "not found among documentation files" (and failed --strict). The plugin now registers placeholders for these files in on_files; they are still written in on_post_build as before.

Related Issue

None. Follow-up to #105.

Checklist

  • New tests added for new behavior (if applicable): test_build_pages_not_in_nav covers both changes and fails without them.
  • Documentation updated (if applicable): user-guide/configuration.md#llmstxt
  • Release notes docs/about/release-notes.md updated (if applicable)

Full unit suite passes locally (907 tests). ruff and mypy are clean on the changed module.


Generated by Claude Code

llms.txt now also lists pages that are built but not in `nav`, such as
blog posts, under "Other pages", so agents can discover them.

The plugin registers llms.txt (and llms-full.txt with full_output) as
files in on_files, so a page can link to them without the link being
reported as not found. They are written in on_post_build as before.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012RnDX9TjeTgiksvVfDBFhD
@codspeed

codspeed Bot commented Oct 31, 2026

Copy link
Copy Markdown
Contributor

Merging this PR will not alter performance

✅ 28 untouched benchmarks


Comparing claude/project-thread-sh24d1 (5e52918) with main (e4b3f29)

Open in CodSpeed

@shenxianpeng shenxianpeng added the enhancement New feature or request label Oct 31, 2026
@shenxianpeng
shenxianpeng merged commit 330882b into main Oct 31, 2026
23 checks passed
@shenxianpeng
shenxianpeng deleted the claude/project-thread-sh24d1 branch October 31, 2026 18:59
This was referenced Oct 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants