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

Uploaded Python 3

File details

Details for the file sphinx_need_svg-0.3.1.tar.gz.

File metadata

  • Download URL: sphinx_need_svg-0.3.1.tar.gz
  • Upload date:
  • Size: 191.2 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.1.tar.gz
Algorithm Hash digest
SHA256 e09a16a2f38a014213facf86a5bd92547174eb72258c524b2e0710535b51033c
MD5 9dececb271431cafe14887da0818925f
BLAKE2b-256 c3ef718c2ea29a129a57e028e9db1b9f809b24cb647e6d18b1ba6eecad4e90d3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for sphinx_need_svg-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 310a1aafcf0e0e72e80d713d11b76f45406a5448abe786cc025bd6119c9f056e
MD5 a764430c67ea29fc518e1b92d0d630fc
BLAKE2b-256 a85962dd8f835265cb028a94c72248f06da6aa65b33eb33205ef4ac1a61df664

See more details on using hashes here.

Provenance

The following attestation bundles were made for sphinx_need_svg-0.3.1-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