Skip to main content

Shared badge node and CSS for Sphinx autodoc extensions

Project description

sphinx-ux-badges

Shared badge node and CSS for Sphinx autodoc extensions in the gp-sphinx ecosystem.

Provides BadgeNode, HTML visitors, and builder helpers shared by sphinx-autodoc-api-style, sphinx-autodoc-pytest-fixtures, sphinx-autodoc-sphinx, sphinx-autodoc-docutils, and sphinx-autodoc-fastmcp.

Install

$ pip install sphinx-ux-badges

Usage

Load the badge layer from your own extension's setup():

def setup(app):
    app.setup_extension("sphinx_ux_badges")

Then build badges in your directives or transforms:

from sphinx_ux_badges import build_badge, build_badge_group, build_toolbar

group = build_badge_group([
    build_badge(
        "readonly",
        tooltip="Read-only",
        classes=["gp-sphinx-fastmcp__safety-readonly"],
    ),
])

Documentation

See the full documentation for the colour palette reference, BadgeSpec API, and live demos.

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_ux_badges-0.0.1a13.tar.gz (15.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_ux_badges-0.0.1a13-py3-none-any.whl (16.3 kB view details)

Uploaded Python 3

File details

Details for the file sphinx_ux_badges-0.0.1a13.tar.gz.

File metadata

  • Download URL: sphinx_ux_badges-0.0.1a13.tar.gz
  • Upload date:
  • Size: 15.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for sphinx_ux_badges-0.0.1a13.tar.gz
Algorithm Hash digest
SHA256 88c429a4b63cbb35c8f113985981092f62c559e9d3d5204f63ab0d010e9ecf65
MD5 7461a9a4406c2f8424d06a4e3c22816a
BLAKE2b-256 f1760d2275bf0de9ef74131c828f077a9c21377d9a5698906389cdf43b5759f9

See more details on using hashes here.

Provenance

The following attestation bundles were made for sphinx_ux_badges-0.0.1a13.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_ux_badges-0.0.1a13-py3-none-any.whl.

File metadata

File hashes

Hashes for sphinx_ux_badges-0.0.1a13-py3-none-any.whl
Algorithm Hash digest
SHA256 64ade9a187f593dd9254354b348fcd858eef99f1b0d8a57bc5baf54fe1dce779
MD5 6f0a9a45c5a662e9a7a12d1933f4d76c
BLAKE2b-256 48262245dc4b805dab87b73ce2a0fec1d9ff8f8ba2127cb63892b6367093ad2a

See more details on using hashes here.

Provenance

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