45 lines
669 B
Markdown
45 lines
669 B
Markdown
|
|
# Document with Diagram Sources
|
||
|
|
|
||
|
|
## State Machine
|
||
|
|
|
||
|
|
The following Mermaid diagram describes the state machine:
|
||
|
|
|
||
|
|
```mermaid
|
||
|
|
stateDiagram-v2
|
||
|
|
[*] --> Idle
|
||
|
|
Idle --> Processing: start
|
||
|
|
Processing --> Done: complete
|
||
|
|
Processing --> Error: fail
|
||
|
|
Done --> [*]
|
||
|
|
Error --> Idle: reset
|
||
|
|
```
|
||
|
|
|
||
|
|
## Dependency Graph
|
||
|
|
|
||
|
|
The Graphviz diagram shows dependencies:
|
||
|
|
|
||
|
|
```graphviz
|
||
|
|
digraph G {
|
||
|
|
A -> B;
|
||
|
|
A -> C;
|
||
|
|
B -> D;
|
||
|
|
C -> D;
|
||
|
|
}
|
||
|
|
```
|
||
|
|
|
||
|
|
## Sequence
|
||
|
|
|
||
|
|
The PlantUML sequence diagram:
|
||
|
|
|
||
|
|
```plantuml
|
||
|
|
@startuml
|
||
|
|
Alice -> Bob: Request
|
||
|
|
Bob --> Alice: Response
|
||
|
|
Alice -> Carol: Forward
|
||
|
|
@enduml
|
||
|
|
```
|
||
|
|
|
||
|
|
## Summary
|
||
|
|
|
||
|
|
All three diagram types are supported in LEVEL3 source-only mode.
|