1.3.3.8.3. blockdiag Directive - Sequence Diagram¶
Requirements:
Install:
sphinxcontrib-seqdiagvia Python pip (Included in SPHINX_ENV_INSTALL, Sphinx Environment)Add
sphinxcontrib.seqdiagto Sphinx extentions in conf.py (Included in SPHINX_ENV_INSTALL, Sphinx Environment via defaults.py)
This is your .rst file code example to create a Sequence Diagram http://blockdiag.com/en/seqdiag/index.html:
Option |
Values |
|---|---|
:align: |
left, center or right |
:scale: |
0-100 percentage value |
:caption: |
text to label Figure |
:name: |
text to create hyperlink for sphinx (no spaces) |
:desctable: |
Adds description table as shown in example. (no spaces in labels) |
.. seqdiag::
:align: center
:caption: Example - Sequence Diagram
:name: triton_coe_test_seqdiag
:scale: 100
:desctable:
seqdiag {
Level-1 -> Level-2 -> Level-3;
Level-2 -> Report;
Level-3 -> Report;
Level-1 [description = "Integration in Lab 9"];
Level-2 [description = "Qualification in Lab 10 West"];
Level-3 [description = "Certification in Triton System Center (TSC)"];
Report [description = "Generate Report of testing"];
}
The previous code-block will generate this Sequence Diagram:
Figure 1.4 Example - Sequence Diagram¶
Name |
Description |
|---|---|
Level-1 |
Integration in Lab 9 |
Level-2 |
Qualification in Lab 10 West |
Level-3 |
Certification in Triton System Center (TSC) |
Report |
Generate Report of testing |
