Skip to content

Updated LLM-readability layer (llms.txt, .md URLs, llms-full.txt)#325

Merged
Nonnyjoe merged 3 commits into
mainfrom
temp/update-llmtxt
May 18, 2026
Merged

Updated LLM-readability layer (llms.txt, .md URLs, llms-full.txt)#325
Nonnyjoe merged 3 commits into
mainfrom
temp/update-llmtxt

Conversation

@Nonnyjoe
Copy link
Copy Markdown
Member

  • 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
@Nonnyjoe Nonnyjoe force-pushed the temp/update-llmtxt branch from add20e7 to 2ec3d2a Compare May 18, 2026 10:50
Nonnyjoe added 2 commits May 18, 2026 12:05
…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
@Nonnyjoe Nonnyjoe merged commit c2c8237 into main May 18, 2026
1 check passed
@Nonnyjoe Nonnyjoe deleted the temp/update-llmtxt branch May 18, 2026 15:54
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