llms.txt
Publish a compact AI-agent index that links to the Markdown version of every documentation page.
Loading documentation…
This is already configured in projects created with create-heyo-docs. No action is required if you used the creator to install Heyo Docs.
/llms.txt is the compact entry point for AI assistants and other tools that
need to discover your documentation. Heyo Docs generates it from the same pages
and navigation model as the site, then links to individual Markdown pages so
an agent can load only the context it needs.
Set siteUrl before deployment. It makes the Markdown URLs in the index
absolute and stable:
Serve the result at exactly /llms.txt with
content-type: text/plain; charset=utf-8. The file is public, so include only
content that is already intended for readers.
/llms.txt to discover the documentation pages.*.md URL from the list./llms-full.txt only when the task requires the whole corpus.Targeted page retrieval keeps context smaller and easier to inspect than loading every article for an ordinary question.
This route depends on the framework's server-resource convention. It also
requires the .md endpoints,
because those are the URLs listed in the index.
Register the resource route before the documentation catch-all:
Then create app/routes/llms.ts:
For static React Router deployments, preserve /llms.txt in prerender().
Create src/pages/llms.txt.ts:
With Astro static output, this becomes a generated /llms.txt asset.
Create app/llms.txt/route.ts:
markdownPages is the generated server-side page registry from the Next.js
starter. Use the equivalent registry in a custom integration.