Updating docs rake task

This commit is contained in:
Bryan Helmkamp 2008-11-24 20:10:27 -05:00
parent 3b8fc5551f
commit 03d7c71ef9
1 changed files with 3 additions and 8 deletions

View File

@ -73,14 +73,9 @@ task :install_gem => [:clean, :package] do
sh "sudo gem install --local #{gem}" sh "sudo gem install --local #{gem}"
end end
Rake::RDocTask.new(:docs) do |rd| desc "Generate RDoc"
rd.main = "README.txt" task :docs do
rd.rdoc_dir = 'doc' system "hanna -x Rakefile -x spec --title 'Webrat #{Webrat::VERSION} API Documentation'"
files = spec.files.grep(/^(lib|bin|ext)|txt$/)
files -= files.grep(/\.js$/)
rd.rdoc_files = files.uniq
title = "webrat-#{Webrat::VERSION} Documentation"
rd.options << "-t #{title}"
end end
desc "Run specs using jruby" desc "Run specs using jruby"