Skip to content

Document in-HTML llms.txt directive for AI discoverability#5581

Open
mintlify[bot] wants to merge 1 commit intomainfrom
mintlify/llms-html-directive-1777415720
Open

Document in-HTML llms.txt directive for AI discoverability#5581
mintlify[bot] wants to merge 1 commit intomainfrom
mintlify/llms-html-directive-1777415720

Conversation

@mintlify
Copy link
Copy Markdown
Contributor

@mintlify mintlify Bot commented Apr 28, 2026

Summary

A recent change ships a new discoverability mechanism: every rendered documentation page now contains a hidden, screen-reader-only blockquote that points AI agents to the site's llms.txt file. This complements the existing HTTP headers (Link, X-Llms-Txt) by giving agents that parse the page DOM (rather than HTTP responses) a clear pointer to the documentation index.

Changes

  • Updated ai/llmstxt.mdx to describe the new HTML directive alongside the existing HTTP header discovery methods, including an example of the injected markup.

The directive is automatic and requires no configuration from users.


Note

Low Risk
Documentation-only change describing an additional AI discoverability mechanism; no runtime code or data-handling behavior is modified.

Overview
Updates the llms.txt documentation to describe a new in-HTML discoverability directive that Mintlify injects into every rendered page, complementing the existing Link and X-Llms-Txt HTTP headers.

Adds an example snippet showing the hidden, screen-reader-only <blockquote class="sr-only" data-agent-docs-index> markup that points agents to /llms.txt.

Reviewed by Cursor Bugbot for commit 8affc4e. Bugbot is set up for automated code reviews on this repo. Configure here.

@mintlify
Copy link
Copy Markdown
Contributor Author

mintlify Bot commented Apr 28, 2026

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
mintlify 🟢 Ready View Preview Apr 28, 2026, 10:40 PM

@mintlify-development
Copy link
Copy Markdown
Contributor

mintlify-development Bot commented Apr 28, 2026

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
userauth 🟢 Ready View Preview Apr 28, 2026, 10:41 PM

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