Skip to content

docs: enable LLM-friendly outputs (llms.txt + per-page markdown)#12

Merged
matthieugouel merged 2 commits into
mainfrom
try/llms-output
Jun 16, 2026
Merged

docs: enable LLM-friendly outputs (llms.txt + per-page markdown)#12
matthieugouel merged 2 commits into
mainfrom
try/llms-output

Conversation

@matthieugouel

Copy link
Copy Markdown
Member

Tests the llms/markdown output formats that shipped with the hextra v0.12.3 bump (#11). Opting in is a single [outputs] block — no new templates needed.

What it produces (verified with a local Hugo 0.163.2 build):

  • /llms.txt — a one-page index of the entire site: title, section tree, and a one-line summary + link for every page. This is the llms.txt standard and the "one-page LLM docs" roadmap idea.
  • Per-page raw markdown — a clean .md twin of all 35 pages (e.g. /docs/peering/getting-started.md), ideal for agents/LLMs to ingest without HTML noise.
  • RSS preserved on home + section outputs.

Depends on #11 (the theme bump) — until that merges to main, this PR's diff also shows the theme/Hugo-pin commit; it'll reduce to just the [outputs] change once #11 lands.

Minor polish available, not included: /llms.txt's > description line is blank because the site sets no params.description — adding a one-line site description would populate it.

🤖 Generated with Claude Code

matthieugouel and others added 2 commits June 16, 2026 16:55
Opt into the hextra >= 0.12 output formats: a /llms.txt index of the whole
site and a raw-markdown twin of every page. Addresses the 'one-page LLM docs'
roadmap idea. RSS is preserved on home/section outputs.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Add a Tools > LLM-Friendly Docs page describing /llms.txt and the per-page
.md access, and slot it into the section nav (after MCP Servers).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@matthieugouel matthieugouel merged commit a109771 into main Jun 16, 2026
6 checks passed
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