summaryrefslogtreecommitdiff
path: root/default.html.do
blob: d2b1ed2c587552a19098e9958f654739aa6dfdf0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
redo-ifchange $2.md build/tex-filter.hs build/template.html5

CSS=/style.css

pandoc -t json $2.md | build/tex-filter.hs "$(pwd)" 2>&1 >/dev/null \
    | while read -r x; do
          echo $x/image.svg
      done \
    | xargs -d '\n' redo-ifchange

pandoc -f markdown -t json $2.md \
        | build/tex-filter.hs "$(pwd)" 2>/dev/null \
        | pandoc --template=build/template.html5 --base-header-level=3 --standalone -S -f json -t html5 -c $CSS >$3 2>/dev/null