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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sphinx_ux_badges-0.0.1a18.dev0.tar.gz.
File metadata
- Download URL: sphinx_ux_badges-0.0.1a18.dev0.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2ee8e7abe0be36c0232f744752e0bc51fa5e53449b39b1259d4d44b4293c465c
|
|
| MD5 |
d54a2fd0ca5504b798ac0dfdb89cef19
|
|
| BLAKE2b-256 |
564b86ad32d31ccf91a90a4bf35a782a2820ebd856e133852750c289a59e98b5
|
Provenance
The following attestation bundles were made for sphinx_ux_badges-0.0.1a18.dev0.tar.gz:
Publisher:
release.yml on git-pull/gp-sphinx
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sphinx_ux_badges-0.0.1a18.dev0.tar.gz -
Subject digest:
2ee8e7abe0be36c0232f744752e0bc51fa5e53449b39b1259d4d44b4293c465c - Sigstore transparency entry: 1501554151
- Sigstore integration time:
-
Permalink:
git-pull/gp-sphinx@6dd623ebe4973ac1c818037f5013edbab6210dec -
Branch / Tag:
refs/tags/v0.0.1a18.dev0 - Owner: https://github.com/git-pull
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@6dd623ebe4973ac1c818037f5013edbab6210dec -
Trigger Event:
push
-
Statement type:
File details
Details for the file sphinx_ux_badges-0.0.1a18.dev0-py3-none-any.whl.
File metadata
- Download URL: sphinx_ux_badges-0.0.1a18.dev0-py3-none-any.whl
- Upload date:
- Size: 16.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c00687ae6acc3ad4e6befc293eabc1ed5ce4d9cb90abb8c48696f1a1190d7c12
|
|
| MD5 |
6cbc046deec77ca091d542d9f02f72ba
|
|
| BLAKE2b-256 |
3f1a15459a1e42b46fde653b3243aa71799752fa78f4077da841e772dbb66cac
|
Provenance
The following attestation bundles were made for sphinx_ux_badges-0.0.1a18.dev0-py3-none-any.whl:
Publisher:
release.yml on git-pull/gp-sphinx
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sphinx_ux_badges-0.0.1a18.dev0-py3-none-any.whl -
Subject digest:
c00687ae6acc3ad4e6befc293eabc1ed5ce4d9cb90abb8c48696f1a1190d7c12 - Sigstore transparency entry: 1501555993
- Sigstore integration time:
-
Permalink:
git-pull/gp-sphinx@6dd623ebe4973ac1c818037f5013edbab6210dec -
Branch / Tag:
refs/tags/v0.0.1a18.dev0 - Owner: https://github.com/git-pull
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@6dd623ebe4973ac1c818037f5013edbab6210dec -
Trigger Event:
push
-
Statement type: