From cbf4004b067cc3c8f24703383cb1346fca17549d Mon Sep 17 00:00:00 2001 From: Ian White Date: Thu, 12 Feb 2009 10:37:05 +0000 Subject: [PATCH] Using Hanna rdoc --- Rakefile | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/Rakefile b/Rakefile index e17f31e..043ddbf 100644 --- a/Rakefile +++ b/Rakefile @@ -4,7 +4,7 @@ $LOAD_PATH.unshift(rspec_base) if File.exist?(rspec_base) and !$LOAD_PATH.includ require 'spec/rake/spectask' require 'spec/rake/verify_rcov' -require 'rake/rdoctask' +require 'hanna/rdoctask' plugin_name = 'inherit_views' @@ -35,14 +35,12 @@ end task :rdoc => :doc desc "Generate rdoc for #{plugin_name}" -Rake::RDocTask.new(:doc) do |t| - t.rdoc_dir = 'doc' - t.main = 'README.rdoc' - t.title = "#{plugin_name}" - t.template = ENV['RDOC_TEMPLATE'] - t.options = ['--line-numbers', '--inline-source'] - t.rdoc_files.include('README.rdoc', 'History.txt', 'License.txt') - t.rdoc_files.include('lib/**/*.rb') +Rake::RDocTask.new(:doc) do |d| + d.rdoc_dir = 'doc' + d.main = 'README.rdoc' + d.title = "#{plugin_name} API Documentation" + d.rdoc_files.include('README.rdoc', 'History.txt', 'License.txt'). + include('lib/**/*.rb') end namespace :doc do