Sha256: fde00f11379fc37c7d78e367ad6fad5cbb887e44c4ef7111ca6ae43f632d58cd

Contents?: true

Size: 1010 Bytes

Versions: 1

Compression:

Stored size: 1010 Bytes

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
    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
    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.3 Rakefile