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