# This file converts all md files to html

echo "Stating the conversion"
pandoc -s -t html -c styles.css index.md -o index.html
pandoc -s -t html 3dPrinting-scanning.md -o 3dPrinting-scanning.html
pandoc -s -t html Linux.md -o Linux.html
pandoc -s -t html electronics-production.md -o electronics-production.html
pandoc -s -t html introduction.md -o introduction.html
pandoc -s -t html laserCutter.md -o laserCutter.html
pandoc -s -t html shopbot.md -o shopbot.html
pandoc -s -t html vinyl.md -o vinyl.html
pandoc -s -t html principles.md -o principles.html
pandoc -s -t html finalProject.md -o finalProject.html
echo "All files converteds to html"
echo "Pull"

if [ "$#" -gt 0 ]
then
cd ..
cd ..
git pull
git add --all
git commit -m "$*"
git pull && git push
else
  echo "Empty commit message"
fi