sphinx-diagram-connect is a Sphinx extension to resolve std:ref-s defined in plantuml files
Project description
Enhance Your Sphinx Documentation with Dynamic Diagram Links
Unlock Seamless Navigation Between Diagrams and Documentation
sphinx_diagram_connect is a powerful Sphinx extension designed to create intelligent, clickable links within your PlantUML and DrawIO diagrams. By automatically resolving std:doc: and std:ref: syntax, this extension allows you to effortlessly connect elements in your diagrams directly to relevant sections or components within your Sphinx documentation. This means enhanced navigation, improved information flow, and a more interactive experience for your readers.
See It in Action: Dynamic References in PlantUML
Imagine clicking on a diagram element and being taken directly to its detailed explanation in your documentation. This is precisely what sphinx_diagram_connect enables.
This example demonstrates how std:doc: and std:ref: syntax within your PlantUML code becomes a live hyperlink in your rendered documentation:
.. uml::
:caption: PlantUML Caption with **bold** and *italic*
:name: PlantUML Label2
@startmindmap mindmap2
*[#Orange] Example of clickable references
**[#lightgreen] [[ ":ref:`Heading 2`" Internal Page Arbitrary Reference1 ]]
**[#lightblue] [[ ":ref:`N_00002`" Internal Page Arbitrary Reference2 on sphinx-needs ]]
**[#lightgrey] [[ ":doc:`Test PlantUML 3`" Internal Page Reference3 ]]
@endmindmap
Installation
You can easily install sphinx-diagram-connect using pip:
pip install sphinx-diagram-connect
Alternatively (for Linux users with Poetry):
git clone https://github.com/mi-parkes/sphinx-diagram-connect.git
cd sphinx-diagram-connect
poetry install
poetry build
poetry add -G sphinx dist/sphinx_diagram_connect-*-py3-none-any.whl
Activation
Once installed, simply add sphinx_diagram_connect to your extensions list in your conf.py file:
extensions = [
...,
'sphinx_diagram_connect'
]
Listing Available Labels:
To see all referenceable labels in your project, use:
poetry run task labels
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_diagram_connect-1.0.0.tar.gz.
File metadata
- Download URL: sphinx_diagram_connect-1.0.0.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.13.3 Darwin/24.5.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f7a1e801acb789c492af5582cb8a9fcf51ff9cd2192955dd55e7a2b0cb5592a7
|
|
| MD5 |
50fb432a42159a609c7deb5b7497b450
|
|
| BLAKE2b-256 |
50ba022db57fe05696ae53aca18bfc8c24b7af27a4607a0fb3918248a8259300
|
File details
Details for the file sphinx_diagram_connect-1.0.0-py3-none-any.whl.
File metadata
- Download URL: sphinx_diagram_connect-1.0.0-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.13.3 Darwin/24.5.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3fcc798377a9b6874d9fd8689cd1afb28d7b48345a3ffe57d918c76287580237
|
|
| MD5 |
1504261e90e8d5029e8933f7fede2f19
|
|
| BLAKE2b-256 |
2beb8161419185805f22db0e017bf437440f1f32b49af67f2f0ffe04e9abe335
|