Sha256: fff7baa297b27626213aec68f03af5bce9324274876c7bfe17597fe44dc71650

Contents?: true

Size: 902 Bytes

Versions: 8

Compression:

Stored size: 902 Bytes

Contents

gem 'mislav-hanna'
require 'hanna/rdoctask'

Rake::RDocTask.new(:doc) do |rdoc|
  version = Jeweler::VersionHelper.new(File.join(File.dirname(__FILE__), '..')).to_s
  rdoc.title = 'Sunspot - Pure-Ruby Solr Search and Indexing - 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 - Pure-Ruby Solr Search and Indexing - 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

8 entries across 8 versions & 2 rubygems

Version Path
outoftime-sunspot-0.8.1 tasks/rdoc.rake
outoftime-sunspot-0.8.2 tasks/rdoc.rake
outoftime-sunspot-0.8.3 tasks/rdoc.rake
outoftime-sunspot-0.8.4 tasks/rdoc.rake
outoftime-sunspot-0.8.5 tasks/rdoc.rake
outoftime-sunspot-0.8.8 tasks/rdoc.rake
outoftime-sunspot-0.8.9 tasks/rdoc.rake
pallan-sunspot-0.8.3 tasks/rdoc.rake