Sha256: 0de188f47ec0bc48ed28492f89df41dac6e155f9f7027dc59bae28023962bc88

Contents?: true

Size: 319 Bytes

Versions: 1

Compression:

Stored size: 319 Bytes

Contents

namespace :docs do
  
  desc "Generate documentation for all currently loaded recipes."
  task :recipes do
    top_node = capitate.task_tree
    
    puts "Tree:\n#{}"
    
    dir = "docs/recipes"
    FileUtils.rm_rf(dir)
    FileUtils.mkdir_p(dir)
    
    top_node.write_doc(dir, "index", "Recipes")
    
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
capitate-0.1.8 lib/recipes/docs.rb