2016-09-07 16:10:48 -04:00
|
|
|
# Note that .sh scripts work only on Mac. If you're on Windows, install Git Bash and use that as your client.
|
|
|
|
|
|
|
|
echo 'Killing all Jekyll instances'
|
|
|
|
kill -9 $(ps aux | grep '[j]ekyll' | awk '{print $2}')
|
|
|
|
clear
|
|
|
|
|
|
|
|
echo "Building PDF-friendly HTML site for Mydoc ...";
|
2017-05-25 10:22:39 +02:00
|
|
|
bundle exec jekyll serve --detach --config _config.yml,pdfconfigs/config_mydoc_pdf.yml;
|
2016-09-07 16:10:48 -04:00
|
|
|
echo "done";
|
|
|
|
|
|
|
|
echo "Building the PDF ...";
|
|
|
|
prince --javascript --input-list=_site/pdfconfigs/prince-list.txt -o pdf/mydoc.pdf;
|
|
|
|
echo "done";
|
|
|
|
|