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.1a9.tar.gz (8.3 kB view details)

Uploaded Source

Built Distribution

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

sphinx_autodoc_api_style-0.0.1a9-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

Details for the file sphinx_autodoc_api_style-0.0.1a9.tar.gz.

File metadata

File hashes

Hashes for sphinx_autodoc_api_style-0.0.1a9.tar.gz
Algorithm Hash digest
SHA256 8294adec686147a09d40166cf7c1d3787795ee04883ed7f2367319283f3f6434
MD5 90e3cbd811319e6f6565dfa1cade9009
BLAKE2b-256 f061b0ed6501666b8909918166aef96a2f67a69ccefbae55af02135141f3b19a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for sphinx_autodoc_api_style-0.0.1a9-py3-none-any.whl
Algorithm Hash digest
SHA256 c8d809df9cf1738c8d9777c50cfcc354249b28ebf13e024be3a7a996d97f5494
MD5 8b7b3e30300365bc52cdf8dacbb6e371
BLAKE2b-256 e7d28c588fcc4d778e36d9e1a1aae0f4334c585051d07fcec0689e4865975d5d

See more details on using hashes here.

Provenance

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