mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 13:04:13 +02:00

(https://github.com/ruby/rdoc/pull/1154)
* Add missing footers
In #1152 the footer partial was only added to the index.rhtml file.
This commit adds the footer partial to the other template files.
* Remove unnecessary middle divs in nav
* Simplify sidebar's overflow settings
Because sidebar needs to be scrollable, its overflow should default to auto.
Currently it's set to hidden and force individual elements to set overflow auto,
which overcomplicates things.
b8c2bcd8db
23 lines
620 B
Text
23 lines
620 B
Text
<body id="top" role="document" class="file">
|
|
<%= render '_sidebar_toggle.rhtml' %>
|
|
|
|
<nav id="navigation" role="navigation">
|
|
<div id="project-navigation">
|
|
<%= render '_sidebar_navigation.rhtml' %>
|
|
<%= render '_sidebar_search.rhtml' %>
|
|
</div>
|
|
|
|
<%= render '_sidebar_pages.rhtml' %>
|
|
<%= render '_sidebar_classes.rhtml' %>
|
|
|
|
<%= render '_footer.rhtml' %>
|
|
</nav>
|
|
|
|
<main role="main">
|
|
<%- if @options.main_page and
|
|
main_page = @files.find { |f| f.full_name == @options.main_page } then %>
|
|
<%= main_page.description %>
|
|
<%- else -%>
|
|
<p>This is the API documentation for <%= h @title %>.
|
|
<%- end -%>
|
|
</main>
|