Skip to main content

Bundle your MkDocs site into a single file for LLM or agent context.

Project description

mkdocs-llm-context

CI License: MIT PyPI

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mkdocs_llm_context-0.1.0.tar.gz (8.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mkdocs_llm_context-0.1.0-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

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

Hashes for mkdocs_llm_context-0.1.0.tar.gz
Algorithm Hash digest
SHA256 1e81c378c1a77ba59947af2ddedb826af5beaf8895ef0845236c43fe6ff90120
MD5 065b13253d29efb237d151b993c031fc
BLAKE2b-256 143c5934a55a5b6ced9ff69704cc24d691e06870121125161d9462c2787acbc7

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mkdocs_llm_context-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for mkdocs_llm_context-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e7e54752ce1c7188ddf106d3128403f4e610d9214725529544cdeffd7f5ee42f
MD5 c88aafe1668b5d83bc9fae53d8497d6d
BLAKE2b-256 0d8f33e520dce239d8aa36cd5319410104f2f5a8a4a6c6da239183567fe6ab2b

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page