1direction: right
2
3vars: {
4 d2-config: {
5 layout-engine: elk
6 }
7}
8
9push: Git Push {
10 style.fill: "#e3f2fd"
11 style.stroke: "#1565c0"
12 style.border-radius: 8
13 style.font-color: "#1565c0"
14}
15
16detect: Type Detection {
17 style.fill: "#fff3e0"
18 style.stroke: "#e65100"
19 style.border-radius: 8
20}
21
22render: Render {
23 style.fill: "#e8f5e9"
24 style.stroke: "#2e7d32"
25 style.border-radius: 8
26
27 markdown: Markdown -> HTML
28 mermaid: Mermaid -> SVG
29 d2: D2 -> SVG
30 typst: Typst -> PDF
31 image: Image -> Variants
32}
33
34store: Store in CAS {
35 style.fill: "#f3e5f5"
36 style.stroke: "#6a1b9a"
37 style.border-radius: 8
38 shape: cylinder
39}
40
41serve: Serve on Web {
42 style.fill: "#fce4ec"
43 style.stroke: "#c62828"
44 style.border-radius: 8
45}
46
47push -> detect: post-push effects
48detect -> render: by item type
49render -> store: BLAKE3 hash
50store -> serve: CDN + Cache API