Skip to main content

sphinx-ai-index

A Sphinx extension that generates an AI-readable documentation index (ai_docs_index.json) in the HTML output directory on every build.

Installation

Install from PyPI:

pip install sphinx-ai-index

Or add it to your pyproject.toml:

dependencies = [
    "sphinx-ai-index",
]

Usage

Add the extension to your Sphinx conf.py:

extensions = ["sphinx_ai_index"]

That's it. On the next HTML build, ai_docs_index.json will appear in the output directory.

.. page-summary:: directive

Optionally annotate any RST page with a short prose description:

.. page-summary::

    This page covers the installation of the package on all major platforms,
    including system requirements and VS Code extension setup.

Pages without the directive are still indexed; their summary field will be an empty string.

Output format

ai_docs_index.json is written to the HTML output directory:

{
  "version": "1.0",
  "pages": [
    {
      "rst_source_path": "_sources/basics/installation.rst.txt",
      "html_path": "basics/installation.html",
      "title": "Installation",
      "sections": ["System Requirements", "Installing via pip"],
      "summary": "Covers installation on all platforms."
    }
  ]
}
Field Description
rst_source_path Path to the RST source in the HTML output (under _sources/)
html_path Path to the rendered HTML page, relative to the output root
title Page title
sections Titles of the top-level subsections within the page
summary Text from the .. page-summary:: directive, or ""

Development

git clone https://github.com/useblocks/sphinx-ai-index.git
cd sphinx-ai-index
rye sync
rye run tox

See CONTRIBUTING.md for more details.

Metadata

Release files for sphinx-ai-index 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sphinx-ai-index 0.1.0
File Size Uploaded
sphinx_ai_index-0.1.0.tar.gz 5.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sphinx-ai-index 0.1.0
File Interpreter ABI Platform
sphinx_ai_index-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 11.0 kB

Release files / sphinx_ai_index-0.1.0.tar.gz

Download URL sphinx_ai_index-0.1.0.tar.gz
Size 5.5 kB
Tags Source
SHA-256 checksum
How to use checksums
2a75361b11b5f95ab00bd0eb86b72790e36d4322105471ffd16a053739938ef2
BLAKE2b-256 checksum
How to use checksums
1bd3be55867acd9e732469d4bef856498fc92cc3a60bfb4d354e000d7d2d9b52
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 Mar 16, 2026.

Transparency log

Release files / sphinx_ai_index-0.1.0-py3-none-any.whl

Download URL sphinx_ai_index-0.1.0-py3-none-any.whl
Size 5.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
69dbf3e208fa5c2c834808389b7660be03483f574ca0fabb75d9089b9cfd8711
BLAKE2b-256 checksum
How to use checksums
14984d9f9b09a135e1afb3c682b52669c2750245b531a17a54b9dcb10eeb491d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 Mar 16, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page