Sha256: c164c65b663f3fac1a918646edbbd952c3631ba3ab0a41a5c7e5ba670eb91d24

Contents?: true

Size: 773 Bytes

Versions: 3

Compression:

Stored size: 773 Bytes

Contents

require "bundler/gem_tasks"
require "rspec/core/rake_task"

RSpec::Core::RakeTask.new(:spec)

desc 'Create Sample PDF'
task :pdf do
  cmd = %W[
    asciidoctor-pdf
    -r asciidoctor-pdf-cjk-kai_gen_gothic
    -r asciidoctor/nabetani/prawn-linewrap-ja
    -r asciidoctor/nabetani/abstractblock-xreftext
    -r asciidoctor/nabetani/pdf-custom-property
    -r asciidoctor/nabetani/horz-dlist
    -r asciidoctor/nabetani/pdf-outline
    sample/src/index.adoc
    -o sample/book.pdf
  ]
  sh cmd.join(' ')
end

desc 'Create Sample PDF Without This Library'
task :pdf_org do
  cmd = %W[
    asciidoctor-pdf
    -r asciidoctor-pdf-cjk-kai_gen_gothic
    sample/src/index.adoc
    -o sample/book_org.pdf
  ]
  sh cmd.join(' ')
end

task default: :spec
task pdfs: [:pdf, :pdf_org]

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
asciidoctor-nabetani-0.1.2 Rakefile
asciidoctor-nabetani-0.1.1 Rakefile
asciidoctor-nabetani-0.1.0 Rakefile