Updated LLM-readability layer (llms.txt, .md URLs, llms-full.txt)#325
Merged
Conversation
Member
Nonnyjoe
commented
May 18, 2026
- Rewrote static/llms.txt to cover all 307 sitemap URLs across 30 sections
- Added "Instructions for AI Agents" section at top of llms.txt with guidance on .md URL access and llms-full.txt
- Added headTags link[rel=alternate] directive pointing to /llms.txt
- Added plugins/serve-markdown.js Docusaurus plugin:
- Dev: serves raw markdown for any .md URL and Accept:text/markdown requests
- Dev: dynamically generates /llms-full.txt (all docs concatenated, ~1.7MB)
- Build: writes .md files alongside HTML pages in outDir
- Build: writes llms-full.txt to outDir
- Rewrote static/llms.txt to cover all 307 sitemap URLs across 30 sections - Added "Instructions for AI Agents" section at top of llms.txt with guidance on .md URL access and llms-full.txt - Added headTags link[rel=alternate] directive pointing to /llms.txt - Added plugins/serve-markdown.js Docusaurus plugin: - Dev: serves raw markdown for any .md URL and Accept:text/markdown requests - Dev: dynamically generates /llms-full.txt (all docs concatenated, ~1.7MB) - Build: writes .md files alongside HTML pages in outDir - Build: writes llms-full.txt to outDir
add20e7 to
2ec3d2a
Compare
…content negotiation - Dynamic /llms.txt handler rewrites production domain to match the incoming request host, so scanners/scorers on ngrok or staging discover and test pages on the correct origin - Fixed double-slash bug in toPermalink: /dir/.md no longer produces /dir// when the stripped path already has a trailing slash - Root / with Accept: text/markdown now serves llms.txt as the markdown representation of the site index instead of falling through to HTML
jplgarcia
approved these changes
May 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.