Skip to content

Add llms.txt docs#2925

Merged
flsh86 merged 2 commits into
masterfrom
add-llms.txt-docs
Jun 24, 2026
Merged

Add llms.txt docs#2925
flsh86 merged 2 commits into
masterfrom
add-llms.txt-docs

Conversation

@flsh86

@flsh86 flsh86 commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds sphinx-llms-txt to the Sphinx documentation build so that llms.txt and llms-full.txt are generated automatically alongside the existing HTML output.

llms.txt is a standard for making documentation consumable by LLMs — llms.txt is a structured index of doc pages with links, and llms-full.txt is the full documentation concatenated into a single plain-text file.
Once merged, the files will be served at:

Changes

  • doc/requirements.txt / generated-doc/out/requirements.txt — add sphinx-llms-txt
  • doc/conf.py / generated-doc/out/conf.py:
  • Add sphinx_llms_txt extension with title, summary, and llms-full.txt enabled
  • Remove .txt from source_suffix (was causing requirements.txt to appear as a doc page)
  • Tighten exclude_patterns to prevent venv, node_modules, _templates, includes/* partials, and requirements.txt from being treated as source documents
  • Add fallback to html_baseurl so local builds also produce absolute links

No changes to .readthedocs.yaml - ReadTheDocs already installs from generated-doc/out/requirements.txt and runs Sphinx on generated-doc/out/conf.py, so the new files will be generated on every ReadTheDocs build automatically.

flsh86 and others added 2 commits June 24, 2026 12:21
- Add sphinx-llms-txt extension and config
- Remove .txt from source_suffix
- Tighten exclude_patterns (venv, node_modules, _templates, includes/*)
- Add html_baseurl fallback for local builds

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@flsh86 flsh86 requested a review from adamw June 24, 2026 10:30
@flsh86 flsh86 merged commit 46ffa31 into master Jun 24, 2026
27 checks passed
@flsh86 flsh86 deleted the add-llms.txt-docs branch June 24, 2026 12:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant