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

Version Path
sunspot-2.1.0 tasks/rdoc.rake
sunspot-2.0.0 tasks/rdoc.rake
sunspot-2.0.0.pre.130115 tasks/rdoc.rake
gojee-sunspot-2.0.5 tasks/rdoc.rake
sunspot-2.0.0.pre.120925 tasks/rdoc.rake
sunspot_solr-2.0.0.pre.120924 sunspot/tasks/rdoc.rake
sunspot_rails-2.0.0.pre.120924 sunspot/tasks/rdoc.rake
sunspot-2.0.0.pre.120924 sunspot/tasks/rdoc.rake
gojee-sunspot-2.0.4 tasks/rdoc.rake
gojee-sunspot-2.0.2 tasks/rdoc.rake
sunspot-2.0.0.pre.120720 tasks/rdoc.rake
sunspot-1.3.3 tasks/rdoc.rake
sunspot-1.3.2 tasks/rdoc.rake
sunspot-2.0.0.pre.120417 tasks/rdoc.rake
sunspot-2.0.0.pre.120415 tasks/rdoc.rake
sunspot-1.3.1 tasks/rdoc.rake
erichummel-sunspot-2.0.0.pre.111215d tasks/rdoc.rake
erichummel-sunspot-2.0.0.pre.111215c tasks/rdoc.rake
erichummel-sunspot-2.0.0.pre.111215b tasks/rdoc.rake
erichummel-sunspot-2.0.0.pre.111215a tasks/rdoc.rake