Skip to content

Commit

Permalink
Make namespace section expandable
Browse files Browse the repository at this point in the history
Collapse the namespace list by default as it can be very large.
  • Loading branch information
p8 committed Apr 20, 2023
1 parent e790f27 commit 809e714
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions lib/rdoc/generator/template/rails/_context.rhtml
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,17 @@

<% unless context.classes_and_modules.empty? %>
<!-- Namespace -->
<div class="sectiontitle">Namespace</div>
<ul>
<% (context.modules.sort + context.classes.sort).each do |mod| %>
<li>
<span class="type"><%= mod.type.upcase %></span>
<a href="<%= context.aref_to mod.path %>"><%= mod.full_name %></a>
</li>
<% end %>
</ul>
<details>
<summary class="sectiontitle">Namespace</summary>
<ul>
<% (context.modules.sort + context.classes.sort).each do |mod| %>
<li>
<span class="type"><%= mod.type.upcase %></span>
<a href="<%= context.aref_to mod.path %>"><%= mod.full_name %></a>
</li>
<% end %>
</ul>
</details>
<% end %>


Expand Down

0 comments on commit 809e714

Please sign in to comment.