diff options
author | murphy <murphy@rubychan.de> | 2008-01-21 03:29:31 +0000 |
---|---|---|
committer | murphy <murphy@rubychan.de> | 2008-01-21 03:29:31 +0000 |
commit | c545052548086962c61bb6ef79d16b5959aae936 (patch) | |
tree | 79e3a7e0a98950c68b4808bfcdc0a47804d5fd25 /rake_tasks/documentation.rake | |
parent | 9caaded8f5fe55456fe2e11ee9c15cd0db8f2132 (diff) | |
download | coderay-c545052548086962c61bb6ef79d16b5959aae936.tar.gz |
Trying to fix doc task for 1.9
Diffstat (limited to 'rake_tasks/documentation.rake')
-rw-r--r-- | rake_tasks/documentation.rake | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/rake_tasks/documentation.rake b/rake_tasks/documentation.rake index 8906f43..ab09c46 100644 --- a/rake_tasks/documentation.rake +++ b/rake_tasks/documentation.rake @@ -1,12 +1,16 @@ require 'rake/rdoctask'
+require 'pathname'
+
+CODERAY_TEMPLATE = Pathname.new(File.dirname(__FILE__)).join('..', 'rake_helpers', 'coderay_rdoc_template.rb').expand_path.to_s
def set_rdoc_info rd, small = false
rd.main = 'README'
rd.title = "CodeRay Documentation"
rd.options << '--line-numbers' << '--inline-source' << '--tab-width' << '2'
- rd.options << '--fmt' << ENV.fetch('format', 'html_coderay')
+ # rd.options << '--format' << ENV.fetch('format', 'html_coderay')
rd.options << '--all'
- rd.template = ENV.fetch('template', 'rake_helpers/coderay_rdoc_template.rb')
+
+ rd.template = ENV.fetch('template', CODERAY_TEMPLATE)
rd.rdoc_files.add *EXTRA_FILES.in(ROOT)
rd.rdoc_files.add *Dir[File.join(LIB_ROOT, "#{'**/' unless small}*.rb")]
end
|