Skip to content

serve markdown to ai agents#2

Merged
hasparus merged 25 commits into
mainfrom
llms-txt
Jan 23, 2026
Merged

serve markdown to ai agents#2
hasparus merged 25 commits into
mainfrom
llms-txt

Conversation

@hasparus
Copy link
Copy Markdown
Collaborator

@hasparus hasparus commented Jan 14, 2026

Deploy preview: https://scriptorium-temp-bn8jbkm45-hasparus-projects.vercel.app/docs
(disregard Cloudflare Workers for now)

What's changed?

  • Add LLM export routes (/llms.txt, /llms-full.txt, /llms.mdx/docs/$) and request rewrite middleware
    • with integration tests
  • Improve typing for fumadocs collections/source to surface getText
  • Align TS configs for composite builds, JSX, and generated file ignores. We don't need this for building but it helps the text editors.

How to test this?

Lazy mode

Read the integration tests output on CI, repeat locally with bun install && bun run test

Manual testing:

Run bun dev

Then verify:

  • /llms.txt - returns plain text index of docs with links
  • /llms-full.txt - returns all docs concatenated as markdown
  • /*.md or /*.mdx - returns raw markdown for the page
  • curl -H "Accept: text/markdown" localhost:1440/docs - content negotiation works

Context

@hasparus hasparus requested a review from enisdenjo January 15, 2026 12:18
@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented Jan 20, 2026

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
❌ Deployment failed
View logs
hive-platform-docs efa30b0 Jan 23 2026, 01:50 PM

@hasparus hasparus merged commit 5178ee5 into main Jan 23, 2026
4 of 5 checks passed
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