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.1a24.tar.gz (15.6 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.1a24-py3-none-any.whl (16.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sphinx_ux_badges-0.0.1a24.tar.gz
  • Upload date:
  • Size: 15.6 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.1a24.tar.gz
Algorithm Hash digest
SHA256 2d766dbd0550f7db1edb3ce0ffb4e69d926f1ae0795fe830647c9311ef783b62
MD5 414187fe022ff26c163e4cc0e06b4cb2
BLAKE2b-256 a873ffd223c719e4b93d7db4cac795e8939738805733a25f660e3839df3bdbf6

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for sphinx_ux_badges-0.0.1a24-py3-none-any.whl
Algorithm Hash digest
SHA256 cd86def8cd62f7c260122946896dc234a401a4a80447fae0d1446a6961f890a0
MD5 9ffc11bec315f2f848eeef109c0a6b76
BLAKE2b-256 b4f01fbb1674eeb59d996ff89b182227adcf53ec4bc0ccb92a62bdff54acdbb7

See more details on using hashes here.

Provenance

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