Merge pull request #173 from eputnam/pdoc159
(PDOC-159) server urls fix
This commit is contained in:
commit
09a240dd87
|
@ -0,0 +1,11 @@
|
||||||
|
# Monkey patch URL decoding in object displays. Usually :: is interpreted as a
|
||||||
|
# namespace, but this is disabled in our base object, and so instead gets
|
||||||
|
# URL-encoded.
|
||||||
|
require 'yard/server/commands/display_object_command'
|
||||||
|
class YARD::Server::Commands::DisplayObjectCommand
|
||||||
|
private
|
||||||
|
alias_method :object_path_yard, :object_path
|
||||||
|
def object_path
|
||||||
|
object_path_yard.gsub('_3A', ':')
|
||||||
|
end
|
||||||
|
end
|
|
@ -6,6 +6,7 @@ module PuppetStrings::Yard
|
||||||
require 'puppet-strings/yard/handlers'
|
require 'puppet-strings/yard/handlers'
|
||||||
require 'puppet-strings/yard/tags'
|
require 'puppet-strings/yard/tags'
|
||||||
require 'puppet-strings/yard/parsers'
|
require 'puppet-strings/yard/parsers'
|
||||||
|
require 'puppet-strings/monkey_patches/display_object_command'
|
||||||
|
|
||||||
# Sets up YARD for use with puppet-strings.
|
# Sets up YARD for use with puppet-strings.
|
||||||
# @return [void]
|
# @return [void]
|
||||||
|
|
Loading…
Reference in New Issue