Sha256: b2d8f582fbc66685ea85fd4cf3a0ab5ecffe513445790a810149e34130ea2056

Contents?: true

Size: 594 Bytes

Versions: 4

Compression:

Stored size: 594 Bytes

Contents

require 'rake'

begin
  require 'yard'
  require 'yard/rake/yardoc_task'

  namespace :doc do
    desc 'Generate Yardoc documentation'
    YARD::Rake::YardocTask.new do |yardoc|
      yardoc.name = 'yard'
      yardoc.options = ['--verbose']
      yardoc.files = [
        'lib/**/*.rb', 'ext/**/*.c', 'README.md', 'CHANGELOG.md', 'LICENSE'
      ]
    end
  end

  task 'clobber' => ['doc:clobber_yard']

  desc 'Alias to doc:yard'
  task 'doc' => 'doc:yard'
rescue LoadError
  # If yard isn't available, it's not the end of the world
  desc 'Alias to doc:rdoc'
  task 'doc' => 'doc:rdoc'
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
autoparse-0.3.3 tasks/yard.rake
autoparse-0.3.2 tasks/yard.rake
autoparse-0.3.1 tasks/yard.rake
signet-0.3.0 tasks/yard.rake