Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

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.

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.1.0a37.tar.gz (16.7 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.1.0a37-py3-none-any.whl (17.5 kB view details)

Uploaded Python 3

File details

Details for the file sphinx_ux_badges-0.1.0a37.tar.gz.

File metadata

  • Download URL: sphinx_ux_badges-0.1.0a37.tar.gz
  • Upload date:
  • Size: 16.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for sphinx_ux_badges-0.1.0a37.tar.gz
Algorithm Hash digest
SHA256 1e2f9e4908a090c9586aba83f1e5c262a3aa30875adb19afe5773fb44305d8cf
MD5 c2096f068e494faafc51bf3a9124ca9e
BLAKE2b-256 2cdc66f3b29bcb3be2132f5fed91f6e0ce9a23febcc79e499a4e07145a4aab74

See more details on using hashes here.

Provenance

The following attestation bundles were made for sphinx_ux_badges-0.1.0a37.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.1.0a37-py3-none-any.whl.

File metadata

File hashes

Hashes for sphinx_ux_badges-0.1.0a37-py3-none-any.whl
Algorithm Hash digest
SHA256 5e4140c518a0c532018900f5beb965a1f470df71cd7bac1c1bd39dc0edd10cb2
MD5 510fc3f4c91387156a767f81bcac4f4d
BLAKE2b-256 73c57947392920f26a579fb6c3f9a2f7f04773f26f2feaee8282e79a62f140c2

See more details on using hashes here.

Provenance

The following attestation bundles were made for sphinx_ux_badges-0.1.0a37-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.

Release history Release notifications | RSS feed

This release

0.1.0a37 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page