在doxygen降价页面中使用UML

在doxygen降价页面中使用UML,uml,markdown,doxygen,plantuml,mermaid,Uml,Markdown,Doxygen,Plantuml,Mermaid,我在我的个人项目中使用doxygen,并且希望在我自己创建的页面(标记页面)上使用任何类型的UML语言。我的意思不是在代码中使用它(它确实有效),而是在我自己创建的文档中,参考下面的示例: # Example sequenceDiagram participant Alice participant Bob Alice->>John: Hello John, how are you? loop Healthcheck John->

我在我的个人项目中使用doxygen,并且希望在我自己创建的页面(标记页面)上使用任何类型的UML语言。我的意思不是在代码中使用它(它确实有效),而是在我自己创建的文档中,参考下面的示例:

# 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
问题是:


如何在doxygen的自定义标记文件中使用uml图。

问题是什么?您使用的是哪个版本的doxygen?您可能希望使用
\startuml
/
\enduml
命令(正如您在最后几行中尝试的那样)。关于三次倒勾,已经存在一个问题:。为什么在反斜杠之前使用反斜杠?您是否收到任何警告?您需要编辑您的问题。评论是不够的。关于“startuml | \enduml标记也不起作用”,这一定与您的安装有关。你安装了plantuml吗?doxygen配置文件(Doxyfile)中的
PLANTUML\u JAR\u路径中有什么内容。你收到警告了吗?请使用
doxygen-d extcmd
重新运行,以提供由doxygen运行的命令。当您在2019年11月从git构建它时,它是主版本(介于1.8.16和1.8.17之间,请给出
doxygen-v
的输出)。为了便于比较设置,还提供了
doxygen-x Doxyfile
的输出。幸运的是,问题解决了。plantuml有时确实有点麻烦,要重新生成,必须删除
OUTPUT\u目录中的
inline\u umlgraph\u cache\u all.pu
文件,否则doxygen认为文件已经生成(除非其中一个
@startuml
代码已更改)。问题是什么?您使用的是哪个版本的doxygen?您可能希望使用
\startuml
/
\enduml
命令(正如您在最后几行中尝试的那样)。关于三次倒勾,已经存在一个问题:。为什么在反斜杠之前使用反斜杠?您是否收到任何警告?您需要编辑您的问题。评论是不够的。关于“startuml | \enduml标记也不起作用”,这一定与您的安装有关。你安装了plantuml吗?doxygen配置文件(Doxyfile)中的
PLANTUML\u JAR\u路径中有什么内容。你收到警告了吗?请使用
doxygen-d extcmd
重新运行,以提供由doxygen运行的命令。当您在2019年11月从git构建它时,它是主版本(介于1.8.16和1.8.17之间,请给出
doxygen-v
的输出)。为了便于比较设置,还提供了
doxygen-x Doxyfile
的输出。幸运的是,问题解决了。plantuml有时确实有点麻烦,要重新生成,必须删除
OUTPUT\u目录中的
inline\u umlgraph\u cache\u all.pu
文件,否则doxygen认为文件已经生成(除非
@startuml
代码之一发生更改)。
# 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