summaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'build.sh')
-rw-r--r--build.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/build.sh b/build.sh
new file mode 100644
index 0000000..7172758
--- /dev/null
+++ b/build.sh
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+shopt -s globstar
+
+cp -r static/* out
+
+for i in **/*.md; do
+ mkdir -p "out/$(dirname $i)"
+ pandoc -s --katex -s -c style.css -B template/header.html \
+ -A template/footer.html "$i" -o "out/${i%.*}.html"
+done