From 55be65fffbb49ea6b95213945ab7e63bac626c18 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Thu, 26 Sep 2019 12:25:31 +0300 Subject: Add: arch diagram --- Makefile | 5 ++++- arch.dot | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 40 insertions(+), 1 deletion(-) create mode 100644 arch.dot diff --git a/Makefile b/Makefile index 9732347..84bc9c9 100644 --- a/Makefile +++ b/Makefile @@ -1,2 +1,5 @@ -talk.pdf: talk.md +talk.pdf: talk.md arch.svg pandoc -t beamer -o talk.pdf talk.md + +arch.svg: arch.dot + dot -Tsvg -o arch.svg arch.dot diff --git a/arch.dot b/arch.dot new file mode 100644 index 0000000..eb82f9c --- /dev/null +++ b/arch.dot @@ -0,0 +1,36 @@ +digraph "" { + md [label="document source\n(Markdown)"]; + md [shape=box]; + + bindings [label="bindings file\n(YAML)"]; + bindings [shape=box]; + + impl [label="step implementations\n(Python, Rust, ...)"] + impl [shape=box]; + + docgen [label="Doc generator"]; + docgen [shape=ellipse]; + + codegen [label="Code generator"]; + codegen [shape=ellipse]; + + pdf [label="PDF document"] + pdf [shape=diamond]; + + testprog [label="Test program\n(generated)"] + testprog [shape=box]; + + report [label="Test report"] + report [shape=diamond]; + + md -> docgen; + bindings -> docgen; + docgen -> pdf; + + md -> codegen; + bindings -> codegen; + impl -> codegen; + codegen -> testprog; + + testprog -> report; +} -- cgit v1.2.1