MkDocs plugin to generate an /llms.txt file.
Maintained. Last release 8 weeks ago, commits in 5 of the last 26 weeks. Weaker on commit activity and release cadence.
pip install mkdocs-llmstxtmkdocs-llmstxt
[!WARNING] This project is in maintenance mode. I'm now dedicating my time to Zensical. Feel free to reach out for a responsible transfer of maintainership.
MkDocs plugin to generate an /llms.txt file.
/llms.txt - A proposal to standardise on using an /llms.txt file to provide information to help LLMs use a website at inference time.
See our own dynamically generated /llms.txt as a demonstration.
Installation
pip install mkdocs-llmstxt
Usage
Enable the plugin in mkdocs.yml:
site_name: My project
site_description: Description of my project.
site_url: https://myproject.com/ # Required for the llmstxt plugin to work.
plugins:
- llmstxt:
markdown_description: Long description of my project.
sections:
Usage documentation:
- file1.md: Description of file1
- file2.md # Descriptions are optional.
The resulting /llms.txt file will be available at the root of your documentation. With the previous example, it will be accessible at https://myproject.com/llms.txt and will contain the following:
# My project
> Description of my project.
Long description of my project.
## Usage documentation
- [File1 title](https://myproject.com/file1.md): Description of file1
- [File2 title](https://myproject.com/file2.md)
Each source file included in sections will have its own Markdown file available at the specified URL in the . See for more details.