Skip to content
Browse files

avoid templates for the darkfish generator

  • Loading branch information...
1 parent 560dc0b commit 46b7a05d5548af97e81500a33ac668120e3193a4 Vincent Landgraf committed Nov 28, 2009
Showing with 10 additions and 1 deletion.
  1. +10 −1 bin/rdoc-osa
View
11 bin/rdoc-osa
@@ -214,8 +214,17 @@ datadir = if Config.respond_to?(:datadir)
else
File.join(Config::CONFIG['datadir'], 'rubyosa')
end
+
+# aviod problems with th epopular darkfish generator
+begin
+ require "rdoc/generator/darkfish"
+ USE_TEMPLATES = false
+rescue => ex
+ USE_TEMPLATES = true
+end
+
template = File.join(datadir, 'rdoc_html.rb')
-if File.exists?(template)
+if File.exists?(template) && USE_TEMPLATES
rdoc_flags << " --template '#{template}' "
end
rdoc_flags << " --title '#{app_name} RubyOSA API' "

0 comments on commit 46b7a05

Please sign in to comment.
Something went wrong with that request. Please try again.