#! /bin/bash 
###########################################
# Build API Docs from Markdown File with pandoc
# http://pandoc.org/getting-started.html
# HTML Theme https://gist.github.com/dashed/6714393
###########################################

# constants
baseDir=$(cd `dirname "$0"`;pwd)
# functions
# main 
[ -z "${BASH_SOURCE[0]}" -o "${BASH_SOURCE[0]}" = "$0" ] || return
cd $baseDir/..
echo "Make API Doc  ..." 
pandoc -f markdown -t html5 README.API.md -s -o public/index.html -c ./github-pandoc.css
echo "Done."
