Repository navigation
llms_txt: list pages outside nav, and let pages link to llms.txt - #119
Merged
Merged
Conversation
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
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_012RnDX9TjeTgiksvVfDBFhD
Contributor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two small improvements to the
llms_txtplugin (#105), found while building the docs site for the new Sumi theme (mkdocs-ng/mkdocs-sumi):navare listed inllms.txtunder a final "Other pages" section. Blog posts are typicallynot_in_nav. They already got a Markdown copy, but agents had no way to discover them fromllms.txt. Drafts stay out.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 inon_files; they are still written inon_post_buildas before.Related Issue
None. Follow-up to #105.
Checklist
test_build_pages_not_in_navcovers both changes and fails without them.user-guide/configuration.md#llmstxtdocs/about/release-notes.mdupdated (if applicable)Full unit suite passes locally (907 tests).
ruffandmypyare clean on the changed module.Generated by Claude Code