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
sphinx-ai-index is developed in the
sphinx-needs repository, as
packages/sphinx-ai-index, alongside the extensions whose documentation builds use it.
The commands -- uv run poe test-ai-index for the test suite, the lint and type-check
tasks, the release recipe -- are in that repository's root
AGENTS.md.
Metadata
Release files for sphinx-ai-index 1.0.0
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 |
|---|---|---|---|---|
| sphinx_ai_index-1.0.0.tar.gz | 5.3 kB | Without provenance | Details for sphinx_ai_index-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sphinx_ai_index-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for sphinx_ai_index-1.0.0-py3-none-any.whl |
Total release size: 11.3 kB
Release files / sphinx_ai_index-1.0.0.tar.gz
| Download URL | sphinx_ai_index-1.0.0.tar.gz |
|---|---|
| Size | 5.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2d7794fa59dccdd78dd8cd73e392438f8ea93aeeb2d40f506790e8bbf0d09863
|
|
BLAKE2b-256 checksum How to use checksums |
db9bc6bf44fccaddfc34323de0f8b7cc727e897f36211d7a6e0feb008d5bd35e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.1 {"installer":{"name":"uv","version":"0.13.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / sphinx_ai_index-1.0.0-py3-none-any.whl
| Download URL | sphinx_ai_index-1.0.0-py3-none-any.whl |
|---|---|
| Size | 5.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
44bd48908dc0b71f07f135cbf70cf7657fb4625f51cd435ac74b0ef558663ac9
|
|
BLAKE2b-256 checksum How to use checksums |
b4eee5d33c61da5aeb4ed4baa1dbf42fdace75660398038d8446dad0a4ee6441
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.1 {"installer":{"name":"uv","version":"0.13.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for sphinx-ai-index 1.0.0
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A 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.