Updating docs rake task
This commit is contained in:
parent
3b8fc5551f
commit
03d7c71ef9
11
Rakefile
11
Rakefile
|
@ -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"
|
||||||
|
|
Loading…
Reference in New Issue