blob: 162699da25d7cca69ed92d2e57a6ef940deabdbb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
desc 'Generate documentation for CodeRay'
Rake::RDocTask.new :doc do |rd|
rd.main = 'lib/README'
rd.title = 'CodeRay Documentation'
rd.options << '--line-numbers' << '--inline-source' << '--tab-width' << '2'
rd.options << '--fmt' << ENV.fetch('format', 'html_coderay')
require 'pathname'
template = File.join ROOT, 'rake_helpers', 'coderay_rdoc_template.rb'
rd.template = Pathname.new(template).expand_path.to_s
rd.rdoc_files.add EXTRA_RDOC_FILES
rd.rdoc_files.add Dir['lib']
rd.rdoc_dir = 'doc'
end
desc 'Copy the documentation over to the CodeRay website'
task :copy_doc do
cp_r 'doc/.', '../../rails/coderay/public/doc'
end
|