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