aboutsummaryrefslogtreecommitdiff
path: root/doc/api/ruby/create_ruby_doc.rb
diff options
context:
space:
mode:
Diffstat (limited to 'doc/api/ruby/create_ruby_doc.rb')
-rw-r--r--doc/api/ruby/create_ruby_doc.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/api/ruby/create_ruby_doc.rb b/doc/api/ruby/create_ruby_doc.rb
index f510af1d7..221ad2471 100644
--- a/doc/api/ruby/create_ruby_doc.rb
+++ b/doc/api/ruby/create_ruby_doc.rb
@@ -3,6 +3,10 @@
require 'rdoc/rdoc'
+gps = Gem::GemPathSearcher.new;
+allison_spec = gps.find('allison.rb');
+allison = "#{Gem::dir}/gems/#{allison_spec.name}-#{allison_spec.version}/lib/allison.rb"
+
module RDoc
class C_Parser_Paludis < C_Parser
@@ -77,6 +81,7 @@ module RDoc
end
end
begin
+ ARGV << '--template' << allison
r = RDoc::RDoc.new
r.document(ARGV)
rescue RDoc::RDocError => e