mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 21:14:23 +02:00
Sync RDoc 6.14.0
This commit is contained in:
parent
ca1ea95784
commit
03eb777c69
185 changed files with 2008 additions and 1655 deletions
|
@ -34,7 +34,7 @@ module RDoc::Generator::Markup
|
|||
def formatter
|
||||
return @formatter if defined? @formatter
|
||||
|
||||
options = @store.rdoc.options
|
||||
options = @store.options
|
||||
this = RDoc::Context === self ? self : @parent
|
||||
|
||||
@formatter = RDoc::Markup::ToHtmlCrossref.new options, this.path, this
|
||||
|
@ -55,6 +55,18 @@ module RDoc::Generator::Markup
|
|||
end
|
||||
end
|
||||
|
||||
##
|
||||
# The preferred URL for this object.
|
||||
|
||||
def canonical_url
|
||||
options = @store.options
|
||||
if path
|
||||
File.join(options.canonical_root, path.to_s)
|
||||
else
|
||||
options.canonical_root
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
class RDoc::CodeObject
|
||||
|
@ -147,7 +159,7 @@ class RDoc::TopLevel
|
|||
# command line option to set.
|
||||
|
||||
def cvs_url
|
||||
url = @store.rdoc.options.webcvs
|
||||
url = @store.options.webcvs
|
||||
|
||||
if /%s/ =~ url then
|
||||
url % @relative_name
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue