Code Monkey home page Code Monkey logo

github2pdf's Introduction

Github2PDF

Turn your github repos into PDF's!

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.

What it looks like:

Each file 'printed' off github will look like this:

Screenshot

Usage:

  1. Install phantomjs: brew install phantomjs
  2. Clone the project: git clone [email protected]:JustinAiken/github2pdf.git
  3. Go to the project directory: cd github2pdf
  4. Run: phantomjs github2pdf.coffee rails activerecord
  5. ???
  6. Profit!

But it does have one small problem:

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.

Credits

Original author: Justin Aiken

Links

Note on Patches/Pull Requests

  • 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

Copyright (c) 2013 Justin Aiken MIT license (see LICENSE for details).

github2pdf's People

Contributors

justinaiken avatar

Stargazers

Bryan Nelson avatar

Watchers

James Cloos avatar  avatar

github2pdf's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.