Sha256: 8974d0c1655c865b3668737d945d3504ce54c583ca3ff635b3ab8a83e10d2e81

Contents?: true

Size: 1.09 KB

Versions: 1

Compression:

Stored size: 1.09 KB

Contents

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

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

desc 'Create Sample PDF'
task :pdf_funcs do
  cmd = %W[
    asciidoctor-pdf
    -r asciidoctor/nabetani
    sample/funcs/index.adoc
    -o sample/funcs.pdf
  ]
  sh cmd.join(' ')
end

desc 'Create Small Page PDF'
task :pdf_small do
  cmd = %W[
    asciidoctor-pdf
    -r asciidoctor/nabetani
    sample/small/index.adoc
    -o sample/small.pdf
  ]
  sh cmd.join(' ')
end

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

desc 'Create Small Page PDF Without This Library'
task :pdf_small_org do
  cmd = %W[
    asciidoctor-pdf
    -r asciidoctor-pdf-cjk-kai_gen_gothic
    -r asciidoctor/pdf/cjk/kai_gen_gothic/theme_loader
    sample/small/index.adoc
    -o sample/small_org.pdf
  ]
  sh cmd.join(' ')
end

task default: :spec
task pdf_all: %i[pdf_funcs pdf_funcs_org pdf_small pdf_small_org]

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
asciidoctor-nabetani-0.1.4 Rakefile