From 7bfdad3a3fda9594e4a1b8db1aa6d4c031bd3176 Mon Sep 17 00:00:00 2001 From: mingrammer Date: Fri, 14 Feb 2020 00:29:39 +0900 Subject: [PATCH] Deploy website Deploy website version based on 97671e6ccc41305408f46ae90e46d0d3c83c561a --- docs/diagram.html | 17 ++++++++++++++++- docs/diagram/index.html | 17 ++++++++++++++++- 2 files changed, 32 insertions(+), 2 deletions(-) diff --git a/docs/diagram.html b/docs/diagram.html index a50aef58..0845afea 100644 --- a/docs/diagram.html +++ b/docs/diagram.html @@ -86,4 +86,19 @@ with Diagram("Simple Diagram", show=False): EC2("web") -
Last updated on 2020-2-3
ExamplesNodes
\ No newline at end of file +

If you are familiar with Graphviz, you can customize the diagrams with Graphviz attribute config options.

+
+

graph_attr, node_attr and edge_attr are allowed. Here is a reference link.

+
+
from diagrams import Diagram
+from diagrams.aws.compute import EC2
+
+graph_attr = {
+    "fontsize": 45,
+  "bgcolor": "transparent"
+}
+
+with Diagram("Simple Diagram", show=False, graph_attr=graph_attr):
+    EC2("web")
+
+
Last updated on 2020-2-14
ExamplesNodes
\ No newline at end of file diff --git a/docs/diagram/index.html b/docs/diagram/index.html index a50aef58..0845afea 100644 --- a/docs/diagram/index.html +++ b/docs/diagram/index.html @@ -86,4 +86,19 @@ with Diagram("Simple Diagram", show=False): EC2("web") -
Last updated on 2020-2-3
ExamplesNodes
\ No newline at end of file +

If you are familiar with Graphviz, you can customize the diagrams with Graphviz attribute config options.

+
+

graph_attr, node_attr and edge_attr are allowed. Here is a reference link.

+
+
from diagrams import Diagram
+from diagrams.aws.compute import EC2
+
+graph_attr = {
+    "fontsize": 45,
+  "bgcolor": "transparent"
+}
+
+with Diagram("Simple Diagram", show=False, graph_attr=graph_attr):
+    EC2("web")
+
+
Last updated on 2020-2-14
ExamplesNodes
\ No newline at end of file