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

Version Path
pduey-sunspot-1.2.1.1 tasks/rdoc.rake
sunspot-1.3.0.rc6 tasks/rdoc.rake
erichummel-sunspot-1.2.1g tasks/rdoc.rake
erichummel-sunspot-1.2.1f tasks/rdoc.rake
erichummel-sunspot-1.2.1b tasks/rdoc.rake
erichummel-sunspot-1.2.1a tasks/rdoc.rake
erichummel-sunspot-1.2.1 tasks/rdoc.rake
lisausa-sunspot-1.2.1.1 tasks/rdoc.rake
lisausa-sunspot-1.2.1 tasks/rdoc.rake
sunspot_rbg-1.3.1 tasks/rdoc.rake
sunspot_rbg-1.3.0 tasks/rdoc.rake
ruben-sunspot-1.1.4 tasks/rdoc.rake
ruben-sunspot-1.1.3 tasks/rdoc.rake
ruben-sunspot-1.1.2 tasks/rdoc.rake
sunspot-1.2.1 tasks/rdoc.rake
sunspot-1.2.0 tasks/rdoc.rake
ruben-sunspot-1.1.1 tasks/rdoc.rake
ruben-sunspot-1.1.0 tasks/rdoc.rake
nuatt_sunspot-1.1.0.3 tasks/rdoc.rake
sunspot-1.1.0 tasks/rdoc.rake