Sha256: 43783d25bd2a468c56b00c5bd3946a091aeb9d7cb89b017453a4bf09e9a4ea96

Contents?: true

Size: 935 Bytes

Versions: 24

Compression:

Stored size: 935 Bytes

Contents

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

Rake::RDocTask.new(:doc) do |rdoc|
  version = Jeweler::VersionHelper.new(File.join(File.dirname(__FILE__), '..')).to_s
  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 & 8 rubygems

Version Path
sunspot-0.10.1 tasks/rdoc.rake
sunspot-0.10.0 tasks/rdoc.rake
sunspot-0.9.8 tasks/rdoc.rake
sunspot-0.9.7 tasks/rdoc.rake