vsoch / docsy-jekyll

A Jekyll version of the beautiful Docsy!
https://vsoch.github.io/docsy-jekyll/
Apache License 2.0
199 stars 142 forks source link

export page to PDF #74

Open konradzimek1 opened 2 years ago

konradzimek1 commented 2 years ago

How can I add export to PDF function tho the docsy theme ? I want to add visible button to every page/post so it can print it to the PDF automaticly. Is there some .js function or HTML ?

vsoch commented 2 years ago

There are a few JavaScript libraries that can do this for you - I would google search for "convert page to pdf javascript" and then you could add a right sidebar button to do it. You could do that by page, or as an alternative, have a rendering that generates all pages across content (and then has that button as well).