Sphinx extension for documenting docutils directives and roles as first-class reference entries
Project description
sphinx-autodoc-docutils
Sphinx extension for turning docutils components — directives, roles, transforms, readers, parsers, writers, custom nodes, and translators — into copyable reference entries inside your docs site.
The extension keeps its semantic rst:* parse path, but the rendered body
regions, badges, and shared type formatting now come from
sphinx_ux_autodoc_layout, sphinx_ux_badges, and sphinx_autodoc_typehints_gp.
Install
$ pip install sphinx-autodoc-docutils
Usage
extensions = ["sphinx_autodoc_docutils"]
Then document directive classes and role callables with eval-rst:
```{eval-rst}
.. autodirective:: my_project.docs_ext.MyDirective
```
```{eval-rst}
.. autorole:: my_project.docs_roles.cli_option_role
```
Every docutils extension point gets the same single + bulk pair:
.. autotransform:: my_project.transforms.SanitizeTransform
.. autoreader:: my_project.readers.ArticleReader
.. autoparser:: my_project.parsers.LineParser
.. autowriter:: my_project.writers.PlainWriter
.. autonode:: my_project.nodes.icon
.. autotranslator:: my_project.writers.PlainTranslator
For module-wide reference pages:
.. autodirectives:: my_project.docs_ext
.. autoroles:: my_project.docs_roles
.. autotransforms:: my_project
Component entries register targets in a docutils Sphinx domain, so
prose can cross-reference them with roles like
:docutils:transform:`SanitizeTransform`.
Documentation
See the full documentation for live demos, directive option rendering, and downstream usage patterns.
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 sphinx_autodoc_docutils-0.0.1a30.dev0.tar.gz.
File metadata
- Download URL: sphinx_autodoc_docutils-0.0.1a30.dev0.tar.gz
- Upload date:
- Size: 22.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
52dac859b87a7f0cfd8d47cdeed72d1c24c8bb05c28b428624dc632eaca88a3b
|
|
| MD5 |
d8bc4a46d75c4555c1065517a5f5b1d7
|
|
| BLAKE2b-256 |
b10077328379d598f8eafffd01051335babeead2d0cf704de04dfad1aaed2d97
|
Provenance
The following attestation bundles were made for sphinx_autodoc_docutils-0.0.1a30.dev0.tar.gz:
Publisher:
release.yml on git-pull/gp-sphinx
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sphinx_autodoc_docutils-0.0.1a30.dev0.tar.gz -
Subject digest:
52dac859b87a7f0cfd8d47cdeed72d1c24c8bb05c28b428624dc632eaca88a3b - Sigstore transparency entry: 1751920650
- Sigstore integration time:
-
Permalink:
git-pull/gp-sphinx@8f5b6532d8cccdd978900250e75a687e62bb417e -
Branch / Tag:
refs/tags/v0.0.1a30.dev0 - Owner: https://github.com/git-pull
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@8f5b6532d8cccdd978900250e75a687e62bb417e -
Trigger Event:
push
-
Statement type:
File details
Details for the file sphinx_autodoc_docutils-0.0.1a30.dev0-py3-none-any.whl.
File metadata
- Download URL: sphinx_autodoc_docutils-0.0.1a30.dev0-py3-none-any.whl
- Upload date:
- Size: 32.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6ccc0fb2af2feb311389bcf7fd5def410ab92fb9e0d21a76acdd1594c0b0b85a
|
|
| MD5 |
cc1648cd05eb4aad38289f637824cb98
|
|
| BLAKE2b-256 |
95e978bc9027f46bb36815c19c8c233983e6ea67855b96ef97d8a74155ec897d
|
Provenance
The following attestation bundles were made for sphinx_autodoc_docutils-0.0.1a30.dev0-py3-none-any.whl:
Publisher:
release.yml on git-pull/gp-sphinx
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sphinx_autodoc_docutils-0.0.1a30.dev0-py3-none-any.whl -
Subject digest:
6ccc0fb2af2feb311389bcf7fd5def410ab92fb9e0d21a76acdd1594c0b0b85a - Sigstore transparency entry: 1751921180
- Sigstore integration time:
-
Permalink:
git-pull/gp-sphinx@8f5b6532d8cccdd978900250e75a687e62bb417e -
Branch / Tag:
refs/tags/v0.0.1a30.dev0 - Owner: https://github.com/git-pull
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@8f5b6532d8cccdd978900250e75a687e62bb417e -
Trigger Event:
push
-
Statement type: