Sha256: 3d3b3477123e4828cacebb1d405e3f9e5629c6a06ba7b335471f0827f8c7ba29

Contents?: true

Size: 634 Bytes

Versions: 4

Compression:

Stored size: 634 Bytes

Contents

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

# Use yard to build docs
begin
  project_root = File.expand_path(File.dirname(__FILE__) + "/../..")
  doc_dest_dir = File.join(project_root, 'doc')

  YARD::Rake::YardocTask.new(:doc) do |yt|
    yt.files = Dir.glob(File.join(project_root, 'lib', '**', '*.rb')) +
                 [ File.join(project_root, 'README.rdoc') ]
    yt.options = ['--output-dir', doc_dest_dir, '--readme', 'README.rdoc', '--title', 'SolrJ_Wrapper Documentation']
  end
rescue LoadError
  desc "Generate YARD Documentation"
  task :doc do
    abort "Please install the YARD gem to generate rdoc."
  end
end  

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
solrj_wrapper-1.1.0 lib/tasks/doc.rake
solrj_wrapper-1.0.2 lib/tasks/doc.rake
solrj_wrapper-1.0.1 lib/tasks/doc.rake
solrj_wrapper-1.0.0 lib/tasks/doc.rake