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