Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add PDF builder. #17

Open
denysdovhan opened this issue Jan 29, 2016 · 4 comments
Open

Add PDF builder. #17

denysdovhan opened this issue Jan 29, 2016 · 4 comments

Comments

@denysdovhan
Copy link
Owner

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?

@andrepolischuk
Copy link
Contributor

Good idea. Maybe also add converting to epub?

@denysdovhan
Copy link
Owner Author

@andrepolischuk yep, would be cool.

@ghost
Copy link

ghost commented Jan 29, 2016

👍 I think we could learn from Addy Osmani's backbone book how to build to the different formats:

https://github.com/addyosmani/backbone-fundamentals

@pmuellr
Copy link
Contributor

pmuellr commented Jan 29, 2016

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants