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.1a16.dev4.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.

File details

Details for the file sphinx_autodoc_api_style-0.0.1a16.dev4.tar.gz.

File metadata

File hashes

Hashes for sphinx_autodoc_api_style-0.0.1a16.dev4.tar.gz
Algorithm Hash digest
SHA256 10072a6882a0be27ecad42d15f2e7cc3b778ad73300af8cde43e5aedbcb119d3
MD5 f221a7b8084c33e3972f6e805fa06190
BLAKE2b-256 e420585919161263ee304cfd3d841a1dcfea01b87b91835646220e690d595000

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for sphinx_autodoc_api_style-0.0.1a16.dev4-py3-none-any.whl
Algorithm Hash digest
SHA256 2945fd40f25dbc657505217a2e44ca7f998d834cea3bbd9672d6308befeb22d6
MD5 1cdaba7be50263a24f18a304030f6b1d
BLAKE2b-256 ae15d8c9977385843052ddf78709ba1e8f6ef5dec007ba16be3fad395553ec9a

See more details on using hashes here.

Provenance

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