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.
pip install sphinx-need-svgAdd 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>mise install # set up Python via mise
mise run install # install deps with uv
mise run test # run tests
mise run docs # build documentationSee the documentation for full details.
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.