Skip to content

Commit e4ac722

Browse files
authored
Enable .mobi (Kindle) format again
1 parent dc497f8 commit e4ac722

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

Rakefile

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -84,18 +84,9 @@ namespace :book do
8484

8585
desc 'build Mobi format'
8686
task :build_mobi => 'book/contributors.txt' do
87-
# Commented out the .mobi file creation because the kindlegen dependency is not available.
88-
# For more information on this see: #1496.
89-
# This is a (hopefully) temporary fix until upstream asciidoctor-epub3 is fixed and we can offer .mobi files again.
90-
91-
# puts "Converting to Mobi (kf8)..."
92-
# `bundle exec asciidoctor-epub3 #{params} -a ebook-format=kf8 progit.asc`
93-
# puts " -- Mobi output at progit.mobi"
94-
95-
# FIXME: If asciidoctor-epub3 supports Mobi again, uncomment these lines below
96-
puts "Converting to Mobi isn't supported yet."
97-
puts "For more information see issue #1496 at https://github.com/progit/progit2/issues/1496."
98-
exit(127)
87+
puts "Converting to Mobi (kf8)..."
88+
`bundle exec asciidoctor-epub3 #{params} -a ebook-format=kf8 progit.asc`
89+
puts " -- Mobi output at progit.mobi"
9990
end
10091

10192
desc 'build PDF format'

0 commit comments

Comments
 (0)