Sha256: c381095c5cf7cf7b87ea7666ef4b55f1beb768e85cac50448429d032f6dbc721

Contents?: true

Size: 564 Bytes

Versions: 8

Compression:

Stored size: 564 Bytes

Contents

@api_dir = 'api'
@api_dst = "#{@api_dir}/index.html"

desc 'Build API documentation.'
task :api => @api_dst

file @api_dst => FileList['lib/**/*.rb'].include('LICENSE') do
  inner_task_name = 'api:yard'

  require 'yard'
  require 'yard/rake/yardoc_task'
  YARD::Rake::YardocTask.new(inner_task_name) do |yardoc|
    yardoc.options = [
      '--output-dir', @api_dir,
      '--title', @project_module.inspect,
      '--readme', 'LICENSE',
      '--no-private'
    ]
  end

  Rake::Task[inner_task_name].invoke
end

CLEAN.include '.yardoc'
CLOBBER.include @api_dir

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
inochi-6.1.0 lib/inochi/tasks/1-api.rake
inochi-6.0.2 lib/inochi/tasks/1-api.rake
inochi-6.0.1 lib/inochi/tasks/1-api.rake
inochi-6.0.0 lib/inochi/tasks/1-api.rake
inochi-5.1.0 lib/inochi/tasks/1-api.rake
inochi-5.0.2 lib/inochi/tasks/1-api.rake
inochi-5.0.1 lib/inochi/tasks/1-api.rake
inochi-5.0.0 lib/inochi/tasks/2-api.rake