summaryrefslogtreecommitdiff
path: root/default.html.do
diff options
context:
space:
mode:
Diffstat (limited to 'default.html.do')
-rw-r--r--default.html.do10
1 files changed, 8 insertions, 2 deletions
diff --git a/default.html.do b/default.html.do
index c880f0b..b7e46ae 100644
--- a/default.html.do
+++ b/default.html.do
@@ -1,13 +1,19 @@
1redo-ifchange $2.md build/tex-filter.hs build/template.html5 1redo-ifchange $2.md build/tex-filter.hs build/template.html5
2 2
3texfilter() {
4 runhaskell -package-conf=$(find .cabal-sandbox -maxdepth 1 -iname '*.conf.d' | head -n 1) build/tex-filter.hs $@
5}
6
3CSS=/style.css 7CSS=/style.css
4 8
5pandoc -t json $2.md | build/tex-filter.hs "$(pwd)" 2>&1 >/dev/null \ 9pandoc -t json $2.md | texfilter "$(pwd)" \
6 | while read -r x; do 10 | while read -r x; do
11 [[ -z "${x}" ]] && continue
7 echo $x/image.svg 12 echo $x/image.svg
13 echo $x/image.svg >&2
8 done \ 14 done \
9 | xargs -d '\n' redo-ifchange 15 | xargs -d '\n' redo-ifchange
10 16
11pandoc -S -f markdown -t json $2.md \ 17pandoc -S -f markdown -t json $2.md \
12 | build/tex-filter.hs "$(pwd)" 2>/dev/null \ 18 | texfilter "$(pwd)" \
13 | pandoc --template=build/template.html5 --base-header-level=3 --standalone --email-obfuscation=none -f json -t html5 -c $CSS >$3 2>/dev/null 19 | pandoc --template=build/template.html5 --base-header-level=3 --standalone --email-obfuscation=none -f json -t html5 -c $CSS >$3 2>/dev/null