Rakefile in asciidoctor-nabetani-0.1.2 vs Rakefile in asciidoctor-nabetani-0.1.3

- old
+ new

@@ -2,33 +2,50 @@ require "rspec/core/rake_task" RSpec::Core::RakeTask.new(:spec) desc 'Create Sample PDF' -task :pdf do +task :pdf_funcs 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 + -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_org do +task :pdf_funcs_org do cmd = %W[ asciidoctor-pdf -r asciidoctor-pdf-cjk-kai_gen_gothic - sample/src/index.adoc - -o sample/book_org.pdf + 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 pdfs: [:pdf, :pdf_org] +task pdf_all: %i[pdf_funcs pdf_funcs_org pdf_small pdf_small_org]