<%= h @title %>
<% simple_files = @files.select { |f| f.text? } %>
<% unless simple_files.empty? then %>
Pages
<% simple_files.sort.each do |file| %>
-
<%= h file.page_name %>
<%
# HACK table_of_contents should not exist on Document
table = file.parse(file.comment).table_of_contents
unless table.empty? then %>
<% end %>
<% end %>
<% end %>
Classes/Modules
<% @modsort.each do |klass| %>
-
<%= klass.full_name %>
<% table = []
table.concat klass.parse(klass.comment).table_of_contents
table.concat klass.section_contents
unless table.empty? then %>
<% end %>
<% end %>
Methods