Add sphinxcontrib-mermaid alongside existing blockdiag/seqdiag
extensions to prepare for migrating live diagrams from blockdiag
to Mermaid syntax.
The blockdiag/seqdiag extensions are abandoned and incompatible
with modern Python. The live diagram content in this repository
will be migrated to Mermaid syntax in a follow-up change, after
which blockdiag/seqdiag can be removed.
Issue-ID: CIMAN-33
Change-Id: I3819bb108563eef146b1fbe62d9c684c42c087e6
Signed-off-by: Claude <noreply@anthropic.com>
Signed-off-by: Matthew Watkins <mwatkins@linuxfoundation.org>
extensions = [
'sphinx.ext.intersphinx',
'sphinx.ext.graphviz',
extensions = [
'sphinx.ext.intersphinx',
'sphinx.ext.graphviz',
- 'sphinxcontrib.blockdiag',
- 'sphinxcontrib.seqdiag',
+ 'sphinxcontrib.mermaid',
'sphinxcontrib.plantuml'
]
'sphinxcontrib.plantuml'
]
Below is a diagram of the DMaaP Data Router project docker containers and the connections between them.
Below is a diagram of the DMaaP Data Router project docker containers and the connections between them.
-.. blockdiag::
-
-
- blockdiag layers {
- orientation = portrait
- MARIADB -> DR-PROV;
- DR-PROV -> DR-NODE;
- group l1 {
- color = blue;
- label = "dr-prov Container";
- DR-PROV;
- }
- group l2 {
- color = yellow;
- label = "dr-node Container";
- DR-NODE;
- }
- group l3 {
- color = orange;
- label = "MariaDb Container";
- MARIADB;
- }
-
- }
+.. mermaid::
+
+ graph TD
+ MARIADB --> DR-PROV
+ DR-PROV --> DR-NODE
+
+ subgraph "dr-prov Container"
+ DR-PROV
+ end
+
+ subgraph "dr-node Container"
+ DR-NODE
+ end
+
+ subgraph "MariaDb Container"
+ MARIADB
+ end
+
+ classDef blue fill:#33f,stroke:#333,color:#fff
+ classDef yellow fill:#ff0,stroke:#333,color:#000
+ classDef orange fill:#f90,stroke:#333,color:#000
+
+ class DR-PROV blue
+ class DR-NODE yellow
+ class MARIADB orange
sphinx-rtd-theme>=2.0.0
# Diagram extensions
sphinx-rtd-theme>=2.0.0
# Diagram extensions
-sphinxcontrib-blockdiag>=3.0.0
-sphinxcontrib-seqdiag>=3.0.0
+sphinxcontrib-mermaid>=1.0.0
sphinxcontrib-plantuml>=0.27
# Quality & tooling
sphinxcontrib-plantuml>=0.27
# Quality & tooling
skipsdist = true
[testenv:docs]
skipsdist = true
[testenv:docs]
deps =
-r{toxinidir}/requirements-docs.txt
-chttps://git.onap.org/doc/plain/etc/upper-constraints.onap.txt?h=master
deps =
-r{toxinidir}/requirements-docs.txt
-chttps://git.onap.org/doc/plain/etc/upper-constraints.onap.txt?h=master
-commands_pre =
- ; blockdiag uses Pillow textsize() removed in Pillow 10; force-downgrade
- pip install 'Pillow<10'
commands =
sphinx-build -W -q -b html -n -d {envtmpdir}/doctrees {toxinidir} {toxinidir}/_build/html
[testenv:docs-linkcheck]
commands =
sphinx-build -W -q -b html -n -d {envtmpdir}/doctrees {toxinidir} {toxinidir}/_build/html
[testenv:docs-linkcheck]
deps =
-r{toxinidir}/requirements-docs.txt
-chttps://git.onap.org/doc/plain/etc/upper-constraints.onap.txt?h=master
deps =
-r{toxinidir}/requirements-docs.txt
-chttps://git.onap.org/doc/plain/etc/upper-constraints.onap.txt?h=master
-commands_pre =
- pip install 'Pillow<10'
commands =
sphinx-build -W -q -b linkcheck -d {envtmpdir}/doctrees {toxinidir} {toxinidir}/_build/linkcheck
[testenv:docs-spellcheck]
commands =
sphinx-build -W -q -b linkcheck -d {envtmpdir}/doctrees {toxinidir} {toxinidir}/_build/linkcheck
[testenv:docs-spellcheck]
deps =
-r{toxinidir}/requirements-docs.txt
-chttps://git.onap.org/doc/plain/etc/upper-constraints.onap.txt?h=master
deps =
-r{toxinidir}/requirements-docs.txt
-chttps://git.onap.org/doc/plain/etc/upper-constraints.onap.txt?h=master
-commands_pre =
- pip install 'Pillow<10'
commands =
sphinx-build -q -b spelling -d {envtmpdir}/doctrees {toxinidir} {toxinidir}/_build/spellcheck
commands =
sphinx-build -q -b spelling -d {envtmpdir}/doctrees {toxinidir} {toxinidir}/_build/spellcheck