diff --git a/docs/guides/diagram.html b/docs/guides/diagram.html index 06852f89..6ba94740 100644 --- a/docs/guides/diagram.html +++ b/docs/guides/diagram.html @@ -88,7 +88,7 @@ diag
You can specify the output file format with outformat
parameter. Default is png.
-(png, jpg, svg, and pdf) are allowed.
+(png, jpg, svg, pdf and dot) are allowed.
from diagrams import Diagram
from diagrams.aws.compute import EC2
@@ -96,6 +96,13 @@ diag
with Diagram("Simple Diagram", outformat="jpg"):
EC2("web")
+The outformat
parameter also support list to output all the defined output in one call.
from diagrams import Diagram
+from diagrams.aws.compute import EC2
+
+with Diagram("Simple Diagram Multi Output", outformat=["jpg", "png", "dot"]):
+ EC2("web")
+
You can specify the output filename with filename
parameter. The extension shouldn't be included, it's determined by the outformat
parameter.
from diagrams import Diagram
from diagrams.aws.compute import EC2
@@ -125,4 +132,4 @@ graph_attr = {
with Diagram("Simple Diagram", show=False, graph_attr=graph_attr):
EC2("web")
-