Sha256: 9cd1b7f2854979a226b3a53acd41999e9644f94036d61910c19eb4578bf876e0
Contents?: true
Size: 951 Bytes
Versions: 26
Compression:
Stored size: 951 Bytes
Contents
begin require 'hanna/rdoctask' rescue LoadError if require 'rubygems' retry end # It's OK if hanna isn't installed. end Rake::RDocTask.new(:doc) do |rdoc| version = Sunspot::VERSION rdoc.title = "Sunspot #{version} - Solr-powered search for Ruby objects - API Documentation" rdoc.main = 'README.md' rdoc.rdoc_files.include('README.md', 'lib/sunspot.rb', 'lib/sunspot/**/*.rb') rdoc.rdoc_dir = 'doc' rdoc.options << "--webcvs=http://github.com/outoftime/sunspot/tree/v#{version}/%s" << '--title' << 'Sunspot - Solr-powered search for Ruby objects - API Documentation' end namespace :doc do desc 'Generate rdoc and move into pages directory' task :publish => :redoc do doc_dir = File.join(File.dirname(__FILE__), '..', 'doc') publish_dir = File.join(File.dirname(__FILE__), '..', '..', 'pages', 'docs') FileUtils.rm_rf(publish_dir) if File.exist?(publish_dir) FileUtils.cp_r(doc_dir, publish_dir) end end
Version data entries
26 entries across 26 versions & 6 rubygems