From: Timo Tijhof Date: Tue, 20 Sep 2016 23:44:39 +0000 (+0100) Subject: jsduck: Remove custom @source tag X-Git-Tag: 1.31.0-rc.0~5436^2 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/wiki/supprimer.php?a=commitdiff_plain;h=21d198405335c1c97e2253d29326930a1bc3e073;p=lhc%2Fweb%2Fwiklou.git jsduck: Remove custom @source tag Only used in external.js to render a simple link. These methods don't have a regular description and as such the link renders effectively the same way in the same place without `@source`. Change-Id: I83cd524b6b53e67c5c2d18258c804ebd49a29b74 --- diff --git a/.jscsrc b/.jscsrc index f3db218447..3f7e90d209 100644 --- a/.jscsrc +++ b/.jscsrc @@ -10,7 +10,6 @@ "preset": "jsduck5", "extra": { "context": "some", - "source": "some", "see": "some" } }, diff --git a/maintenance/jsduck/custom_tags.rb b/maintenance/jsduck/custom_tags.rb index 33008d1da3..21cb658dac 100644 --- a/maintenance/jsduck/custom_tags.rb +++ b/maintenance/jsduck/custom_tags.rb @@ -30,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 diff --git a/maintenance/jsduck/external.js b/maintenance/jsduck/external.js index c901240785..16131114dc 100644 --- a/maintenance/jsduck/external.js +++ b/maintenance/jsduck/external.js @@ -1,43 +1,43 @@ /** + * Source: * @class jQuery - * @source */ /** + * Source: * @method ajax * @static - * @source * @return {jqXHR} */ /** + * Source: * @class jQuery.Event - * @source */ /** + * Source: * @class jQuery.Callbacks - * @source */ /** + * Source: * @class jQuery.Promise - * @source */ /** + * Source: * @class jQuery.Deferred * @mixins jQuery.Promise - * @source */ /** + * Source: * @class jQuery.jqXHR - * @source * @alternateClassName jqXHR */ /** + * Source: * @class QUnit - * @source */