X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2Fjsduck%2Fcustom_tags.rb;h=cc8069d4d8622f8bd3a071c74b2bb5e1ec525976;hb=ce079cf6ad79ca8d3360817f809b219d166f9153;hp=39589a06415024da775a1a57854366f3805d988d;hpb=5bc573f7709cdfa609b89cd6790059ec42bfe9fe;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/jsduck/custom_tags.rb b/maintenance/jsduck/custom_tags.rb index 39589a0641..21cb658dac 100644 --- a/maintenance/jsduck/custom_tags.rb +++ b/maintenance/jsduck/custom_tags.rb @@ -1,6 +1,5 @@ # Custom tags for JSDuck 5.x # See also: -# - https://github.com/senchalabs/jsduck/wiki/Tags # - https://github.com/senchalabs/jsduck/wiki/Custom-tags # - https://github.com/senchalabs/jsduck/wiki/Custom-tags/7f5c32e568eab9edc8e3365e935bcb836cb11f1d require 'jsduck/tag/tag' @@ -31,23 +30,6 @@ class CommonTag < JsDuck::Tag::Tag end end -class SourceTag < CommonTag - def initialize - @tagname = :source - @pattern = 'source' - super - end - - def to_html(context) - context[@tagname].map do |source| - <<-EOHTML -

Source

- #{source[:doc]} - EOHTML - end.join - end -end - class SeeTag < CommonTag def initialize @tagname = :see @@ -66,7 +48,7 @@ class SeeTag < CommonTag <<-EOHTML

Related

EOHTML end @@ -102,7 +84,7 @@ class ContextTag < CommonTag def to_html(context) <<-EOHTML

Context

- #{ context[@tagname].last[:doc] } + #{context[@tagname].last[:doc]} EOHTML end