Render kindle book from git repository
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
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



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


This tool depends on kindlegen and source-highlight. You need to download kindlegen binary from 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 > $HOME/bin/git-kindle
chmod a+x $HOME/bin/git-kindle


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

git kindle

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

git kindle '\.rb$'