Skip to content

Agent readiness: docs-theme-extras v0.6.0 and markdown content negotiation - #68

Closed
kristin-kronstain-brown wants to merge 2 commits into
agentregistry-dev:mainfrom
kristin-kronstain-brown:kkb-markdown-negotiation
Closed

kristin-kronstain-brown wants to merge 2 commits into
agentregistry-dev:mainfrom
kristin-kronstain-brown:kkb-markdown-negotiation

Conversation

@kristin-kronstain-brown

@kristin-kronstain-brown kristin-kronstain-brown commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Why

An agent-readiness scan (afdocs 0.18.7, Agent-Friendly Documentation Spec) found the same problems on every site that uses docs-theme-extras. AI agents reading these docs hit 20-80K characters of navigation before the first sentence of a page, saw page chrome reported as content missing from the .md twin, missed section landing pages in llms.txt, and got HTML when they asked for Accept: text/markdown.

What changes

  • Theme pin: docs-theme-extras v0.6.0 (docs-theme-extras#106). Page content now comes before the sidebar and TOC in the HTML (the page looks the same), page chrome carries data-markdown-ignore, the .md twin includes the page description, llms.txt links every section page, and a section llms.txt over 50,000 characters splits into per-section files.
  • Markdown content negotiation (static/_worker.js). A request with Accept: text/markdown for a docs page now gets the page's .md twin (<page>.md, or <section>/index.md) as text/markdown with Vary: Accept. Every other request is served as before. The same Cloudflare Pages _worker.js has run on agentgateway.dev in production; its _redirects rules kept working with it.
  • hugo_stats.json is regenerated for the new theme markup.

Testing

The checks below ran on v0.6.0-beta.2. The v0.6.0 release adds only its dated CHANGELOG on top of that beta, so the results apply to this pin.

  • hugo --gc builds cleanly on the beta pin: 73 pages, no errors, and all 70 docs pages put <article> before the sidebar.
  • The worker only runs on Cloudflare Pages. Run in Node against the live site with a stub asset binding, Accept: text/markdown on /docs/quickstart/ and /docs/agents/ returns 200 text/markdown with Vary: Accept, and HTML without the header.

🤖 Generated with Claude Code

Signed-off-by: Kristin Brown <kristin.brown@solo.io>
Moves the pin from v0.6.0-beta.2 to the v0.6.0 release and drops the
older docs-theme-extras lines from go.sum.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Kristin Brown <kristin.brown@solo.io>
@kristin-kronstain-brown kristin-kronstain-brown changed the title Agent readiness: docs-theme-extras v0.6.0-beta.2 and markdown content negotiation Agent readiness: docs-theme-extras v0.6.0 and markdown content negotiation Nov 23, 2026
@kristin-kronstain-brown

Copy link
Copy Markdown
Contributor Author

Superseded by #70

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.

2 participants