lib/rdoc/generator/template/rails/_context.rhtml in sdoc-2.0.4 vs lib/rdoc/generator/template/rails/_context.rhtml in sdoc-2.1.0
- old
+ new
@@ -99,11 +99,11 @@
</div>
<% end %>
<% unless constants.empty? %>
<!-- Section constants -->
- <div class="sectiontitle">Constants</div>
+ <h2 class="sectiontitle">Constants</h2>
<table border='0' cellpadding='5'>
<% constants.each do |const| %>
<tr valign='top'>
<td class="attr-name"><%= h const.name %></td>
<td>=</td>
@@ -120,11 +120,11 @@
<% end %>
<% unless attributes.empty? %>
<!-- Section attributes -->
- <div class="sectiontitle">Attributes</div>
+ <h2 class="sectiontitle">Attributes</h2>
<table border='0' cellpadding='5'>
<% attributes.each do |attrib| %>
<tr valign='top'>
<td class='attr-rw'>
[<%= attrib.rw %>]
@@ -143,20 +143,20 @@
next if visibilities.empty?
visibilities.each do |visibility, methods|
next if methods.empty?
%>
- <div class="sectiontitle"><%= type.capitalize %> <%= visibility.to_s.capitalize %> methods</div>
+ <h2 class="sectiontitle"><%= type.capitalize %> <%= visibility.to_s.capitalize %> methods</h2>
<% methods.each do |method| %>
<div class="method">
- <div class="title method-title" id="<%= method.aref %>">
+ <h3 class="title method-title" id="<%= method.aref %>">
<% if method.call_seq %>
<b><%= method.call_seq.gsub(/->/, '→').gsub(/\n(.)/, '<br />\1') %></b>
<% else %>
<b><%= h method.name %></b><%= h method.params %>
<% end %>
<a href="<%= "#{rel_prefix}/#{context.path}##{method.aref}"%>" name="<%= method.aref %>" class="permalink">Link</a>
- </div>
+ </h3>
<% if method.comment %>
<div class="description">
<%= method.description.strip %>
</div>