diff options
Diffstat (limited to 'default.html.do')
-rw-r--r-- | default.html.do | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/default.html.do b/default.html.do new file mode 100644 index 0000000..d2b1ed2 --- /dev/null +++ b/default.html.do | |||
@@ -0,0 +1,13 @@ | |||
1 | redo-ifchange $2.md build/tex-filter.hs build/template.html5 | ||
2 | |||
3 | CSS=/style.css | ||
4 | |||
5 | pandoc -t json $2.md | build/tex-filter.hs "$(pwd)" 2>&1 >/dev/null \ | ||
6 | | while read -r x; do | ||
7 | echo $x/image.svg | ||
8 | done \ | ||
9 | | xargs -d '\n' redo-ifchange | ||
10 | |||
11 | pandoc -f markdown -t json $2.md \ | ||
12 | | build/tex-filter.hs "$(pwd)" 2>/dev/null \ | ||
13 | | pandoc --template=build/template.html5 --base-header-level=3 --standalone -S -f json -t html5 -c $CSS >$3 2>/dev/null | ||