Render kindle book from git repository
Ruby
Switch branches/tags
Nothing to show
Latest commit 2e64779 Sep 7, 2014 @avsej Merge pull request #1 from dormi/master
add --failsafe option to source-highlight
Permalink
Failed to load latest commit information.
README.markdown update install guide Aug 3, 2011
git-kindle add --failsafe option to source-highlight Sep 7, 2014

README.markdown

git-kindle

This is the simple tool to generate e-book for Amazon Kindle (in .mobi format) from git repository tree.

INSTALL

This tool depends on kindlegen and source-highlight. You need to download kindlegen binary from Amazon.com site. As for source-highlight you can install it using your package manager, for example in Debian:

apt-get install source-highlight

Next you need to install script itself. Assuming you have $HOME/bin in your PATH:

curl https://raw.github.com/avsej/git-kindle/master/git-kindle > $HOME/bin/git-kindle
chmod a+x $HOME/bin/git-kindle

USAGE

Go to your repository directory (e.g. myproj) and run

git kindle

It will search C files by default and create myproj.mobi file in current directory. You can also specify custom regexp for file filter:

git kindle '\.rb$'