Just give a repo and watch it turn all the github web views into nice juicy files ready for printing!
Send your greatest work off to a publisher, get it bound in fancy leather, and peruse your source code whenever you want to pull the book off your mahogany shelf.
Each file 'printed' off github will look like this:
- Install phantomjs:
brew install phantomjs
- Clone the project:
git clone [email protected]:JustinAiken/github2pdf.git
- Go to the project directory:
cd github2pdf
- Run:
phantomjs github2pdf.coffee rails activerecord
- ???
- Profit!
Despite being called github2pdf, it's actually github2png, since PhantomJS has an outstanding issue where clipRect is ignored with PDF's. So for now, we're write to .png instead.
Original author: Justin Aiken
- Fork the project.
- Make your feature addition or bug fix.
- Commit, do not mess with rakefile, version, or history.
- If you want to have your own version, that is fine but bump version in a commit by itself so I can ignore when I pull
- Send me a pull request. Bonus points for topic branches.
Copyright (c) 2013 Justin Aiken MIT license (see LICENSE for details).