18cards/hexpertise/Rakefile
2023-05-11 21:57:43 -04:00

15 lines
330 B
Ruby

require 'squib'
task default: [:deck, :rules]
task :deck do
load 'deck.rb'
end
desc 'Build the rules PDF'
task rules: "_output/RULES.pdf"
file "_output/RULES.pdf" => ["Rules.md", "_output"] do |t|
respaths = [".", "docs/"]
sh "pandoc", "-o", t.name, t.source, "--resource-path=#{respaths.join(File::PATH_SEPARATOR)}"
end