forked from precice/precice.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpdf-docs.sh
More file actions
18 lines (13 loc) · 687 Bytes
/
pdf-docs.sh
File metadata and controls
18 lines (13 loc) · 687 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh
# Note that .sh scripts work only on Mac. If you're on Windows, install Git Bash and use that as your client.
echo 'Kill all Jekyll instances'
killall -9 jekyll
clear
echo "Building PDF-friendly HTML site for Mydoc ...";
bundle exec jekyll serve --detach --config _config.yml,pdfconfigs/config_docs_pdf.yml;
echo "done";
echo "Building the PDF ...";
prince --javascript --input-list=_site/pdfconfigs/prince-list.txt -o pdf/docs.pdf;
echo "Done. Look in the pdf directory to see if it printed successfully."
# bundle exec jekyll serve --config "_config.yml,pdfconfigs/config_docs_pdf.yml"
# prince --javascript --input-list=_site/pdfconfigs/prince-list.txt -o pdf/docs.pdf