-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
35 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/bin/bash | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash | ||
|
||
git add . | ||
TXT=$1 | ||
|
||
if [ -z "$TXT" ]; then | ||
echo "Correct syntax is $0 <TEXT>" | ||
exit -1 | ||
fi | ||
|
||
|
||
|
||
|
||
git add . | ||
git commit -m "$TXT" | ||
git config pull.rebase false | ||
git pull | ||
git push | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# 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' | ||
kill -9 $(ps aux | grep '[j]ekyll' | awk '{print $2}') | ||
clear | ||
|
||
echo "Building PDF-friendly HTML site for Mydoc ..."; | ||
bundle exec jekyll serve --detach --config _config.yml,pdfconfigs/config_mydoc_pdf.yml; | ||
echo "done"; | ||
|
||
echo "Building the PDF ..."; | ||
prince --javascript --input-list=_site/pdfconfigs/prince-list.txt -o pdf/mydoc.pdf; | ||
|
||
echo "Done. Look in the pdf directory to see if it printed successfully." |