Sha256: 2a2c64285a17773052f6eb37f23f80d778b8bda904840c75766f436526b03816

Contents?: true

Size: 673 Bytes

Versions: 6

Compression:

Stored size: 673 Bytes

Contents

require 'rake'
require 'rake/clean'

CLOBBER.include('doc', '.yardoc')
CLOBBER.uniq!

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', '--markup', 'markdown']
      yardoc.files = [
        'lib/**/*.rb', 'ext/**/*.c', '-',
        'README.md', 'CONTRIB.md', 'CHANGELOG.md', 'LICENSE'
      ]
    end
  end

  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

6 entries across 6 versions & 2 rubygems

Version Path
jomz-google-api-client-0.7.1 tasks/yard.rake
google-api-client-0.7.1 tasks/yard.rake
google-api-client-0.7.0 tasks/yard.rake
google-api-client-0.7.0.rc2 tasks/yard.rake
google-api-client-0.6.4 tasks/yard.rake
google-api-client-0.6.3 tasks/yard.rake