-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpipeline.dot
52 lines (39 loc) · 1.17 KB
/
pipeline.dot
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
digraph {
// Tools
mkrs [shape=diamond]
kapow [shape=diamond]
stylin [shape=diamond]
// External tools
pandoc1 [shape=diamond label="pandoc"]
pandoc2 [shape=diamond label="pandoc"]
// mkrs targets
build [shape=box label="build"]
// Inputs
input_md [shape=box label="input.md"]
reference_docx [shape=box label="reference.docx"]
stylin_json [shape=box label="stylin.json"]
// Outputs
kapow_md [shape=box label="kapow.md"]
stylin_md [shape=box label="stylin.md"]
pandoc_docx [shape=oval label="pandoc.docx"]
start [shape=oval]
end [shape=oval]
{rank=same;stylin_json;input_md}
{rank=same;stylin;pandoc1}
{rank=same;reference_docx;stylin_md}
//------------------------------------------------------------------------------
start -> mkrs -> build;
// Create reference.docx via pandoc
build -> pandoc1 -> reference_docx
// Create pandoc.docx from input.md, stylin.json, and reference.docx via kapow,
// stylin, and pandoc, with intermediate outputs kapow.md and stylin.md:
build -> input_md;
input_md -> kapow -> kapow_md;
build -> stylin_json -> stylin;
kapow_md -> stylin -> stylin_md
stylin_md -> pandoc2;
reference_docx -> pandoc2;
pandoc2 -> pandoc_docx;
// Outputs
pandoc_docx -> end;
}