sphinx-ref-in-plantuml-hyperlinks is a Sphinx extension to resolve std:ref-s defined in plantuml files
Project description
Enhanced integration between Sphinx documentation and PlantUML diagrams
sphinx_ref_in_plantuml_hyperlinks
is a Sphinx extension that automatically resolves references (links) created using the std:ref:
syntax within PlantUML diagrams. This allows you to link elements in your PlantUML diagrams to corresponding sections or elements in your Sphinx documentation, enhancing navigation and information flow.
Example of Use
.. uml::
:caption: PlantUML Caption with **bold** and *italic*
:name: PlantUML Label2
@startmindmap mindmap2
*[#Orange] Example of clickable references
**[#lightgreen] [[ ":ref:`plantuml label1`" Internal Page Reference1 ]]
**[#lightblue] [[ ":ref:`N_00001`" Internal Page Reference2 on Sphinx-Needs ]]
@endmindmap
Installation
You can install sphinx-ref-in-plantuml-hyperlinks with pip
pip install sphinx-ref-in-plantuml-hyperlinks
Alternatively (Linux)
git clone https://github.com/mi-parkes/sphinx-ref-in-plantuml-hyperlinks.git
cd sphinx-ref-in-plantuml-hyperlinks
python3 -m venv .venv
source .venv/bin/activate
pip install -r doc/requirements.txt
python3 -m build --wheel
pip install dist/sphinx_ref_in_plantuml_hyperlinks*.whl
Activation
In your conf.py configuration file, add sphinx_ref_in_plantuml_hyperlinks
to your extensions list:
extensions = [
...
'sphinx_ref_in_plantuml_hyperlinks'
...
]
List Labels:
python3 -m sphinx.ext.intersphinx build/html/objects.inv
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
File details
Details for the file sphinx-ref-in-plantuml-hyperlinks-0.6.0.tar.gz
.
File metadata
- Download URL: sphinx-ref-in-plantuml-hyperlinks-0.6.0.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7ac4f7f2e69e1a9f546a7282147dc16c73a570edb5291cbdffcc6cb04a310711 |
|
MD5 | 8045bfd578278dced1034f1486557619 |
|
BLAKE2b-256 | 31587f71b45d93662dc173968f4b65aaa1127cab900adf6e94e179d3938478ea |