Skip to content

Commit 81dc391

Browse files
committed
chg: user: update diagram source, allow .png files in git repo
* update figure scaling and .gitignore file Signed-off-by: Stephen L Arnold <[email protected]>
1 parent b9d07b9 commit 81dc391

File tree

4 files changed

+23
-4
lines changed

4 files changed

+23
-4
lines changed

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ __pycache__/
44
*$py.class
55

66
# generated/user files and directories
7-
advanced_acme_web_service.*
87
ext/
98
*.pdf
109

resources/acme_webservice.py

+22-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,28 @@
1414
from diagrams.onprem.network import Nginx
1515
from diagrams.onprem.queue import Kafka
1616

17-
with Diagram(name="Advanced ACME Web Service", show=False):
17+
# can use graphviz dot attributes:
18+
# graph_attr, node_attr and edge_attr are supported
19+
20+
node_attr = {
21+
"fontsize": "14",
22+
}
23+
24+
graph_attr = {
25+
"fontsize": "24",
26+
"labelloc": "t",
27+
"bgcolor": "transparent",
28+
}
29+
30+
edge_attr = {"penwidth": "5", "bgcolor": "transparent"}
31+
32+
with Diagram(
33+
"Advanced ACME Web Service",
34+
show=False,
35+
graph_attr=graph_attr,
36+
edge_attr=edge_attr,
37+
node_attr=node_attr,
38+
):
1839
ingress = Nginx("ingress")
1940

2041
metrics = Prometheus("metric")

sum/EU_SUM.rst

+1-2
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,7 @@ User Manual and Troubleshooting Guide for the Management Console only. The ACME
116116
Web Service high-level system components are shown in Figure 1 below:
117117

118118
.. figure:: images/advanced_acme_web_service.png
119-
:scale: 120 %
120-
:align: left
119+
:width: 90%
121120

122121
Figure 1. Advanced ACME Web Service Components
123122

168 KB
Loading

0 commit comments

Comments
 (0)