diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2013-12-08 09:55:49 +0100 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2013-12-08 09:55:49 +0100 |
commit | 4ac9fa081a7c045f6a9f1cfc529d82423f485b2e (patch) | |
tree | af68743f2f4a47d13f2b0eb05f5c4aaf86d8ea37 /maintenance/jsduck/MetaTags.rb | |
parent | af4da56f1ad4d3ef7b06557bae365da2ea27a897 (diff) |
Update to MediaWiki 1.22.0
Diffstat (limited to 'maintenance/jsduck/MetaTags.rb')
-rw-r--r-- | maintenance/jsduck/MetaTags.rb | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/maintenance/jsduck/MetaTags.rb b/maintenance/jsduck/MetaTags.rb index 84e40213..83cc0884 100644 --- a/maintenance/jsduck/MetaTags.rb +++ b/maintenance/jsduck/MetaTags.rb @@ -3,6 +3,22 @@ # - https://github.com/senchalabs/jsduck/wiki/Custom-tags require 'jsduck/meta_tag' +class SourceTag < JsDuck::MetaTag + def initialize + # This defines the name of the @tag + @name = 'source' + end + + # Generate HTML output for this tag. + # One can make use of the #format method to easily support + # Markdown and {@link} tags inside the contents of the tag. + # + # @param tags All matches of this tag on one class. + def to_html(tags) + '<h3 class="pa">Source</h3>' + tags.map {|tag| format(tag) }.join("\n") + end +end + class ContextTag < JsDuck::MetaTag def initialize @name = 'context' |