vjeantet / hugo-theme-docdock

Declination of @matcornic Learn theme to Hugo

Home Page:https://docdock.netlify.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PDF printable?

TomCools opened this issue · comments

Whould it be possible to add styling so this Hugo template also generates decent looking documentation in PDF form? Not all of our users will be able to be online all the time.

Kind regards,
Tom

Nothing built-in, this is how I generate:

wkhtmltopdf \
  --margin-top 0.5in \
  --margin-bottom 0.5in \
  --margin-left 0.5in \
  --margin-right 0.5in \
  --page-size Letter \
  --no-background \
  --print-media-type \
  --footer-left "My Doc" \
  --footer-right "[page]/[toPage]" \
  http://localhost:1313/ \
  /tmp/my.pdf"

Some image / text may split across page but much better look/feel compare to pandoc in my opinion.

commented

I think implementing a ‘Export page as PDF’ button to export page as you see on most gitbook pages would be great. I believe it should be possible to implement it using something like paged.js