Made a Github Page repo in order to use one single data.yaml file to generate a printer-friendly resume in PDF as well as a personal website at the same time.
- Set up Jekyll from here
- MacOS:
- Ruby has to be 3.1.X:
brew install [email protected]
echo 'export PATH="/usr/local/opt/[email protected]/bin:$PATH"' >> ~/.zshrc
- Get gem executable directory by
gem env
echo 'export PATH="/usr/local/lib/ruby/gems/3.1.0/bin:$PATH"' >> ~/.zshrc
- Ruby has to be 3.1.X:
- Ruby 3.0.0 :
bundle add webrick
bundle clean --force
- MacOS:
- Set up Prince from here
- Follow the project root directory
Makefile
Github Action will be triggered by new tag, and the workflow will take the ~/resume/drewyang_dev_resume.pdf
as a release.
git tag vX.X.X
git push --tags
Referenced from: HERE
- Prince xml:
- Since this use case is just exporting one pdf. Generally speaking, this works very well, but just can't work with bootstrap and fontawesome in PDF. Another down side is Prince xml free license will add a
P
logo at the file's top right corner, which is fine to me in this case. - Referenced from: Jekyll Documentation Theme - Doc | Jekyll Documentation Theme - Github
- Since this use case is just exporting one pdf. Generally speaking, this works very well, but just can't work with bootstrap and fontawesome in PDF. Another down side is Prince xml free license will add a
- Pandoc:
- LaTeX Error:
pandoc -s http://127.0.0.1:4000/printer-friendly.html --pdf-engine pdflatex --toc --include-in-header=./_includes/latex_header.tex -V geometry:margin=1in -o pandoc_html_sample_layout.pdf
- Predefined-default layout:
pandoc -s http://127.0.0.1:4000/printer-friendly.html --pdf-engine pdflatex --toc -V geometry:margin=1in -o pandoc_html_sample_layout.pdf
- Referenced from: HERE
- LaTeX Error: