diff options
author | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-11-27 08:54:03 +0000 |
---|---|---|
committer | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-11-27 08:54:03 +0000 |
commit | 6d1266a879a94a6f76106e1bbdfa3576b6612a69 (patch) | |
tree | 5c88a98d9e588861138e63be7d45353627dcab43 /lib/rdoc/generator | |
parent | 7de9e2dfdeefeefe6c3d4ff9ebafa8c947eca33f (diff) | |
download | ruby-6d1266a879a94a6f76106e1bbdfa3576b6612a69.tar.gz |
* lib/rdoc/*: Added --root option for building documentation outside
the source directory.
* test/rdoc/*: ditto
* common.mk (rdoc): Added --root to rdoc rule
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37896 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rdoc/generator')
-rw-r--r-- | lib/rdoc/generator/markup.rb | 4 | ||||
-rw-r--r-- | lib/rdoc/generator/template/darkfish/_sidebar_in_files.rhtml | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/rdoc/generator/markup.rb b/lib/rdoc/generator/markup.rb index 3b3546690e..788e5a485d 100644 --- a/lib/rdoc/generator/markup.rb +++ b/lib/rdoc/generator/markup.rb @@ -159,9 +159,9 @@ class RDoc::TopLevel url = @store.rdoc.options.webcvs if /%s/ =~ url then - url % @absolute_name + url % @relative_name else - url + @absolute_name + url + @relative_name end end diff --git a/lib/rdoc/generator/template/darkfish/_sidebar_in_files.rhtml b/lib/rdoc/generator/template/darkfish/_sidebar_in_files.rhtml index c4ae216a14..22be0c9b65 100644 --- a/lib/rdoc/generator/template/darkfish/_sidebar_in_files.rhtml +++ b/lib/rdoc/generator/template/darkfish/_sidebar_in_files.rhtml @@ -2,7 +2,7 @@ <h3 class="section-header">Defined In</h3> <ul> <% klass.in_files.each do |tl| %> - <li><%= h tl.absolute_name %> + <li><%= h tl.relative_name %> <% end %> </ul> </nav> |