Skip to content

fix(llms): restore homepage markdown negotiation - #114

Merged
nibzard merged 1 commit into
mainfrom
agent/fix-homepage-markdown-negotiation
Jul 31, 2026
Merged

fix(llms): restore homepage markdown negotiation#114
nibzard merged 1 commit into
mainfrom
agent/fix-homepage-markdown-negotiation

Conversation

@nibzard

@nibzard nibzard commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

Summary

  • restore Accept: text/markdown negotiation at the canonical homepage
  • rewrite Markdown homepage requests internally to /AGENTS.md while keeping HTML as the default
  • vary homepage responses on Accept and User-Agent
  • add middleware and end-to-end regression coverage

Root cause

PR #97 made / the canonical docs URL, added it to the negotiation exclusions, and removed the homepage Markdown rewrite. Nested documentation pages continued negotiating correctly, but homepage scanners such as Is It Agent Ready received text/html for an explicit Markdown request.

Impact

Requests to / with Accept: text/markdown now return text/markdown. Browser and crawler requests without Markdown negotiation continue receiving the canonical HTML homepage.

Validation

  • bun test tests/markdown-negotiation.test.ts tests/middleware.test.ts tests/e2e/llm-endpoints.test.ts — 66 passed
  • bun run check
  • bun run validate-links
  • bun run build
  • git diff --check

@vercel

vercel Bot commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
docs Ready Ready Preview Jul 31, 2026 3:28pm

Request Review

@nibzard
nibzard marked this pull request as ready for review July 31, 2026 15:30
@nibzard
nibzard merged commit c40b7bb into main Jul 31, 2026
3 checks passed
@nibzard
nibzard deleted the agent/fix-homepage-markdown-negotiation branch July 31, 2026 15:30
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