|
40 | 40 |
|
41 | 41 | <%- klass.each_section do |section, constants, attributes| %> |
42 | 42 | <span id="<%= section.legacy_aref %>" class="legacy-anchor"></span> |
43 | | - <section id="<%= section.aref %>" class="documentation-section anchor-link"> |
| 43 | + <section class="documentation-section anchor-link"> |
44 | 44 | <%- if section.title then %> |
45 | 45 | <header class="documentation-section-title"> |
46 | | - <h2> |
| 46 | + <h2 id="<%= section.aref %>"> |
47 | 47 | <a href="#<%= section.aref %>"><%= section.title %></a> |
48 | 48 | </h2> |
49 | 49 | </header> |
|
58 | 58 | <%- unless constants.empty? then %> |
59 | 59 | <section class="constants-list"> |
60 | 60 | <header> |
61 | | - <h3 id="constants"><a href="#constants">Constants</a></h3> |
| 61 | + <h3 id="<%= section.aref %>-constants"><a href="#<%= section.aref %>-constants">Constants</a></h3> |
62 | 62 | </header> |
63 | 63 | <dl> |
64 | 64 | <%- constants.each do |const| %> |
|
83 | 83 | <%- unless attributes.empty? then %> |
84 | 84 | <section class="attribute-method-details method-section"> |
85 | 85 | <header> |
86 | | - <h3 id="attributes"><a href="#attributes">Attributes</a></h3> |
| 86 | + <h3 id="<%= section.aref %>-attributes"><a href="#<%= section.aref %>-attributes">Attributes</a></h3> |
87 | 87 | </header> |
88 | 88 |
|
89 | 89 | <%- attributes.each do |attrib| %> |
|
118 | 118 | <%- next if methods.empty? %> |
119 | 119 | <section id="<%= visibility %>-<%= type %>-<%= section.aref %>-method-details" class="method-section anchor-link"> |
120 | 120 | <header> |
121 | | - <h3 id="<%= visibility %>-<%= type %>-methods"><a href="#<%= visibility %>-<%= type %>-methods"><%= visibility.to_s.capitalize %> <%= type.capitalize %> Methods</a></h3> |
| 121 | + <h3 id="<%= visibility %>-<%= type %>-<%= section.aref %>-methods"><a href="#<%= visibility %>-<%= type %>-<%= section.aref %>-methods"><%= visibility.to_s.capitalize %> <%= type.capitalize %> Methods</a></h3> |
122 | 122 | </header> |
123 | 123 |
|
124 | 124 | <%- methods.each do |method| %> |
|
0 commit comments