Skip to content

Commit

Permalink
Upgrade Re:VIEW to 1.5.0
Browse files Browse the repository at this point in the history
  * review-pdfmaker removes a PDF file if already exists.
  * update default value of "toc" as nil.

See: https://github.com/kmuto/review/blob/master/ChangeLog
  • Loading branch information
Masafumi Yokoyama committed Feb 28, 2015
1 parent 881616c commit bffe29c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Expand Up @@ -2,7 +2,7 @@ GEM
remote: https://rubygems.org/
specs:
rake (10.4.2)
review (1.4.0)
review (1.5.0)

PLATFORMS
ruby
Expand Down
6 changes: 0 additions & 6 deletions Rakefile
Expand Up @@ -13,10 +13,6 @@ def configurations
@configurations ||= YAML.load(File.read(config_path))
end

def bookname
configurations["bookname"]
end

namespace :generate do
desc "generate HTML"
task :html do |re_path|
Expand All @@ -25,8 +21,6 @@ namespace :generate do

desc "generate PDF"
task :pdf do
pdf_path = "#{bookname}.pdf"
FileUtils.rm(pdf_path) if File.exist?(pdf_path)
system("review-pdfmaker", config_path)
end

Expand Down
3 changes: 3 additions & 0 deletions config.yml
Expand Up @@ -70,6 +70,9 @@ stylesheet: ["stylesheet.css"]
# HTMLのバージョン (4か5。epubversionを3にしたときには5にする)
# htmlversion: 4

# 目次を作成する。Re:VIEW 1.5.0からデフォルトでは作成されなくなった。
toc: true

# 目次として抽出する見出しレベル
toclevel: 3

Expand Down

0 comments on commit bffe29c

Please sign in to comment.