Bundle your MkDocs site into a single file for LLM or agent context.
Project description
mkdocs-llm-context
Bundle your MkDocs site into a single file for LLM or agent context.
Installation
pip install mkdocs-llm-context
Usage
Add the plugin to your mkdocs.yml:
plugins:
- llm-context
Configuration
plugins:
- llm-context:
format: json # "json" (default) or "txt"
output: llm-context.json # default derives from format
exclude:
- changelog/
- api/reference/*
| Option | Default | Description |
|---|---|---|
format |
json |
Output format: json (list of {url, title, content}) or txt (sections separated by ---) |
output |
llm-context.{format} |
Filename written to the site directory |
exclude |
[] |
Glob patterns matched against page.url — matching pages are omitted |
After mkdocs build, the file appears in site/ and can be used as context for an LLM or agent.
Development
git clone https://github.com/agibson22/mkdocs-llm-context
cd mkdocs-llm-context
python -m venv .venv && source .venv/bin/activate
make install
make test # run tests
make lint # run ruff
make build # build the wheel
See CONTRIBUTING.md for more details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mkdocs_llm_context-0.1.0.tar.gz.
File metadata
- Download URL: mkdocs_llm_context-0.1.0.tar.gz
- Upload date:
- Size: 8.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1e81c378c1a77ba59947af2ddedb826af5beaf8895ef0845236c43fe6ff90120
|
|
| MD5 |
065b13253d29efb237d151b993c031fc
|
|
| BLAKE2b-256 |
143c5934a55a5b6ced9ff69704cc24d691e06870121125161d9462c2787acbc7
|
Provenance
The following attestation bundles were made for mkdocs_llm_context-0.1.0.tar.gz:
Publisher:
publish-pypi.yml on agibson22/mkdocs-llm-context
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mkdocs_llm_context-0.1.0.tar.gz -
Subject digest:
1e81c378c1a77ba59947af2ddedb826af5beaf8895ef0845236c43fe6ff90120 - Sigstore transparency entry: 992592186
- Sigstore integration time:
-
Permalink:
agibson22/mkdocs-llm-context@2fa221e1e22818566661bff1aeac7fbdd753b31a -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/agibson22
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@2fa221e1e22818566661bff1aeac7fbdd753b31a -
Trigger Event:
push
-
Statement type:
File details
Details for the file mkdocs_llm_context-0.1.0-py3-none-any.whl.
File metadata
- Download URL: mkdocs_llm_context-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e7e54752ce1c7188ddf106d3128403f4e610d9214725529544cdeffd7f5ee42f
|
|
| MD5 |
c88aafe1668b5d83bc9fae53d8497d6d
|
|
| BLAKE2b-256 |
0d8f33e520dce239d8aa36cd5319410104f2f5a8a4a6c6da239183567fe6ab2b
|
Provenance
The following attestation bundles were made for mkdocs_llm_context-0.1.0-py3-none-any.whl:
Publisher:
publish-pypi.yml on agibson22/mkdocs-llm-context
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mkdocs_llm_context-0.1.0-py3-none-any.whl -
Subject digest:
e7e54752ce1c7188ddf106d3128403f4e610d9214725529544cdeffd7f5ee42f - Sigstore transparency entry: 992592200
- Sigstore integration time:
-
Permalink:
agibson22/mkdocs-llm-context@2fa221e1e22818566661bff1aeac7fbdd753b31a -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/agibson22
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@2fa221e1e22818566661bff1aeac7fbdd753b31a -
Trigger Event:
push
-
Statement type: