PUML links to ASCIIdoc document

0 votes
asked Jun 29, 2020 in Question / help by pfe (120 points)
Hello everyone. Thanks in advance.

I'm currently working with puml diagrams into an asciidoc document.

I know that it is possible create hiperlinks in a plant uml diagram. But I was wondering if there is any way to create those links as references to the asciidoc document that is rendering those puml diagrams.

Any idea? Any workaround to achive this?

This would allow me to make the asciidoc document more interactive.

Thanks again

1 Answer

0 votes
answered Mar 15, 2021 by anonymous

I'm not sure, but In my case, if document output is html, it is possible.

if you click hoge of diagram in document.html, you can jump to chapter1_example.

document.adoc

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

== chapter1_example

== chapter2_example

* You can click "hoge" in the Diagram below and can jump to chapter1_example

[plantuml, format="svg", options="interactive"]

----

@startuml

A -> B : [[document.html#_chapter1_example hoge]]

@enduml

----

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

...