Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sphinx_need_svg-0.3.0.tar.gz (188.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_need_svg-0.3.0-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

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

Hashes for sphinx_need_svg-0.3.0.tar.gz
Algorithm Hash digest
SHA256 905885a0dac50f6284ea0da724a530508775d3477da8da11a10e7114156e0c29
MD5 e6c5394f0e43285f5172e44477628f53
BLAKE2b-256 968a3d4bbfdedc12188782a3ca63e862e57115725c27fda4305cab96f89f02a7

See more details on using hashes here.

Provenance

The following attestation bundles were made for sphinx_need_svg-0.3.0.tar.gz:

Publisher: release.yaml on cpolzer/sphinx-need-svg

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_need_svg-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for sphinx_need_svg-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1e1c039c3616ef4f20e84db4ac4eb282aef53ace4c72a948fa37bfeb399e4856
MD5 bf10802a37e0d29d112240901d848331
BLAKE2b-256 e7d6549d7990b381cf96333883832c18daa4664b112ba616ef7e032b119f9cce

See more details on using hashes here.

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

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