Skip to main content

Sphinx extension for enhanced autodoc API entry styling (badges and cards)

Project description

sphinx-autodoc-api-style

Sphinx extension that adds type and modifier badges and card-style containers to standard Python domain autodoc entries (functions, classes, methods, properties, attributes, data, exceptions).

Internally it is now a thin metadata producer on top of the shared stack: sphinx_ux_badges owns badge rendering and sphinx_ux_autodoc_layout owns the api-* entry structure and type rendering.

Install

$ pip install sphinx-autodoc-api-style

Installing this package also installs sphinx-ux-badges and sphinx-ux-autodoc-layout as declared dependencies.

Usage

extensions = ["sphinx_autodoc_api_style"]

No special directives are required — existing .. autofunction::, .. autoclass::, and related directives receive badges automatically.

sphinx_autodoc_api_style automatically registers sphinx_ux_badges and sphinx_ux_autodoc_layout via app.setup_extension(). You do not need to add them separately to your extensions list.

Documentation

See the full documentation for demos and the badge reference.

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_autodoc_api_style-0.0.1a30.dev0.tar.gz (9.0 kB view details)

Uploaded Source

Built Distribution

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

File details

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

File metadata

File hashes

Hashes for sphinx_autodoc_api_style-0.0.1a30.dev0.tar.gz
Algorithm Hash digest
SHA256 1bcd278b867eb70394b02352c83c9b27e4b39ba72f65f3b05b67242220394df1
MD5 981f9138f49f9a218093f6858d118910
BLAKE2b-256 95bbe11767a7a52ca36ef67598b567277556248ccf3de0845db0b466a896c332

See more details on using hashes here.

Provenance

The following attestation bundles were made for sphinx_autodoc_api_style-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_autodoc_api_style-0.0.1a30.dev0-py3-none-any.whl.

File metadata

File hashes

Hashes for sphinx_autodoc_api_style-0.0.1a30.dev0-py3-none-any.whl
Algorithm Hash digest
SHA256 db3d47c58b4839e8540b449744bf1fc5a8153b67abe63b876ae5bc58399182d6
MD5 ea18abfaa919a46cbe5376d8b4e120bf
BLAKE2b-256 4368f73954a6d488f2ce08dc535bc77517548eda561a663970a583d12b1beb24

See more details on using hashes here.

Provenance

The following attestation bundles were made for sphinx_autodoc_api_style-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