Sha256: e5dc0ad76c4b8013a38c11212944b5402ab6dcb1b41d2b366873961d6cccf3aa
Contents?: true
Size: 955 Bytes
Versions: 24
Compression:
Stored size: 955 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.rdoc' rdoc.rdoc_files.include('README.rdoc', '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
24 entries across 24 versions & 7 rubygems