From b70728efcac2d13dbac90bb5bbe6a6091619fb37 Mon Sep 17 00:00:00 2001 From: Eric Davis Date: Sun, 30 Nov 2008 14:40:34 -0800 Subject: [PATCH] Refactored the rdoc task to include more files and use the PROJECT_NAME --- Rakefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Rakefile b/Rakefile index 906621e..3d6f47c 100755 --- a/Rakefile +++ b/Rakefile @@ -67,12 +67,14 @@ namespace :spec do end end -desc 'Generate documentation for the Budget plugin.' +desc 'Generate documentation for the plugin.' Rake::RDocTask.new(:rdoc) do |rdoc| rdoc.rdoc_dir = 'doc' - rdoc.title = 'Budget' + rdoc.title = PROJECT_NAME rdoc.options << '--line-numbers' << '--inline-source' - rdoc.rdoc_files.include('README.markdown') + rdoc.rdoc_files.include('*.markdown') + rdoc.rdoc_files.include('*.rdoc') + rdoc.rdoc_files.include('*.txt') rdoc.rdoc_files.include('lib/**/*.rb') rdoc.rdoc_files.include('app/**/*.rb') end