Sha256: 53a6aae6d59b026024aa2d3e5015051a31cac87758abfaa0ad434cf4d7e251d8

Contents?: true

Size: 646 Bytes

Versions: 1

Compression:

Stored size: 646 Bytes

Contents

require 'yard'

# Template helper to modify processing of links in HTML generated from our
# markdown files.
module LocalLinkHelper
  # Rewrites links to (assumed local) markdown files so they're processed as
  # {file: } directives.
  def resolve_links(text)
    text = text.gsub(%r{<a href="([^"]*.md)">([^<]*)</a>}, '{file:\1 \2}')
    super
  end
end

YARD::Templates::Template.extra_includes << LocalLinkHelper
YARD::Tags::Library.define_tag('Guaranteed public API', :public)
YARD::Tags::Library.define_tag('Code quality configuration', :quality)
YARD::Templates::Engine.register_template_path File.join(File.dirname(__FILE__), 'templates')

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
reek-6.4.0 docs/yard_plugin.rb