fix: generate llms.txt from mkdocs nav to fix dead links#160
Merged
MilagrosMarin merged 1 commit intomainfrom Apr 8, 2026
Merged
fix: generate llms.txt from mkdocs nav to fix dead links#160MilagrosMarin merged 1 commit intomainfrom
MilagrosMarin merged 1 commit intomainfrom
Conversation
llms.txt was a hand-maintained static file with source file paths (.md, .ipynb) as links. MkDocs serves pages at /path/ (no extension), so all links were 404s on the deployed site. Now llms.txt is auto-generated alongside llms-full.txt by gen_llms_full.py, which reads the mkdocs.yaml nav and converts source paths to deployed URLs. The static llms.txt is removed from git tracking. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
MilagrosMarin
approved these changes
Apr 8, 2026
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.
Summary
llms.txtlinks were all 404s — they used source file paths (.md,.ipynb) but MkDocs serves at/path/(no extension, trailing slash)llms.txtis auto-generated frommkdocs.yamlnav bygen_llms_full.py, alongsidellms-full.txtsrc/llms.txtfrom git tracking (added to.gitignore)docker-compose.yamlto run generation in both LIVE and BUILD modesHow it works
gen_llms_full.pyreads thenavsection frommkdocs.yamland converts each source path to a deployed URL:about/whats-new-2.md→/about/whats-new-2/tutorials/basics/01-first-pipeline.ipynb→/tutorials/basics/01-first-pipeline/api/→/api/The generated
llms.txtstays in sync with the nav automatically — no manual maintenance needed.🤖 Generated with Claude Code