PHP 8.2.31
Preview: table_of_contents.rhtml Size: 1.59 KB
//proc/thread-self/root/opt/alt/ruby20/lib64/ruby/2.0.0/rdoc/generator/template/darkfish/table_of_contents.rhtml

<body class="indexpage">
<h1><%= h @title %></h1>

<% simple_files = @files.select { |f| f.text? } %>
<% unless simple_files.empty? then %>
<h2>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 %>
    <img class="toc-toggle" src="images/transparent.png" alt="" title="toggle headings">
    <ul class="initially-hidden">
<% 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/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 %>
    <img class="toc-toggle" src="images/transparent.png" alt="" title="toggle headings">
    <ul class="initially-hidden">
<% 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 %>"><%= method.pretty_name %> &mdash; <%= method.parent.full_name %></a>
  <% end %>
</ul>

Directory Contents

Dirs: 2 × Files: 22

Name Size Perms Modified Actions
images DIR
- drwxr-xr-x 2024-03-03 22:43:41
Edit Download
js DIR
- drwxr-xr-x 2024-03-03 22:43:41
Edit Download
5.90 KB lrw-r--r-- 2012-11-27 04:28:14
Edit Download
500 B lrw-r--r-- 2012-11-27 04:28:14
Edit Download
388 B lrw-r--r-- 2012-11-27 04:28:14
Edit Download
10.12 KB lrw-r--r-- 2012-12-20 03:57:08
Edit Download
371 B lrw-r--r-- 2012-11-27 04:28:14
Edit Download
1.06 KB lrw-r--r-- 2012-11-27 04:28:14
Edit Download
1.59 KB lrw-r--r-- 2012-12-12 05:16:53
Edit Download
346 B lrw-r--r-- 2012-11-27 04:28:14
Edit Download
925 B lrw-r--r-- 2012-11-27 04:28:14
Edit Download
304 B lrw-r--r-- 2012-11-27 04:28:14
Edit Download
486 B lrw-r--r-- 2012-11-27 04:28:14
Edit Download
483 B lrw-r--r-- 2012-11-27 04:28:14
Edit Download
314 B lrw-r--r-- 2012-11-27 04:28:14
Edit Download
190 B lrw-r--r-- 2012-11-27 08:54:03
Edit Download
408 B lrw-r--r-- 2012-11-27 04:28:14
Edit Download
287 B lrw-r--r-- 2012-11-27 04:28:14
Edit Download
356 B lrw-r--r-- 2012-11-27 04:28:14
Edit Download
387 B lrw-r--r-- 2012-11-27 04:28:14
Edit Download
411 B lrw-r--r-- 2012-11-27 04:28:14
Edit Download
317 B lrw-r--r-- 2012-11-27 04:28:14
Edit Download
516 B lrw-r--r-- 2012-12-12 05:16:53
Edit Download
456 B lrw-r--r-- 2012-11-27 04:28:14
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).