summaryrefslogtreecommitdiff
path: root/default.html.do
diff options
context:
space:
mode:
Diffstat (limited to 'default.html.do')
-rw-r--r--default.html.do13
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 @@
1redo-ifchange $2.md build/tex-filter.hs build/template.html5
2
3CSS=/style.css
4
5pandoc -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
11pandoc -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