A Docusaurus plugin for the llmstxt.org standard
Your Docusaurus docs,
readable by language models
During npm run build, the plugin writes an llms.txt index, an llms-full.txt bundle, and a Markdown copy of every page, so a model reads your docs without parsing HTML.
# docusaurus-plugin-llms > llms.txt and Markdown copies of your Docusaurus docs ## Table of Contents - [Overview](https://rachfop.github.io/docusaurus-plugin-llms/docs/overview.md): What the plugin generates and when it runs.- [Installation](https://rachfop.github.io/docusaurus-plugin-llms/docs/installation.md): Install, register, and check the output.- [Configuration options](https://rachfop.github.io/docusaurus-plugin-llms/docs/configuration.md): Every option, type, and default.- [Content cleaning](https://rachfop.github.io/docusaurus-plugin-llms/docs/content-cleaning.md): Strip HTML, imports, and echoes.
One line of config
Add the plugin and build. With no options, it reads docs/ and writes both files to the build output. Titles and summaries come from each page's front matter.
// docusaurus.config.js module.exports = { plugins: ['docusaurus-plugin-llms'], };
Configure the output
- Custom LLM filesOne file per language, product, or audience.
- Content cleaningDrop MDX imports, HTML, and repeated headings.
- OrderingPut pages in reading order with glob patterns.
- Multi-versionA separate llms.txt for each docs version.
This site runs the plugin on its own docs. Read the output: llms.txt · llms-full.txt