Quick Start¶
Installation¶
Basic Usage¶
Add the plugin to your mkdocs.yml:
site_name: My Project
site_url: https://docs.example.com
site_description: Documentation for My Project
plugins:
- search
- llms-source
Important: Set site_url in your mkdocs.yml — the llms.txt spec requires absolute URLs.
Build your site as usual:
The plugin will generate:
site/llms.txt— Index file following the llmstxt.org specsite/llms-full.txt— All docs concatenated into one filesite/*.md— Per-page markdown files alongside the HTML
How It Works¶
The plugin uses a source-first approach:
- It reads your original markdown source files (no HTML-to-Markdown conversion)
- It auto-derives the llms.txt section structure from your MkDocs
navconfiguration - It generates the output files during the MkDocs build process
This means zero extra configuration is needed for most sites.
Verify¶
After building, check that the files were created:
You should see something like: