blob: 4f7cef7aac4463f103883ae3ebdca6f8332b7c1f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
begin
if RUBY_VERSION >= '1.8.7'
gem 'rdoc' if defined? gem
require 'rdoc/task'
else
require 'rake/rdoctask'
end
rescue LoadError
warn 'Please gem install rdoc.'
end
desc 'Generate documentation for CodeRay'
Rake::RDocTask.new :doc do |rd|
rd.main = 'lib/README'
rd.title = 'CodeRay Documentation'
rd.options << '--line-numbers' << '--tab-width' << '2'
rd.main = 'README_INDEX.rdoc'
rd.rdoc_files.add 'README_INDEX.rdoc'
rd.rdoc_files.add Dir['lib']
rd.rdoc_dir = 'doc'
end if defined? Rake::RDocTask
|