summaryrefslogtreecommitdiff
path: root/default.html.do
diff options
context:
space:
mode:
authorViktor Kleen <viktor@kleen.org>2015-01-02 09:29:04 +0000
committerViktor Kleen <viktor@kleen.org>2015-01-02 09:29:04 +0000
commitf7d4ba2023ab18b9d7c5fad85cbb863c61e6272c (patch)
tree7ffe93f3629546f8a0cb4ca7c7c7ce70196e4387 /default.html.do
downloaddirty-haskell.org-f7d4ba2023ab18b9d7c5fad85cbb863c61e6272c.tar
dirty-haskell.org-f7d4ba2023ab18b9d7c5fad85cbb863c61e6272c.tar.gz
dirty-haskell.org-f7d4ba2023ab18b9d7c5fad85cbb863c61e6272c.tar.bz2
dirty-haskell.org-f7d4ba2023ab18b9d7c5fad85cbb863c61e6272c.tar.xz
dirty-haskell.org-f7d4ba2023ab18b9d7c5fad85cbb863c61e6272c.zip
initial commit
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