#!/usr/bin/env bash

set -e
set -u

mdfiles=(*\.md)
for mdfile in ${mdfiles[*]};
do
	mdfile="$(basename -- "${mdfile}")"
	mdbase="${mdfile%.*}"
	echo "processing ${mdfile} ..."
	pandoc -V --highlight-style=zenburn -i "${mdfile}" -s -o "${mdbase}.html"

done

git add .
git commit -m "autobuild commit"
git push

# -H index.css 
