Commit 7e737c1d authored by Rene Saarsoo's avatar Rene Saarsoo
Browse files

Define more granular ordering of builtin tags.

Add more extensive documentation for Tag#html_position.
parent 41888aa4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -6,7 +6,7 @@ module JsDuck::Tag
    def initialize
      @pattern = "aside"
      @key = :aside
      @html_position = POS_BEFORE_DOC
      @html_position = POS_ASIDE
    end

    # Parses: @aside [ guide | video| example ] name
+1 −1
Original line number Diff line number Diff line
@@ -15,7 +15,7 @@ module JsDuck::Tag
    def initialize
      @key = :default
      @merge_context = [:cfg, :property, :css_var]
      @html_position = POS_AFTER_DOC
      @html_position = POS_DEFAULT
    end

    def merge(h, docs, code)
+1 −1
Original line number Diff line number Diff line
@@ -9,7 +9,7 @@ module JsDuck::Tag
      if @key
        @pattern = @key.to_s
        @signature = {:long => @key.to_s, :short => @key.to_s[0..2].upcase}
        @html_position = POS_AFTER_DOC
        @html_position = POS_DEPRECATED
      end
    end

+1 −1
Original line number Diff line number Diff line
@@ -6,7 +6,7 @@ module JsDuck::Tag
      @pattern = "enum"
      @key = :enum
      @merge_context = :class
      @html_position = POS_AFTER_DOC
      @html_position = POS_ENUM
    end

    # @enum {Type} [name=default] ...
+1 −1
Original line number Diff line number Diff line
@@ -10,7 +10,7 @@ module JsDuck::Tag
  class Overrides < Tag
    def initialize
      @key = :overrides
      @html_position = POS_AFTER_DOC
      @html_position = POS_OVERRIDES
    end

    # Generate HTML links from :overrides data.
Loading