Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 22 lines (17 sloc) 0.431 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
#!/bin/bash

pushd workbook

echo Cleaning up old PDFs
rm pdfs/*.pdf
echo Cleaning up old HTMLs
rm htmls/*.html

pushd markdown
echo Markdown to PDF conversion...
find . -name "*.md" -exec markdown2pdf {} \;
echo Markdown to HTML conversion...
find . -name "*.md" -exec markdown-here.sh {} \;

echo Relocating PDFs to output directory...
mv *.pdf ../pdfs/
echo Relocating HTMLs to output directory...
mv *.html ../htmls/
popd

popd
Something went wrong with that request. Please try again.