Sha256: 2bf95a48e72cf58e13ae6378a493b071897e2af46498379a15c39ab471bfbf2e
Contents?: true
Size: 520 Bytes
Versions: 2
Compression:
Stored size: 520 Bytes
Contents
require 'yard' # shamelessly copied from https://github.com/troessner/reek/blob/master/docs/yard_plugin.rb # 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="(docs/[^"]*.md)">([^<]*)</a>}, '{file:/\1 \2}') super text end end YARD::Templates::Template.extra_includes << LocalLinkHelper
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
polyphony-0.99.2 | docs/link_rewriter.rb |
polyphony-0.99.1 | docs/link_rewriter.rb |