Sha256: 030d42ca3a023f4bb2567464f5695f04210989a640497e22ab7f039dc732936a

Contents?: true

Size: 651 Bytes

Versions: 20

Compression:

Stored size: 651 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::Tags::Library.define_tag('Code quality configuration', :quality)
YARD::Templates::Engine.register_template_path File.join(File.dirname(__FILE__), 'templates')

Version data entries

20 entries across 18 versions & 2 rubygems

Version Path
reek-6.0.3 docs/yard_plugin.rb
reek-6.0.2 docs/yard_plugin.rb
reek-6.0.1 docs/yard_plugin.rb
reek-6.0.0 docs/yard_plugin.rb
reek-5.6.0 docs/yard_plugin.rb
reek-5.5.0 docs/yard_plugin.rb
reek-5.4.1 docs/yard_plugin.rb
reek-5.4.0 docs/yard_plugin.rb
reek-5.3.2 docs/yard_plugin.rb
reek-5.3.1 docs/yard_plugin.rb
reek-5.3.0 docs/yard_plugin.rb
config_gems_initialization_aim-0.1.4 vendor/bundle/ruby/2.5.0/gems/reek-5.2.0/docs/yard_plugin.rb
config_gems_initialization_aim-0.1.4 vendor/bundle/ruby/2.5.0/gems/config_gems_initialization_aim-0.1.1/vendor/bundle/ruby/2.5.0/gems/reek-5.2.0/docs/yard_plugin.rb
config_gems_initialization_aim-0.1.3 vendor/bundle/ruby/2.5.0/gems/config_gems_initialization_aim-0.1.1/vendor/bundle/ruby/2.5.0/gems/reek-5.2.0/docs/yard_plugin.rb
config_gems_initialization_aim-0.1.3 vendor/bundle/ruby/2.5.0/gems/reek-5.2.0/docs/yard_plugin.rb
reek-5.2.0 docs/yard_plugin.rb
reek-5.1.0 docs/yard_plugin.rb
reek-5.0.2 docs/yard_plugin.rb
reek-5.0.1 docs/yard_plugin.rb
reek-5.0.0 docs/yard_plugin.rb