From f7d4ba2023ab18b9d7c5fad85cbb863c61e6272c Mon Sep 17 00:00:00 2001 From: Viktor Kleen Date: Fri, 2 Jan 2015 09:29:04 +0000 Subject: initial commit --- default.html.do | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 default.html.do (limited to 'default.html.do') 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 @@ +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 -- cgit v1.2.3