Sha256: 658cdee49d561ffa87c8663c69d3e76c727adc4656fffbac31bbf1dc061db281

Contents?: true

Size: 1.48 KB

Versions: 35

Compression:

Stored size: 1.48 KB

Contents

<body id="top" class="table-of-contents">
<main role="main">
<h1 class="class"><%= h @title %></h1>

<% simple_files = @files.select { |f| f.text? } %>
<% unless simple_files.empty? then %>
<h2 id="pages">Pages</h2>
<ul>
<% simple_files.sort.each do |file| %>
  <li class="file">
    <a href="<%= file.path %>"><%= h file.page_name %></a>
<%
   # HACK table_of_contents should not exist on Document
   table = file.parse(file.comment).table_of_contents
   unless table.empty? then %>
    <ul>
<% table.each do |heading| %>
      <li><a href="<%= file.path %>#<%= heading.aref %>"><%= heading.plain_html %></a>
<%   end %>
    </ul>
<% end %>
  </li>
  <% end %>
</ul>
<% end %>

<h2 id="classes">Classes and Modules</h2>
<ul>
<% @modsort.each do |klass| %>
  <li class="<%= klass.type %>">
    <a href="<%= klass.path %>"><%= klass.full_name %></a>
<% table = []
   table.concat klass.parse(klass.comment_location).table_of_contents
   table.concat klass.section_contents

   unless table.empty? then %>
    <ul>
<% table.each do |item| %>
      <li><a href="<%= klass.path %>#<%= item.aref %>"><%= item.plain_html %></a>
<%   end %>
    </ul>
<% end %>
  </li>
<% end %>
</ul>

<h2 id="methods">Methods</h2>
<ul>
<% @store.all_classes_and_modules.map do |mod|
     mod.method_list
   end.flatten.sort.each do |method| %>
  <li class="method">
    <a href="<%= method.path %>"><%= h method.pretty_name %></a>
    &mdash;
    <span class="container"><%= method.parent.full_name %></span>
<% end %>
</ul>
</main>

Version data entries

35 entries across 35 versions & 3 rubygems

Version Path
rdoc-6.1.2.1 lib/rdoc/generator/template/darkfish/table_of_contents.rhtml
rdoc-6.2.1 lib/rdoc/generator/template/darkfish/table_of_contents.rhtml
rdoc-6.2.0 lib/rdoc/generator/template/darkfish/table_of_contents.rhtml
rdoc-6.1.2 lib/rdoc/generator/template/darkfish/table_of_contents.rhtml
rdoc-6.0.1.1 lib/rdoc/generator/template/darkfish/table_of_contents.rhtml
rdoc-5.0.1 lib/rdoc/generator/template/darkfish/table_of_contents.rhtml
ric-0.13.0 vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/generator/template/darkfish/table_of_contents.rhtml
ric-0.12.2 vendor/bundle/ruby/2.5.0/gems/rdoc-6.1.1/lib/rdoc/generator/template/darkfish/table_of_contents.rhtml
rdoc-6.1.1 lib/rdoc/generator/template/darkfish/table_of_contents.rhtml
rdoc-6.1.0 lib/rdoc/generator/template/darkfish/table_of_contents.rhtml
rdoc-6.1.0.beta3 lib/rdoc/generator/template/darkfish/table_of_contents.rhtml
rdoc-6.1.0.beta2 lib/rdoc/generator/template/darkfish/table_of_contents.rhtml
rdoc-6.1.0.beta1 lib/rdoc/generator/template/darkfish/table_of_contents.rhtml
rdoc-6.0.4 lib/rdoc/generator/template/darkfish/table_of_contents.rhtml
rdoc-6.0.3 lib/rdoc/generator/template/darkfish/table_of_contents.rhtml
rdoc-6.0.2 lib/rdoc/generator/template/darkfish/table_of_contents.rhtml
rdoc-6.0.1 lib/rdoc/generator/template/darkfish/table_of_contents.rhtml
rdoc-6.0.0 lib/rdoc/generator/template/darkfish/table_of_contents.rhtml
rdoc-6.0.0.beta4 lib/rdoc/generator/template/darkfish/table_of_contents.rhtml
rdoc-6.0.0.beta3 lib/rdoc/generator/template/darkfish/table_of_contents.rhtml