pdf-mydoc.sh 550 B

1234567891011121314
  1. # Note that .sh scripts work only on Mac. If you're on Windows, install Git Bash and use that as your client.
  2. echo 'Kill all Jekyll instances'
  3. kill -9 $(ps aux | grep '[j]ekyll' | awk '{print $2}')
  4. clear
  5. echo "Building PDF-friendly HTML site for Mydoc ...";
  6. bundle exec jekyll serve --detach --config _config.yml,pdfconfigs/config_mydoc_pdf.yml;
  7. echo "done";
  8. echo "Building the PDF ...";
  9. prince --javascript --input-list=_site/pdfconfigs/prince-list.txt -o pdf/mydoc.pdf;
  10. echo "Done. Look in the pdf directory to see if it printed successfully."