Sha256: 0001cb63abe806e70805478afc06addc4d7e9886a65a95d3e839735b1ccd2caa

Contents?: true

Size: 1.07 KB

Versions: 2

Compression:

Stored size: 1.07 KB

Contents

# 
# Install a rake task to generate API documentation using
# yard.
#
# More information about yard: http://yardoc.org/
# This file has been written to conform to yard v0.6.4
#
# About project documentation
begin
  require "yard"
  desc "Generate yard documentation"
  YARD::Rake::YardocTask.new(:yard) do |t|
    # Array of options passed to the commandline utility
    # See 'yardoc --help' about this
    t.options = %w{--output-dir doc/api - README.md CHANGELOG.md LICENCE.md}
    
    # Array of ruby source files (and any extra documentation files 
    # separated by '-')
    t.files = ['lib/**/*.rb']
    
    # A proc to call before running the task
    # t.before = proc{ }
    
    # A proc to call after running the task
    # r.after = proc{ }
    
    # An optional lambda to run against all objects being generated. 
    # Any object that the lambda returns false for will be excluded 
    # from documentation. 
    # t.verifier = lambda{|obj| true}
  end
rescue LoadError
  task :yard do
    abort 'yard is not available. In order to run yard, you must: gem install yard'
  end
end

Version data entries

2 entries across 1 versions & 1 rubygems

Version Path
noe-1.1.0 ./tasks/yard.rake
noe-1.1.0 ./templates/ruby/src/tasks/yard.rake