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.1a26.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.

sphinx_autodoc_api_style-0.0.1a26-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for sphinx_autodoc_api_style-0.0.1a26.tar.gz
Algorithm Hash digest
SHA256 aeebb7961cd569c7ea9c51fe8854659ada446af2625d35923f70f874f142bebe
MD5 5c3a150ed865f15fb6b8dcdb45b6e078
BLAKE2b-256 04ad7a74189e33610a310cb08e968d390c94ee9168b84366af98c007ba4055ae

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for sphinx_autodoc_api_style-0.0.1a26-py3-none-any.whl
Algorithm Hash digest
SHA256 69158e9518c6230de989f2a12177c550536c55067f6d1942f2b39b04acbc07bd
MD5 9b55d80f7859f7b85e5cf91e20fbf53b
BLAKE2b-256 dbc5d924b1e343cc7d8e6cdba766fd6d7942b62eab4b24f765de232561c946dd

See more details on using hashes here.

Provenance

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