Skip to main content

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

poetry install
poetry build
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:

poetry run task labels

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_ref_in_plantuml_hyperlinks-0.7.1.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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