diff options
Diffstat (limited to 'compile.sh')
-rw-r--r-- | compile.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/compile.sh b/compile.sh new file mode 100644 index 0000000..3877be0 --- /dev/null +++ b/compile.sh | |||
@@ -0,0 +1,10 @@ | |||
1 | # for windows only right now | ||
2 | |||
3 | for file in *.txt; do # TODO: change this to work with globs & args & stuff | ||
4 | pandoc -f markdown \ # all files are in pandoc's markdown | ||
5 | -t html5 \ # they're being outputted to html5 | ||
6 | --template=_template.html \ # use this file as a template | ||
7 | --smart \ # smart quotes, etc. | ||
8 | $file \ | ||
9 | -o "${file%.txt}.html" | ||
10 | done | ||