mkdocs-percona-llmstxt
An MkDocs plugin that makes Percona documentation sites easy for AI agents and assistants to read. It works together with mkdocs-llmstxt, which writes the files, and fills in everything a Percona docs repo would otherwise have to configure and maintain by hand.
A site built with both plugins gets:
llms.txt, an index of every page innav, grouped by the top-level nav sections, with links to the markdown pages (llms.txt proposal).llms-full.txt, all pages in one file (iffull_outputis set).- A markdown copy of every page next to its HTML:
backups.htmlandbackups.md. Each starts with a link tollms.txt. Content tabs keep their labels: each block starts with its label in bold. - A link to
llms.txtin every HTML page, hidden on screen and from screen readers, and out of the tab order. data-markdown-ignoreon the heading anchors (¶) and tab-label bars in the HTML. They are for people only; tools that compare a page's HTML with its markdown skip such elements.
Nothing changes for people reading the site.
Use
Python 3.11 or later. Add to requirements.txt:
mkdocs-llmstxt>=0.5.1,<0.6
mkdocs-percona-llmstxt
The plugin sets some of mkdocs-llmstxt's settings, so it supports one minor version of it at a time.
Add both plugins to mkdocs.yml (or mkdocs-base.yml):
plugins:
llmstxt:
full_output: llms-full.txt
markdown_description: >-
Each page below is also available as markdown. For the documentation
of all Percona products, see https://docs.percona.com/llms.txt.
sections: {} # mkdocs-llmstxt requires the key; percona-llmstxt fills it from nav
percona-llmstxt: {}
That's all. The links in llms.txt are built from site_url. A build without site_url, such as a PDF build that inherits the plugins from mkdocs-base.yml, is left as it is: no markdown pages and no changes to the HTML.
What it fills in
On the llmstxt plugin, unless mkdocs.yml already sets it:
| Setting | Value |
|---|---|
sections |
When empty ({}): one section per top-level nav group, in nav order. Top-level pages outside a group go into a first section, "Overview". External links are skipped. A page added to nav shows up in llms.txt with no other change. Pages that are built but not in nav, such as old release notes, go into a last section, "Optional": other pages link to them, so they get a markdown copy too, and in llms.txt "Optional" is the section an agent may skip when it is short of context. |
base_url |
site_url, plus the version during mike deploy. mike deploy 9.7 builds with MIKE_DOCS_VERSION=9.7, so https://docs.percona.com/percona-server/ becomes https://docs.percona.com/percona-server/9.7/. Each version branch links to its own pages, with no per-branch settings. |
preprocess |
Keeps the labels of content tabs, then runs the plugin's usual clean-up (autoclean is turned off so that it does not run twice). |
Options
percona-llmstxt:
first_section: Overview # section for top-level pages outside a nav group
other_pages: Optional # section for pages outside nav; '' leaves them out
hint: true # the hidden link to llms.txt in every HTML page
Check a site
AFDocs scores a site against the Agent-Friendly Documentation spec:
npx afdocs check https://docs.percona.com/percona-operator-for-postgresql/latest/ --format scorecard
Develop
python -m pip install --require-hashes --no-deps -r requirements-dev.txt
python -m pip install --no-deps --no-build-isolation .
ruff check . && ruff format --check . && mypy && pytest
requirements-dev.txt pins the tools and their hashes. To update it, edit requirements-dev.in and follow the command at its top.
Release
- Set the new
versioninpyproject.tomland merge it tomain. - Tag that commit and push the tag:
git tag -a v0.4.0 -m v0.4.0 && git push origin v0.4.0.
The Release workflow builds the package, checks that the tag matches the version, publishes it to TestPyPI and then, once a maintainer approves the pypi environment, to PyPI. Both use trusted publishing, so the repo stores no PyPI tokens. Running the workflow by hand publishes to TestPyPI only.
License
Apache License 2.0.
Metadata
Release files for mkdocs-percona-llmstxt 0.3.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mkdocs_percona_llmstxt-0.3.2.tar.gz | 48.7 kB | With provenance | Details for mkdocs_percona_llmstxt-0.3.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mkdocs_percona_llmstxt-0.3.2-py3-none-any.whl | Python 3 | none | any | Details for mkdocs_percona_llmstxt-0.3.2-py3-none-any.whl |
Total release size: 62.1 kB
Release files / mkdocs_percona_llmstxt-0.3.2.tar.gz
| Download URL | mkdocs_percona_llmstxt-0.3.2.tar.gz |
|---|---|
| Size | 48.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
58b78ace2c8d244a56d843333efef1a3de0e8ff6b4edc637d0d977c2870cb6b2
|
|
BLAKE2b-256 checksum How to use checksums |
1f0a6f6f4bbc8088df0864215c8282cf584239aa33f8194c74c4383451b45111
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.
Transparency logRelease files / mkdocs_percona_llmstxt-0.3.2-py3-none-any.whl
| Download URL | mkdocs_percona_llmstxt-0.3.2-py3-none-any.whl |
|---|---|
| Size | 13.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
77fac587e7cff2d5764b7eb255327d2908580580c49b6e34bd166663ffc8c5dc
|
|
BLAKE2b-256 checksum How to use checksums |
321124d9b939cda923c0d883fb5f3256ffda083637080b6600b8b8e3adddf127
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.
Transparency logSecurity for mkdocs-percona-llmstxt 0.3.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for mkdocs_percona_llmstxt-0.3.2.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.