Skip to content

Commit

Permalink
Merge pull request #217 from p8/features/collapsable-namespace-list
Browse files Browse the repository at this point in the history
Collapse namespace section by default
  • Loading branch information
p8 authored Apr 27, 2023
2 parents 6482473 + 809e714 commit 9047b7c
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 9047b7c

Please sign in to comment.