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