<%= h @title %>
<%
simple_files = @files.select(&:text?)
unless simple_files.empty?
%>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?
%><%
end
%><%
end
%>
<%
end
%>Classes and Modules
<%
@modsort.each do |klass| %>- <%= klass.full_name %>
<%
table = []
table.concat klass.parse(klass.comment_location).table_of_contents
table.concat klass.section_contents
unless table.empty?
%><%
end
%><%
end
%>
Methods
<%
@store.all_classes_and_modules.map do |mod|
mod.method_list
end.flatten.sort.each do |method|
%>- <%= h method.pretty_name %>
- <%= method.parent.full_name %><%
end
%>