Sha256: 0bde54a7cf9b5b29c9d2728fe33a664e94e02dffa5a3ea1b1f5e534a57a8f389

Contents?: true

Size: 682 Bytes

Versions: 26

Compression:

Stored size: 682 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|
  rdoc.main = 'README.rdoc'
  rdoc.rdoc_files.include('README.rdoc', 'lib/sunspot/rails/**/*.rb', 'lib/sunspot/rails.rb')
  rdoc.rdoc_dir = 'doc'
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', 'rails', '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 & 8 rubygems

Version Path
pduey-sunspot_rails-1.2.1.1 dev_tasks/rdoc.rake
sunspot_rails-1.3.0.rc6 dev_tasks/rdoc.rake
erichummel-sunspot_rails-1.2.1g dev_tasks/rdoc.rake
erichummel-sunspot_rails-1.2.1f dev_tasks/rdoc.rake
erichummel-sunspot_rails-1.2.1e dev_tasks/rdoc.rake
erichummel-sunspot_rails-1.2.1d dev_tasks/rdoc.rake
erichummel-sunspot_rails-1.2.1c dev_tasks/rdoc.rake
erichummel-sunspot_rails-1.2.1b dev_tasks/rdoc.rake
erichummel-sunspot_rails-1.2.1a dev_tasks/rdoc.rake
sunspot_rails_rbg-1.3.1 dev_tasks/rdoc.rake
sunspot_rails_rbg-1.3.0 dev_tasks/rdoc.rake
ruben_sunspot_rails-1.1.4 dev_tasks/rdoc.rake
ruben_sunspot_rails-1.1.3 dev_tasks/rdoc.rake
ruben_sunspot_rails-1.1.2 dev_tasks/rdoc.rake
sunspot_rails_mongoid-1.2.1 dev_tasks/rdoc.rake
sunspot_rails-1.2.1 dev_tasks/rdoc.rake
sunspot_rails-1.2.0 dev_tasks/rdoc.rake
ruben_sunspot_rails-1.1.1 dev_tasks/rdoc.rake
ruben_sunspot_rails-1.1.0 dev_tasks/rdoc.rake
nuatt_sunspot_rails-1.1.0.3 dev_tasks/rdoc.rake