Sha256: 074752e01508fa32408dd111a9ff9e37adbe7c5c1975610143b9a18fbc98fa7d
Contents?: true
Size: 1007 Bytes
Versions: 1
Compression:
Stored size: 1007 Bytes
Contents
require 'rake' require 'rake/clean' CLOBBER.include('docs/guides') namespace :hayde do desc "Generates guides documentation." task :build, [:output_dir, :assets_dir] do guides_generator = Hayde::Generator.new do |g| g.sources.include 'guides/source/**/*' g.sources.exclude 'guides/source/layout.*' g.output_dir = args.output_dir if args.output_dir g.assets_dir = args.assets_dir if args.assets_dir end guides_generator.generate end desc "Generates guides documentation." task :rebuild, [:output_dir, :assets_dir] do guides_generator = Hayde::Generator.new do |g| g.sources.include 'guides/source/**/*' g.sources.exclude 'guides/source/layout.*' g.output_dir = args.output_dir if args.output_dir g.assets_dir = args.assets_dir if args.assets_dir g.force = true end guides_generator.generate end desc "Removes generated guides." task :clean do guides_generator = Hayde::Generator.new guides_generator.clean end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hayde-0.1.9 | lib/tasks/haydetasks.rb |