18cards/2022/05-gencant/Rakefile

15 lines
330 B
Ruby
Raw Normal View History

2022-05-21 20:05:23 -04:00
require 'squib'
2022-05-25 18:47:44 -04:00
task default: [:deck, :rules]
2022-05-21 20:05:23 -04:00
task :deck do
load 'deck.rb'
end
2022-05-25 18:47:44 -04:00
desc 'Build the rules PDF'
task rules: "_output/RULES.pdf"
file "_output/RULES.pdf" => ["Rules.md", "_output"] do |t|
respaths = [".", "docs/"]
2022-05-25 18:59:11 -04:00
sh "pandoc", "-o", t.name, t.source, "--resource-path=#{respaths.join(File::PATH_SEPARATOR)}"
2022-05-25 18:47:44 -04:00
end