Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions lib/rdoc/generator/template/aliki/class.rhtml
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@

<%- klass.each_section do |section, constants, attributes| %>
<span id="<%= section.legacy_aref %>" class="legacy-anchor"></span>
<section id="<%= section.aref %>" class="documentation-section anchor-link">
<section class="documentation-section anchor-link">
<%- if section.title then %>
<header class="documentation-section-title">
<h2>
<h2 id="<%= section.aref %>">
<a href="#<%= section.aref %>"><%= section.title %></a>
</h2>
</header>
Expand All @@ -58,7 +58,7 @@
<%- unless constants.empty? then %>
<section class="constants-list">
<header>
<h3 id="constants"><a href="#constants">Constants</a></h3>
<h3 id="<%= section.aref %>-constants"><a href="#<%= section.aref %>-constants">Constants</a></h3>
</header>
<dl>
<%- constants.each do |const| %>
Expand All @@ -83,7 +83,7 @@
<%- unless attributes.empty? then %>
<section class="attribute-method-details method-section">
<header>
<h3 id="attributes"><a href="#attributes">Attributes</a></h3>
<h3 id="<%= section.aref %>-attributes"><a href="#<%= section.aref %>-attributes">Attributes</a></h3>
</header>

<%- attributes.each do |attrib| %>
Expand Down Expand Up @@ -118,7 +118,7 @@
<%- next if methods.empty? %>
<section id="<%= visibility %>-<%= type %>-<%= section.aref %>-method-details" class="method-section anchor-link">
<header>
<h3 id="<%= visibility %>-<%= type %>-methods"><a href="#<%= visibility %>-<%= type %>-methods"><%= visibility.to_s.capitalize %> <%= type.capitalize %> Methods</a></h3>
<h3 id="<%= visibility %>-<%= type %>-<%= section.aref %>-methods"><a href="#<%= visibility %>-<%= type %>-<%= section.aref %>-methods"><%= visibility.to_s.capitalize %> <%= type.capitalize %> Methods</a></h3>
</header>

<%- methods.each do |method| %>
Expand Down