diff options
author | murphy <murphy@rubychan.de> | 2011-06-12 01:38:36 +0000 |
---|---|---|
committer | murphy <murphy@rubychan.de> | 2011-06-12 01:38:36 +0000 |
commit | e750f1be81cb66743fdc5d4e9903788d9eb765c2 (patch) | |
tree | 2da7acc36b8b09cc42562cc7ef7a24defa4bd8b0 /Rakefile | |
parent | 499eedc013b6178508186153831f7306221a7f8d (diff) | |
download | coderay-e750f1be81cb66743fdc5d4e9903788d9eb765c2.tar.gz |
Rake task cleanups and updates. Not living in the past any more.
Diffstat (limited to 'Rakefile')
-rw-r--r-- | Rakefile | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -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 |