From 21d198405335c1c97e2253d29326930a1bc3e073 Mon Sep 17 00:00:00 2001 From: Timo Tijhof Date: Wed, 21 Sep 2016 00:44:39 +0100 Subject: [PATCH] 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 --- .jscsrc | 1 - maintenance/jsduck/custom_tags.rb | 17 ----------------- maintenance/jsduck/external.js | 16 ++++++++-------- 3 files changed, 8 insertions(+), 26 deletions(-) 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 */ -- 2.20.1