Sha256: 7c03d58fc8506c58df6a942a80b8a0bad32726871798f1ae75962859995e5476

Contents?: true

Size: 694 Bytes

Versions: 2

Compression:

Stored size: 694 Bytes

Contents

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

namespace :sj_wrap do
  
  # 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  

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
solrj_wrapper-0.0.2 lib/tasks/doc.rake
solrj_wrapper-0.0.1 lib/tasks/doc.rake