summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authormurphy <murphy@rubychan.de>2011-06-12 01:38:36 +0000
committermurphy <murphy@rubychan.de>2011-06-12 01:38:36 +0000
commite750f1be81cb66743fdc5d4e9903788d9eb765c2 (patch)
tree2da7acc36b8b09cc42562cc7ef7a24defa4bd8b0 /Rakefile
parent499eedc013b6178508186153831f7306221a7f8d (diff)
downloadcoderay-e750f1be81cb66743fdc5d4e9903788d9eb765c2.tar.gz
Rake task cleanups and updates. Not living in the past any more.
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile9
1 files changed, 5 insertions, 4 deletions
diff --git a/Rakefile b/Rakefile
index 2a2a681..6bca085 100644
--- a/Rakefile
+++ b/Rakefile
@@ -2,7 +2,7 @@ $:.unshift File.dirname(__FILE__) unless $:.include? '.'
ROOT = '.'
LIB_ROOT = File.join ROOT, 'lib'
-EXTRA_RDOC_FILES = %w(lib/README FOLDERS)
+EXTRA_RDOC_FILES = %w(README.rdoc FOLDERS)
task :default => :test
@@ -22,13 +22,14 @@ else
ruby './test/functional/for_redcloth.rb'
end
+ gem 'rdoc' if defined? gem
+ require 'rdoc/task'
desc 'Generate documentation for CodeRay'
Rake::RDocTask.new :doc do |rd|
rd.title = 'CodeRay Documentation'
- rd.main = 'lib/README'
+ rd.main = 'README.rdoc'
rd.rdoc_files.add Dir['lib']
- rd.rdoc_files.add 'lib/README'
- rd.rdoc_files.add 'FOLDERS'
+ rd.rdoc_files.add 'README.rdoc'
rd.rdoc_dir = 'doc'
end