Kroki Test: Difference between revisions

From VoIPmonitor.org
(Test edit for incremental indexer testing)
(Revert test edit)
Tag: Manual revert
Line 1: Line 1:
  == Kroki Extension Test ==
  == Kroki Extension Test ==


=== Test 1: PlantUML Sequence Diagram ===
  === Test 1: PlantUML Sequence Diagram ===
<kroki lang="plantuml">
  <kroki lang="plantuml">
@startuml
  @startuml
Alice -> Bob: Authentication Request
  Alice -> Bob: Authentication Request
Bob --> Alice: Authentication Response
  Bob --> Alice: Authentication Response


Alice -> Bob: Another authentication Request
  Alice -> Bob: Another authentication Request
Alice <-- Bob: Another authentication Response
  Alice <-- Bob: Another authentication Response
@enduml
  @enduml
</kroki>
  </kroki>


=== Test 2: PlantUML Class Diagram ===
  === Test 2: PlantUML Class Diagram ===
<kroki lang="plantuml">
  <kroki lang="plantuml">
@startuml
  @startuml
class VoIPCall {
  class VoIPCall {
  +String callId
    +String callId
  +DateTime startTime
    +DateTime startTime
  +DateTime endTime
    +DateTime endTime
  +int duration
    +int duration
  +makeCall()
    +makeCall()
  +endCall()
    +endCall()
}
  }


class CDR {
  class CDR {
  +String recordId
    +String recordId
  +VoIPCall call
    +VoIPCall call
  +generateReport()
    +generateReport()
}
  }


VoIPCall "1" -- "1" CDR
  VoIPCall "1" -- "1" CDR
@enduml
  @enduml
</kroki>
  </kroki>


=== Test 3: Mermaid Flowchart ===
  === Test 3: Mermaid Flowchart ===
<kroki lang="mermaid">
  <kroki lang="mermaid">
graph TD
  graph TD
    A[Start VoIP Call] -->|Dial| B{Number Valid?}
      A[Start VoIP Call] -->|Dial| B{Number Valid?}
    B -->|Yes| C[Connect Call]
      B -->|Yes| C[Connect Call]
    B -->|No| D[Error Message]
      B -->|No| D[Error Message]
    C --> E[Call in Progress]
      C --> E[Call in Progress]
    E --> F[End Call]
      E --> F[End Call]
    D --> F
      D --> F
</kroki>
  </kroki>


=== Test 4: GraphViz Network Diagram ===
  === Test 4: GraphViz Network Diagram ===
<kroki lang="graphviz">
  <kroki lang="graphviz">
digraph G {
  digraph G {
    rankdir=LR;
      rankdir=LR;
    node [shape=box];
      node [shape=box];


    SIPPhone1 [label="SIP Phone 1"];
      SIPPhone1 [label="SIP Phone 1"];
    SIPPhone2 [label="SIP Phone 2"];
      SIPPhone2 [label="SIP Phone 2"];
    PBX [label="VoIPmonitor\nPBX"];
      PBX [label="VoIPmonitor\nPBX"];


    SIPPhone1 -> PBX [label="SIP"];
      SIPPhone1 -> PBX [label="SIP"];
    PBX -> SIPPhone2 [label="RTP"];
      PBX -> SIPPhone2 [label="RTP"];
}
  }
</kroki>
  </kroki>
 
=== Test edit marker ===
This line was added for testing incremental wiki indexing.

Revision as of 03:02, 9 January 2026

== Kroki Extension Test ==
 === Test 1: PlantUML Sequence Diagram ===
 === Test 2: PlantUML Class Diagram ===
 === Test 3: Mermaid Flowchart ===
 === Test 4: GraphViz Network Diagram ===