Skip to content

Commit ae10e0f

Browse files
committed
overview
1 parent 92bf054 commit ae10e0f

File tree

2 files changed

+69
-4
lines changed

2 files changed

+69
-4
lines changed

docs/diagrams/overview.d2

+45-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,47 @@
11
input: |d2
2-
hello
2+
hello -> world
33
|
4+
5+
input -> compiler.parse
6+
7+
compiler: {
8+
parse -> AST
9+
AST: Abstract Syntax Tree {
10+
shape: oval
11+
}
12+
13+
AST -> compile
14+
}
15+
16+
compiler.compile -> graph
17+
graph: Graph\n(shapes & connections) {
18+
shape: oval
19+
}
20+
21+
graph -> Set Dimensions
22+
Set Dimensions -> Use ruler to measure all texts -> measured graph
23+
Set Dimensions -> Use given, premeasured dimensions -> measured graph
24+
25+
measured graph: {
26+
shape: oval
27+
}
28+
29+
measured graph -> layout engine -> positioned graph
30+
31+
positioned graph -> exporter -> diagram
32+
33+
diagram: finalized diagram (styled) {
34+
shape: oval
35+
}
36+
37+
diagram -> render SVG
38+
39+
render SVG -> use sketch post processor: optional
40+
41+
use sketch post processor -> SVG bytes
42+
43+
SVG bytes: {
44+
shape: oval
45+
}
46+
47+
SVG bytes -> screenshot for PNG: optional

docs/diagrams/overview.svg

+24-3
Loading

0 commit comments

Comments
 (0)