MkDocs plugin to generate an `/llms.txt` file, a standard for providing LLM-friendly content summaries and links from websites. It automatically processes your MkDocs documentation during the build process, creating a concise index of content accessible to AI language models. The plugin can also generate a `/llms-full.txt` file with concatenated content and per-page Markdown files. The project is currently in maintenance mode.
pip install mkdocs-llmstxtNo compatibility data collected yet for this library.
This quickstart guides you through setting up a new MkDocs project, configuring the `mkdocs-llmstxt` plugin, creating some sample documentation, and building the site to generate the `/llms.txt` file. The `site_url` configuration option is crucial for correct link generation. After building, `llms.txt` will be available in your `site` directory, along with Markdown versions of your pages if configured.
Consult the latest documentation for `mkdocs-llmstxt` to update your `mkdocs.yml` configuration.
Ensure `site_url: https://your-site.com/` (or equivalent) is set in your `mkdocs.yml`.
Monitor the GitHub repository for updates on maintainership transfer or seek alternative solutions if active development is a critical requirement.
Upgrade to `mkdocs-llmstxt` version 0.5.0 or later to ensure proper resolution of relative links to absolute URLs in the generated output.
Ensure `pip install mkdocs-llmstxt` has been run and your `mkdocs.yml` includes: ```yaml plugins: - llmstxt: # ... your configuration ... ```
Add or correct the `site_url` in your `mkdocs.yml`: ```yaml site_url: https://your-domain.com/ # Must be an absolute URL ``` Also ensure the `sections` configuration is present and correctly defined for the plugin.
Verify that file paths in the `sections` configuration match your `docs` directory structure. If hosting on a subdirectory or specific version, consider using the `base_url` option in your `llmstxt` plugin configuration: `plugins: - llmstxt: base_url: https://productname.hostname.io/en/0.1.34`.