我可以使用 Jekyll 将 GitHub 个页面转换为 pdf 吗?

Can I convert GitHub pages with Jekyll to pdf?

我有一个 GitHub 页面,其中包含我的 vitae. Github renders the Jekyll page to HTML produces the website https://emanuelfontelles.github.io/cv/

如何使用 pandoc 甚至 Jekyll 将此网页转换为 pdf?

参见http://pandoc.org/MANUAL.html#creating-a-pdf,例如:

pandoc https://emanuelfontelles.github.io/cv/ -f html-native_divs -o cv.pdf --pdf-engine=xelatex

-native_divs 是禁用 div 解析所必需的。因为 pandoc 寻找 columns class,它有时用于 beamer 幻灯片...

或者如果你不喜欢 LaTeX:

wkhtmltopdf https://emanuelfontelles.github.io/cv/ cv.pdf

或者如果您想使用不同的样式表:

pandoc -o cv.pdf --pdf-engine=wkhtmltopdf --css myprintstyles.css https://emanuelfontelles.github.io/cv/