I am using doxygen for my personal project and desire to use any type of UML language on page created by myself (markdown page). I do not mean to use it in code (it does work), but on a document created by myself, refer to example underneath:
# Example
sequenceDiagram
participant Alice
participant Bob
Alice->>John: Hello John, how are you?
loop Healthcheck
John->>John: Fight against hypochondria
end
Note right of John: Rational thoughts <br/>prevail!
John-->>Alice: Great!
John->>Bob: How about you?
Bob-->>John: Jolly good!
```plantuml
Alice -> Bob: Authentication Request
Bob --> Alice: Authentication Response
Alice -> Bob: Another authentication Request
Alice <-- Bob: Another authentication Response
```
```mermaid
sequenceDiagram
Alice -> Bob: Authentication Request
Bob --> Alice: Authentication Response
Alice -> Bob:Another authentication Response
Bob --> Alice: Another authentication Response
```
@startuml
Alice -> Bob: Authentication Request
Bob --> Alice: Authentication Response
Alice -> Bob: Another authentication Request
Alice <-- Bob: Another authentication Response
@enduml
\startuml
Alice -> Bob: Authentication Request
Bob --> Alice: Authentication Response
Alice -> Bob: Another authentication Request
Alice <-- Bob: Another authentication Response
\enduml
And here is the output:
While this text works (mermaid) for typora and plantuml generates together with mermaid on gitlab.
doxygen -x Doxyfile
output:
# Difference with default Doxyfile 1.8.17 (9b14bf58c30a02ef19abebec280568532dc58ed4)
PROJECT_NAME = Name
PROJECT_NUMBER = 0.0.1
PROJECT_BRIEF = "Brief"
OUTPUT_DIRECTORY = out
INLINE_INHERITED_MEMB = YES
INPUT = ./files \
../src/
RECURSIVE = YES
PLANTUML_JAR_PATH = /home/<SURNAME>/Installations/plantuml.jar
Question is:
How to use uml diagrams in custom markdown file in doxygen.
\startuml
/\enduml
commands (as you tried at the last lines). Regarding the triple backticks there is already an issue: github.com/doxygen/doxygen/issues/7543 . Why did you used the backslashes before the backticks? Do you get any warnings? – Jandel\startuml
|\enduml
markers did not worked either. – ChalmerHow to use uml diagrams in custom markdown files, in doxygen.
– ChalmerPLANTUML_JAR_PATH
in your doxygen configuration file (Doxyfile). Did you get a warning? Please rerun withdoxygen -d extcmd
to give the commands as run by doxygen. When you build it in November 2019 from git it is the master version (between 1.8.16 and 1.8.17, please give the output ofdoxygen -v
). For easy comparison of settings also provide the output ofdoxygen -x Doxyfile
. – Jandel@startuml
/@enduml
. – JandelPLANTUML_JAR_PATH
, which I already fixed, but effect isn't different. I have added aswell both verrsion (with@
and with `` into tested code samples. – Chalmerout
, everything went smoothly. Code has spit out errors, which I easily fixed on my own. Thank you for great amount of help! – Chalmerinline_umlgraph_cache_all.pu
file in theOUTPUT_DIRECTORY
otherwise doxygen thinks the files were already generated (unless one of the@startuml
codes changed) . – Jandel