Add PDF builder.
denysdovhan opened this issue · 4 comments
Patrick Mueller (@pmuellr) build awesome pdf verion for bash-handbook:
useful looking Node Packaged Manuscript - "bash-handbook" - as a tablet-friendly PDF: https://t.co/epiRsmRyI8
— Patrick Mueller (@pmuellr) January 28, 2016
We could use markdown-pdf and Travis hooks for building and pushing bash-handbook.pdf
into gh-pages
.
@bucaran, @andrepolischuk what do you think?
Good idea. Maybe also add converting to epub?
@andrepolischuk yep, would be cool.
👍 I think we could learn from Addy Osmani's backbone book how to build to the different formats:
I think this would work well as a .epub file. You'd want to watch for long lines in sample code, but you need to do that for every "static" format, esp PDF.
I actually prefer PDF for ref books genned from HTML, if you can get the color highlighting right, are lucky enough to have the full HTML in a single file, etc. But the only tool I've found acceptable to gen PDF is a web browser, and the preferred browser to do this has changed over the years, due to the way they gen the PDF. Currently, Chrome. Previously, Firefox. Before that, Chrome. etc.
I genned the PDF I put up on Dropbox from AnyViewer, my work-a-day md viewer, which is basically Chrome. Could use some tweaking, but works good enough for me for now, for ad hoc uses like this awesome project. Not out of the question that we could use this technique (basically, use Electron) in some sort of batch mode to gen PDFs.