diff --git a/.gitignore b/.gitignore index 96f8342..85e8d01 100644 --- a/.gitignore +++ b/.gitignore @@ -1,10 +1,10 @@ +*~ *.xref *.lg *.idv *.4ct *.4tc *.tmp -*.sh ## Core latex/pdflatex auxiliary files: *.aux diff --git a/build-html.sh b/build-html.sh new file mode 100755 index 0000000..eabbfce --- /dev/null +++ b/build-html.sh @@ -0,0 +1,6 @@ +#!/usr/bin/env bash + +# Script to build an HTML site from the PDF source +docker run -d -P --name pdf2htmlex -v /pdf sothr/pdf2htmlex pdf2htmlex --embed cfijo --dest-dir out DPSResume.pdf + +tar -czvf ResumeSite.tar.gz out/* diff --git a/build-pdf.sh b/build-pdf.sh new file mode 100755 index 0000000..54e655b --- /dev/null +++ b/build-pdf.sh @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +# Script to build a PDF from the latex source +docker run -d -P --name latex -v /latex narf/latex latex --output-format pdf DPSResume.tex diff --git a/package-and-deploy.sh b/package-and-deploy.sh new file mode 100755 index 0000000..97717a8 --- /dev/null +++ b/package-and-deploy.sh @@ -0,0 +1,15 @@ +#!/usr/bin/env bash + +# Script to package the PDF and the html. +# Store them. +# flush the current directory +# checkout the gh-pages branch +# extract the updated site over the current +# add the changes +# commit the changes +# push the changes to github + +cp DPSResume.pdf .. +cp ResumeSite.tar.gz .. + +git checkout .