Skip to content

z0 - point agents at llms.txt and per-page .md - #366

Merged
fxck merged 1 commit into
mainfrom
agent-md-discovery
Aug 10, 2026
Merged

z0 - point agents at llms.txt and per-page .md#366
fxck merged 1 commit into
mainfrom
agent-md-discovery

Conversation

@fxck

@fxck fxck commented Aug 10, 2026

Copy link
Copy Markdown
Member

Advertise the machine-readable docs in on every page and in robots.txt -- llms.txt was previously only reachable via the navbar icon. Per-page markdown alternates already existed via DocItem/Layout.

Emit an RFC 8288 Link header on docs pages so agents fetching over plain HTTP (or HEAD) find the .md twin without parsing HTML. The nginx map only matches extensionless paths, so assets, the .md files themselves, /discord and /search are skipped; an empty value makes nginx omit the header.

Fix bogus .md URLs answering 200 with the 260kB HTML shell -- the static base falls back to /index.html, which agents read as a successful fetch. Narrow the .md location to try_files $uri =404. The patch is self- reverting: it no-ops if the config differs, and a failed nginx -t restores the backup.

Also correct the llms.txt descriptions (llms-full.txt is all 349 pages, not "without examples") and regenerate the bundles, which were stale.

What Type of Change is this?

  • New Page
  • Minor Fix
  • Minor Improvement
  • Major Improvement

Description (required)

Related issues & labels (optional)

  • /closes #

Advertise the machine-readable docs in <head> on every page and in
robots.txt -- llms.txt was previously only reachable via the navbar icon.
Per-page markdown alternates already existed via DocItem/Layout.

Emit an RFC 8288 Link header on docs pages so agents fetching over plain
HTTP (or HEAD) find the .md twin without parsing HTML. The nginx map only
matches extensionless paths, so assets, the .md files themselves, /discord
and /search are skipped; an empty value makes nginx omit the header.

Fix bogus .md URLs answering 200 with the 260kB HTML shell -- the static
base falls back to /index.html, which agents read as a successful fetch.
Narrow the .md location to try_files $uri =404. The patch is self-
reverting: it no-ops if the config differs, and a failed nginx -t restores
the backup.

Also correct the llms.txt descriptions (llms-full.txt is all 349 pages,
not "without examples") and regenerate the bundles, which were stale.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@fxck
fxck merged commit a6d259d into main Aug 10, 2026
2 checks passed
@fxck
fxck deleted the agent-md-discovery branch August 10, 2026 16:24
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