uml - 在 doxygen 降价页面中使用 UML
问题描述
我正在为我的个人项目使用 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
这是输出:
虽然本文适用于 Typora (美人鱼),但 Plantuml 与 gitlab 上的美人鱼一起生成。
doxygen -x Doxyfile
输出:
# 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
问题是:
如何在 doxygen 的自定义 markdown 文件中使用 uml 图。
解决方案
推荐阅读
- django - 如果 search_field (由相关的 FK)乘以 Django 管理注释,
- python - 无法在来自 blobstorage 的先前数据帧中附加新数据帧
- reactjs - firebase__WEBPACK_IMPORTED_MODULE_3___default.a.auth.onAuthStateChanged 不是 Firebase 反应的函数
- forms - 将控制台参数解析到浏览器的批处理脚本
- jvm - 如何为 -XX:AbortVMOnException 定义多个错误
- c++ - 额外限定,无法从“int”转换为“Rational”
- javascript - 确保 Dexie.js 字段中的数据类型
- c# - 为什么多个班级成员分配会产生冗余装配?
- vaadin - Vaadin 14 重新路由
- sql - 用于更新列的 Sql 查询