Skip to content

Instantly share code, notes, and snippets.

@tlockney
Last active January 8, 2017 12:26
Show Gist options
  • Save tlockney/4589410 to your computer and use it in GitHub Desktop.
Save tlockney/4589410 to your computer and use it in GitHub Desktop.
Akka docs on your Kindle!
# This only works with the current master branch of Akka
# Setup the necessary deps
brew install python
# adjust this depending on the latest version of Python that brew installed
export PATH=`brew --prefix python`/bin:/usr/local/share/python:$PATH
pip install sphinx
# Also, you need to have Calibre installed. Yes, the UI is incredibly bad, but the ebook-convert
# utility is reason enough to have it installed. Find it here: http://calibre-ebook.com/
git clone https://github.com/akka/akka.git
cd akka
sbt sphinx:generate-epub
/Applications/calibre.app/Contents/MacOS/ebook-convert target/sphinx/epub/Akka.epub Akka.mobi
# Now just email that mobi file to your kindle email address or copy it over via USB.
@kanterov
Copy link

To get generate-epub working I had to

LC_ALL=en_US.UTF-8
LANG=en_US.UTF-8

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