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