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