Sha256: 34589944427ebb1e3395b28fd5eadfbf57d364383f65e5b56a77ba3d91e439e6
Contents?: true
Size: 768 Bytes
Versions: 8
Compression:
Stored size: 768 Bytes
Contents
namespace :docs do desc <<-DESC Generate documentation for all currently loaded recipes. Assumes textile formatting. *docs_recipes_dir*: Destination directory. _Defaults to "docs/recipes"_ @set :docs_recipes_dir, "docs/recipes"@ *docs_recipes_clear*: Whether to clear destination before generating. @set :docs_recipes_clear, true@ DESC task :recipes do # Settings fetch_or_default(:docs_recipes_dir, "docs/recipes") fetch_or_default(:docs_recipes_clear, true) # Build task tree top_node = capitate.task_tree FileUtils.rm_rf(docs_recipes_dir) if docs_recipes_clear FileUtils.mkdir_p(docs_recipes_dir) top_node.write_doc(docs_recipes_dir, "index", "Recipes") end end
Version data entries
8 entries across 8 versions & 1 rubygems