Sha256: 00e0d9c88ee0f11a8c966c9b203ee8ecb0285e54348126fa7d3e4ffe83b0c782

Contents?: true

Size: 420 Bytes

Versions: 37

Compression:

Stored size: 420 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

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
kinetic_sdk-5.0.29 .yardoc-includes/yard-helpers.rb
kinetic_sdk-5.0.28 .yardoc-includes/yard-helpers.rb
kinetic_sdk-5.0.27 .yardoc-includes/yard-helpers.rb
kinetic_sdk-5.0.26 .yardoc-includes/yard-helpers.rb
kinetic_sdk-5.0.25 .yardoc-includes/yard-helpers.rb
kinetic_sdk-5.0.24 .yardoc-includes/yard-helpers.rb
kinetic_sdk-5.0.23 .yardoc-includes/yard-helpers.rb
kinetic_sdk-5.0.22 .yardoc-includes/yard-helpers.rb
kinetic_sdk-5.0.21 .yardoc-includes/yard-helpers.rb
kinetic_sdk-5.0.20 .yardoc-includes/yard-helpers.rb
kinetic_sdk-5.0.19 .yardoc-includes/yard-helpers.rb
kinetic_sdk-5.0.18 .yardoc-includes/yard-helpers.rb
kinetic_sdk-5.0.17 .yardoc-includes/yard-helpers.rb
kinetic_sdk-5.0.16 .yardoc-includes/yard-helpers.rb
kinetic_sdk-5.0.15 .yardoc-includes/yard-helpers.rb
kinetic_sdk-5.0.14 .yardoc-includes/yard-helpers.rb
kinetic_sdk-5.0.13 .yardoc-includes/yard-helpers.rb
kinetic_sdk-5.0.12 .yardoc-includes/yard-helpers.rb
kinetic_sdk-5.0.11 .yardoc-includes/yard-helpers.rb
kinetic_sdk-5.0.10 .yardoc-includes/yard-helpers.rb