in _plugins/links.rb [96:121]
def render_prop(context, text, link)
args = text.split(' ')
type = 'server'
prop = args[0]
if args[0] == '-c'
type = 'client'
prop = args[1]
elsif args[0] == '-s'
type = 'server'
prop = args[1]
end
base = context.environments.first["page"]["docs_baseurl"]
if base.nil?
base = context.registers[:site].config['docs_baseurl']
end
prop_enc = prop.gsub('.\\*', '.*').gsub('.', '_').gsub('_*', '_prefix')
url = "#{base}/configuration/server-properties##{prop_enc}"
if type == 'client'
url = "#{base}/configuration/client-properties##{prop_enc}"
end
if link
return "[#{prop}](#{url})"
end
return url
end