Skip to content

Commit 97f50ba

Browse files
committed
First version of PDF generator
1 parent 4efb8f1 commit 97f50ba

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

pdf-vegalite.sh

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

0 commit comments

Comments
 (0)