Skip to content

Commit

Permalink
Update book generation files (#33)
Browse files Browse the repository at this point in the history
* Update book generation files

I was having trouble generating the book locally, but I made it work
by updating Gemfile and Rakefile files, so they match the versions on
the original book repository.

* Update Rakefile to match publication tool chain
  • Loading branch information
carlosschults authored Jul 8, 2020
1 parent 3e7e3f7 commit 6135f3f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
13 changes: 4 additions & 9 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,21 +1,16 @@
source 'https://rubygems.org'

gem 'rake'
gem 'asciidoctor', '1.5.6.1'
gem 'asciidoctor', '1.5.6.2'

gem 'json'
gem 'awesome_print'

gem 'asciidoctor-epub3', :git => 'https://github.com/asciidoctor/asciidoctor-epub3'
gem 'asciidoctor-pdf', '1.5.0.alpha.16'
gem 'asciidoctor-pdf-cjk', '~> 0.1.3'
gem 'asciidoctor-pdf-cjk-kai_gen_gothic', '~> 0.1.1'
gem 'asciidoctor-epub3', '~> 1.5.0.alpha.9'
gem 'asciidoctor-pdf', '~> 1.5.0.beta.8'

gem 'coderay'
gem 'pygments.rb'
gem 'thread_safe'
gem 'epubcheck-ruby'
gem 'epubcheck'
gem 'kindlegen'

gem 'octokit'
gem 'github_changelog_generator', github: 'Furtif/github-changelog-generator'
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ namespace :book do
File.open("#{progit_v}.asc", "w") {|file| file.puts new_contents }

puts "Converting to HTML..."
exec_or_raise("bundle exec asciidoctor #{progit_v}.asc")
exec_or_raise("bundle exec asciidoctor -a data-uri #{progit_v}.asc")
puts " -- HTML output at #{progit_v}.html"

puts "Converting to EPub..."
Expand Down

0 comments on commit 6135f3f

Please sign in to comment.