|
18 | 18 | </nav> |
19 | 19 |
|
20 | 20 | <main role="main" aria-labelledby="<%=h klass.aref %>"> |
21 | | - <h1 id="<%=h klass.aref %>" class="<%= klass.type %>"> |
| 21 | + <h1 id="<%=h klass.aref %>" class="anchor-link <%= klass.type %>"> |
22 | 22 | <%= klass.type %> <%= klass.full_name %> |
23 | 23 | </h1> |
24 | 24 |
|
|
27 | 27 | </section> |
28 | 28 |
|
29 | 29 | <%- klass.each_section do |section, constants, attributes| -%> |
30 | | - <section id="<%= section.aref %>" class="documentation-section"> |
| 30 | + <section id="<%= section.aref %>" class="documentation-section anchor-link"> |
31 | 31 | <%- if section.title then -%> |
32 | 32 | <header class="documentation-section-title"> |
33 | 33 | <h2> |
|
70 | 70 | </header> |
71 | 71 |
|
72 | 72 | <%- attributes.each do |attrib| -%> |
73 | | - <div id="<%= attrib.aref %>" class="method-detail"> |
| 73 | + <div id="<%= attrib.aref %>" class="method-detail anchor-link"> |
74 | 74 | <div class="method-heading attribute-method-heading"> |
75 | 75 | <a href="#<%= attrib.aref %>" title="Link to this attribute"> |
76 | 76 | <span class="method-name"><%= h attrib.name %></span> |
|
94 | 94 | next if visibilities.empty? |
95 | 95 | visibilities.each do |visibility, methods| |
96 | 96 | next if methods.empty? %> |
97 | | - <section id="<%= visibility %>-<%= type %>-<%= section.aref %>-method-details" class="method-section"> |
| 97 | + <section id="<%= visibility %>-<%= type %>-<%= section.aref %>-method-details" class="method-section anchor-link"> |
98 | 98 | <header> |
99 | 99 | <h3><%= visibility.to_s.capitalize %> <%= type.capitalize %> Methods</h3> |
100 | 100 | </header> |
101 | 101 |
|
102 | 102 | <%- methods.each do |method| -%> |
103 | | - <div id="<%= method.aref %>" class="method-detail <%= method.is_alias_for ? "method-alias" : '' %>"> |
| 103 | + <div id="<%= method.aref %>" class="method-detail anchor-link <%= method.is_alias_for ? "method-alias" : '' %>"> |
104 | 104 | <div class="method-header"> |
105 | 105 | <%- if (call_seq = method.call_seq) then -%> |
106 | 106 | <%- call_seq.strip.split("\n").each_with_index do |call_seq, i| -%> |
|
0 commit comments