Skip to main content

LLM-friendly documentation outputs for Sphinx — llms.txt, llms-full.txt, docs.json, per-page Markdown

Project description

sphinx-gp-llms

LLM-friendly documentation outputs for Sphinx. Generates llms.txt, llms-full.txt, docs.json, and per-page .md twin files during the standard HTML build, giving LLM agents machine-readable entry points to your documentation.

Part of the gp-sphinx documentation platform.

Install

$ pip install sphinx-gp-llms

When you depend on gp-sphinx, this extension is already loaded — see the package docs page for the integration story. The full config-key reference is auto-generated from the live app.add_config_value() registrations.

Credits

The output formats follow conventions established by their respective communities:

  • llms.txt — proposed by Jeremy Howard (Answer.AI), September 2024. Specification at llmstxt.org.
  • llms-full.txt — community convention adopted by Anthropic, Cloudflare, GitBook, Hugging Face, and others.
  • docs.json — agent-manifest convention inspired by Lakebed (Ping, github.com/pingdotgg/span). See A note on docs.json below.
  • Per-page .md twins — convention popularized by Cloudflare ("Markdown for Agents"), Stripe, Anthropic, and Vercel.
  • Footer layout (Source: docs/page.md · Machine-readable: Markdown, raw source, docs.json, llms.txt, llms-full.txt) — inspired by docs.lakebed.dev.

A note on docs.json

Sphinx already ships an inter-project linking mechanism: objects.inv, the inventory file that powers intersphinx. It maps qualified names (classes, functions, config values) to URLs across Sphinx sites. It is not, however, designed for LLM consumption — the format is a compressed binary with a domain-specific schema oriented toward cross-reference resolution, not content discovery.

docs.json fills a different role: a site-level beacon that tells agents where the documentation lives, what pages exist, and how to fetch them in Markdown. It carries agentEntrypoints (pointers to llms.txt, llms-full.txt, and itself), a flat pages[] array with per-page markdownUrl and headings[], and the project's sourceRepository.

There is no published specification for this format. We first noticed the convention at Lakebed (github.com/pingdotgg/span). Other documentation platforms also emit a file named docs.json, but those are typically site-builder configuration files (theme colors, navigation structure) closer to a manifest.json than an agent-oriented content manifest.

See also

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

sphinx_gp_llms-0.0.1a30.dev0.tar.gz (9.9 kB view details)

Uploaded Source

Built Distribution

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

sphinx_gp_llms-0.0.1a30.dev0-py3-none-any.whl (12.7 kB view details)

Uploaded Python 3

File details

Details for the file sphinx_gp_llms-0.0.1a30.dev0.tar.gz.

File metadata

  • Download URL: sphinx_gp_llms-0.0.1a30.dev0.tar.gz
  • Upload date:
  • Size: 9.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for sphinx_gp_llms-0.0.1a30.dev0.tar.gz
Algorithm Hash digest
SHA256 17a371b5f25c249610f8e23cec2e6736939c75c0cac197f0701774978048e4c2
MD5 c08236d17a4f35ed00f2c1c01adf6d55
BLAKE2b-256 fe3712e5b482d09330ac3fa5c078d722a6b6f3f6bab2a890243e0a7e32f04fb5

See more details on using hashes here.

Provenance

The following attestation bundles were made for sphinx_gp_llms-0.0.1a30.dev0.tar.gz:

Publisher: release.yml on git-pull/gp-sphinx

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

File details

Details for the file sphinx_gp_llms-0.0.1a30.dev0-py3-none-any.whl.

File metadata

File hashes

Hashes for sphinx_gp_llms-0.0.1a30.dev0-py3-none-any.whl
Algorithm Hash digest
SHA256 64e18836a042e3b2d696dce63901970ca70532ebec6d1a69b6a60b4978b117bf
MD5 13078ff3ebd5b48ae41914033311423b
BLAKE2b-256 821fdbaa3166eca0735c66c2b12cd3bd47491670750f1a4616772a78ba3400ea

See more details on using hashes here.

Provenance

The following attestation bundles were made for sphinx_gp_llms-0.0.1a30.dev0-py3-none-any.whl:

Publisher: release.yml on git-pull/gp-sphinx

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