Sphinx-Needs extension for SVG diagrams with clickable need links
Project description
sphinx-need-svg
A Sphinx-Needs extension for rendering SVG diagrams with clickable links to needs entities.
Write SVG markup with Jinja2 templating directly in your RST documentation.
Quick Start
pip install sphinx-need-svg
Add to conf.py:
extensions = ["sphinx_needs", "sphinx_need_svg"]
Use in RST:
.. needsvg::
<svg width="200" height="50">
<a href="{{ ref('REQ_001') }}">
<text x="10" y="30">{{ needs['REQ_001'].title }}</text>
</a>
</svg>
Development
mise install # set up Python via mise
mise run install # install deps with uv
mise run test # run tests
mise run docs # build documentation
See the documentation for full details.
AI Agent Skill
The repository includes a generated SKILL.md that teaches AI
coding agents how to use this extension — directive options, Jinja helpers,
configuration, and patterns like drilldown navigation. CI keeps it up to date
automatically.
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_need_svg-0.3.0.tar.gz.
File metadata
- Download URL: sphinx_need_svg-0.3.0.tar.gz
- Upload date:
- Size: 188.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
905885a0dac50f6284ea0da724a530508775d3477da8da11a10e7114156e0c29
|
|
| MD5 |
e6c5394f0e43285f5172e44477628f53
|
|
| BLAKE2b-256 |
968a3d4bbfdedc12188782a3ca63e862e57115725c27fda4305cab96f89f02a7
|
Provenance
The following attestation bundles were made for sphinx_need_svg-0.3.0.tar.gz:
Publisher:
release.yaml on cpolzer/sphinx-need-svg
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sphinx_need_svg-0.3.0.tar.gz -
Subject digest:
905885a0dac50f6284ea0da724a530508775d3477da8da11a10e7114156e0c29 - Sigstore transparency entry: 1583112228
- Sigstore integration time:
-
Permalink:
cpolzer/sphinx-need-svg@51cd391727c83cb92b98387658ccefca4519244b -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/cpolzer
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@51cd391727c83cb92b98387658ccefca4519244b -
Trigger Event:
push
-
Statement type:
File details
Details for the file sphinx_need_svg-0.3.0-py3-none-any.whl.
File metadata
- Download URL: sphinx_need_svg-0.3.0-py3-none-any.whl
- Upload date:
- Size: 8.8 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 |
1e1c039c3616ef4f20e84db4ac4eb282aef53ace4c72a948fa37bfeb399e4856
|
|
| MD5 |
bf10802a37e0d29d112240901d848331
|
|
| BLAKE2b-256 |
e7d6549d7990b381cf96333883832c18daa4664b112ba616ef7e032b119f9cce
|
Provenance
The following attestation bundles were made for sphinx_need_svg-0.3.0-py3-none-any.whl:
Publisher:
release.yaml on cpolzer/sphinx-need-svg
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sphinx_need_svg-0.3.0-py3-none-any.whl -
Subject digest:
1e1c039c3616ef4f20e84db4ac4eb282aef53ace4c72a948fa37bfeb399e4856 - Sigstore transparency entry: 1583112339
- Sigstore integration time:
-
Permalink:
cpolzer/sphinx-need-svg@51cd391727c83cb92b98387658ccefca4519244b -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/cpolzer
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@51cd391727c83cb92b98387658ccefca4519244b -
Trigger Event:
push
-
Statement type: