mkdocs-llms-source¶
MkDocs plugin to generate /llms.txt files for LLM-friendly documentation.
Let AI set it up for you
Paste this into your AI coding agent — it will add the plugin to an existing MkDocs site, or set up MkDocs from scratch:
Overview¶
mkdocs-llms-source generates llms.txt files from your MkDocs documentation site so that AI tools can efficiently consume your docs without parsing HTML.
The plugin produces three outputs:
/llms.txt— A curated index following the llmstxt.org spec with links to per-page markdown files/llms-full.txt— All documentation concatenated into a single file- Per-page
.mdfiles — Raw markdown at the same URL path as HTML pages
New to MkDocs?
If your project doesn't have docs yet, check out the Setup from Scratch guide — it walks you through creating a full MkDocs site with LLM-friendly output and automatic GitHub Pages deployment.
Quick Start¶
Install the plugin:
Add it to your mkdocs.yml:
Build your site:
That's it! Your site will now include /llms.txt, /llms-full.txt, and per-page .md files.
Configuration¶
See the configuration reference for all options.