Sha256: c9b0605da705b36c06fff1c2328f60a55d172d0da2c3f9c47e3ad29ae62f8784
Contents?: true
Size: 634 Bytes
Versions: 3
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', 'SolrmarcWrapper 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
solrmarc_wrapper-1.0.0 | lib/tasks/doc.rake |
solrmarc_wrapper-0.0.6 | lib/tasks/doc.rake |
solrmarc_wrapper-0.0.5 | lib/tasks/doc.rake |