Permalink
Browse files

rdoc changes

git-svn-id: svn://errtheblog.com/svn/plugins/will_paginate@329 1eaa51fe-a21a-0410-9c2e-ae7a00a434c4
  • Loading branch information...
1 parent 8ff2314 commit 9ba306e0363f7a3c6a1301cbce1c362e2fa9e32f chris committed Aug 21, 2007
Showing with 7 additions and 5 deletions.
  1. +7 −5 Rakefile
View
12 Rakefile
@@ -13,9 +13,11 @@ end
desc 'Generate RDoc documentation for the will_paginate plugin.'
Rake::RDocTask.new(:rdoc) do |rdoc|
- rdoc.rdoc_dir = 'rdoc'
- rdoc.title = 'WillPaginate'
- rdoc.options << '--line-numbers' << '--inline-source'
- rdoc.rdoc_files.include('README')
- rdoc.rdoc_files.include('lib/**/*.rb')
+ files = ['README', 'LICENSE', 'lib/**/*.rb']
+ rdoc.rdoc_files.add(files)
+ rdoc.main = "README" # page to start on
+ rdoc.title = "will_paginate documentation"
+ rdoc.template = File.exists?(t="~/ruby/projects/err/rock/template.rb") ? t : "/var/www/rock/template.rb"
+ rdoc.rdoc_dir = 'doc' # rdoc output folder
+ rdoc.options << '--inline-source'
end

0 comments on commit 9ba306e

Please sign in to comment.