Sha256: f9f47358e7ab5d617bb8762852d5216a35b674ee677a2e39e098a175f12c0df2

Contents?: true

Size: 580 Bytes

Versions: 53

Compression:

Stored size: 580 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 text
  end
end

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

Version data entries

53 entries across 53 versions & 1 rubygems

Version Path
reek-4.8.2 docs/yard_plugin.rb
reek-4.8.1 docs/yard_plugin.rb
reek-4.8.0 docs/yard_plugin.rb
reek-4.7.3 docs/yard_plugin.rb
reek-4.7.2 docs/yard_plugin.rb
reek-4.7.1 docs/yard_plugin.rb
reek-4.7.0 docs/yard_plugin.rb
reek-4.6.2 docs/yard_plugin.rb
reek-4.6.1 docs/yard_plugin.rb
reek-4.6.0 docs/yard_plugin.rb
reek-4.5.6 docs/yard_plugin.rb
reek-4.5.5 docs/yard_plugin.rb
reek-4.5.4 docs/yard_plugin.rb
reek-4.5.3 docs/yard_plugin.rb
reek-4.5.2 docs/yard_plugin.rb
reek-4.5.1 docs/yard_plugin.rb
reek-4.5.0 docs/yard_plugin.rb
reek-4.4.2 docs/yard_plugin.rb
reek-4.4.1 docs/yard_plugin.rb
reek-4.4.0 docs/yard_plugin.rb