aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorAvatar Richard Brown <rbrown@exherbo.org> 2008-01-15 22:23:54 +0000
committerAvatar Richard Brown <rbrown@exherbo.org> 2008-01-15 22:23:54 +0000
commite9b0bf0afb5f085323cbb70ffca5f4b6ada8b81d (patch)
tree3700551a056aad26764edf0649396252466e7da4 /doc
parent46a67ade41a654b6951492cc5ec8b289310371a9 (diff)
downloadpaludis-e9b0bf0afb5f085323cbb70ffca5f4b6ada8b81d.tar.gz
paludis-e9b0bf0afb5f085323cbb70ffca5f4b6ada8b81d.tar.xz
(ruby) Use allison for rdoc template.
Diffstat (limited to 'doc')
-rw-r--r--doc/api/ruby/Makefile.am2
-rw-r--r--doc/api/ruby/create_ruby_doc.rb5
2 files changed, 6 insertions, 1 deletions
diff --git a/doc/api/ruby/Makefile.am b/doc/api/ruby/Makefile.am
index c4826cabe..12be42547 100644
--- a/doc/api/ruby/Makefile.am
+++ b/doc/api/ruby/Makefile.am
@@ -38,7 +38,7 @@ examples = \
EXTRA_DIST = $(examples) \
ruby_syntax.css
-if ENABLE_RUBY
+if ENABLE_RUBY_DOC
all-local : rdoc
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