about summary refs log tree commit diff stats
path: root/compile.sh
blob: 228af38caa7bdfaa218ddce15f38ae83247b8bf8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# for windows only right now

for file in src/*.txt; do # TODO: change this to work with globs & args & stuff
    echo -n "Compiling $file ..."
    pandoc -f markdown \
           -t html5 \
           --template=_template.html \
           --smart \
           $file \
           -o "${file%.txt}.html"
    echo " Done."
done

echo "Moving files to build directory ..."
mv src/*.html ./