Skip to content
This repository
Browse code

Adding EPUB and MOBI support (requires calibres)

  • Loading branch information...
commit 92fe3d41d832ab471083338f55505789efef3f9d 1 parent fae786f
Russell Branca chewbranca authored
6 Makefile
@@ -36,6 +36,12 @@ book.html: pages/head.html pages/tail.html $(HTML)
36 36 | sed -E 's/<h1>([^ ]+) - /<h1>/' \
37 37 > $@
38 38
  39 +book.mobi:
  40 + ebook-convert book.html book.mobi --output-profile kindle
  41 +
  42 +book.epub:
  43 + ebook-convert book.html book.epub
  44 +
39 45 view: book.pdf
40 46 open book.pdf
41 47
14 Readme.md
Source Rendered
@@ -25,6 +25,20 @@ Required by `make book.html`:
25 25 $ gem install ronn
26 26 $ make book.html
27 27
  28 +## EPUB
  29 +
  30 +Required by `make book.epub`:
  31 +Requires (Calibre)[http://calibre-ebook.com/]
  32 +
  33 + $ make book.epub
  34 +
  35 +## MOBI
  36 +
  37 +Required by `make book.mobi`:
  38 +Requires (Calibre)[http://calibre-ebook.com/]
  39 +
  40 + $ make book.mobi
  41 +
28 42 ## References
29 43
30 44 Contents of this eBook currently reference the following software versions:
BIN  book.epub
Binary file not shown
BIN  book.mobi
Binary file not shown
BIN  book_as_of_6d4b37c3960f2739467ebee4f07467012756b9df.mobi
Binary file not shown

0 comments on commit 92fe3d4

Please sign in to comment.
Something went wrong with that request. Please try again.