From d928e1eec82e6d9ef667ea878cd9c55cdb7e5c47 Mon Sep 17 00:00:00 2001 From: Stan Lo Date: Thu, 15 Aug 2024 11:28:33 +0100 Subject: [PATCH 1/3] 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. --- lib/rdoc/generator/template/darkfish/class.rhtml | 2 ++ lib/rdoc/generator/template/darkfish/page.rhtml | 2 ++ lib/rdoc/generator/template/darkfish/servlet_not_found.rhtml | 2 ++ lib/rdoc/generator/template/darkfish/servlet_root.rhtml | 3 ++- lib/rdoc/generator/template/darkfish/table_of_contents.rhtml | 2 ++ 5 files changed, 10 insertions(+), 1 deletion(-) diff --git a/lib/rdoc/generator/template/darkfish/class.rhtml b/lib/rdoc/generator/template/darkfish/class.rhtml index 915b2f9c9f..9d0d4ebf0b 100644 --- a/lib/rdoc/generator/template/darkfish/class.rhtml +++ b/lib/rdoc/generator/template/darkfish/class.rhtml @@ -16,6 +16,8 @@ <%= render '_sidebar_extends.rhtml' %> <%= render '_sidebar_methods.rhtml' %> + + <%= render '_footer.rhtml' %>
diff --git a/lib/rdoc/generator/template/darkfish/page.rhtml b/lib/rdoc/generator/template/darkfish/page.rhtml index 90b9e4ee3b..daede33777 100644 --- a/lib/rdoc/generator/template/darkfish/page.rhtml +++ b/lib/rdoc/generator/template/darkfish/page.rhtml @@ -12,6 +12,8 @@
<%= render '_sidebar_pages.rhtml' %>
+ + <%= render '_footer.rhtml' %>
diff --git a/lib/rdoc/generator/template/darkfish/servlet_not_found.rhtml b/lib/rdoc/generator/template/darkfish/servlet_not_found.rhtml index b30e64eec5..4b16987e42 100644 --- a/lib/rdoc/generator/template/darkfish/servlet_not_found.rhtml +++ b/lib/rdoc/generator/template/darkfish/servlet_not_found.rhtml @@ -10,6 +10,8 @@ <%= render '_sidebar_pages.rhtml' %> <%= render '_sidebar_classes.rhtml' %> + + <%= render '_footer.rhtml' %>
diff --git a/lib/rdoc/generator/template/darkfish/servlet_root.rhtml b/lib/rdoc/generator/template/darkfish/servlet_root.rhtml index 859ce2930b..373e0006d9 100644 --- a/lib/rdoc/generator/template/darkfish/servlet_root.rhtml +++ b/lib/rdoc/generator/template/darkfish/servlet_root.rhtml @@ -12,7 +12,8 @@ <%= render '_sidebar_search.rhtml' %> -<%= render '_sidebar_installed.rhtml' %> + <%= render '_sidebar_installed.rhtml' %> + <%= render '_footer.rhtml' %>
diff --git a/lib/rdoc/generator/template/darkfish/table_of_contents.rhtml b/lib/rdoc/generator/template/darkfish/table_of_contents.rhtml index 5869873775..2cd2207836 100644 --- a/lib/rdoc/generator/template/darkfish/table_of_contents.rhtml +++ b/lib/rdoc/generator/template/darkfish/table_of_contents.rhtml @@ -7,6 +7,8 @@ <%= render '_sidebar_search.rhtml' %> + + <%= render '_footer.rhtml' %>

<%= h @title %>

From 106bbee1144550b0bf5768d86ade00a9ac76201f Mon Sep 17 00:00:00 2001 From: Stan Lo Date: Thu, 15 Aug 2024 11:46:16 +0100 Subject: [PATCH 2/3] Remove unnecessary middle divs in nav --- lib/rdoc/generator/template/darkfish/class.rhtml | 13 +++++-------- lib/rdoc/generator/template/darkfish/index.rhtml | 7 ++----- lib/rdoc/generator/template/darkfish/page.rhtml | 5 +---- .../template/darkfish/servlet_not_found.rhtml | 13 ++++++------- test/rdoc/test_rdoc_generator_darkfish.rb | 2 +- 5 files changed, 15 insertions(+), 25 deletions(-) diff --git a/lib/rdoc/generator/template/darkfish/class.rhtml b/lib/rdoc/generator/template/darkfish/class.rhtml index 9d0d4ebf0b..6c64ba6c98 100644 --- a/lib/rdoc/generator/template/darkfish/class.rhtml +++ b/lib/rdoc/generator/template/darkfish/class.rhtml @@ -8,14 +8,11 @@ <%= render '_sidebar_table_of_contents.rhtml' %> - -
- <%= render '_sidebar_sections.rhtml' %> - <%= render '_sidebar_parent.rhtml' %> - <%= render '_sidebar_includes.rhtml' %> - <%= render '_sidebar_extends.rhtml' %> - <%= render '_sidebar_methods.rhtml' %> -
+ <%= render '_sidebar_sections.rhtml' %> + <%= render '_sidebar_parent.rhtml' %> + <%= render '_sidebar_includes.rhtml' %> + <%= render '_sidebar_extends.rhtml' %> + <%= render '_sidebar_methods.rhtml' %> <%= render '_footer.rhtml' %> diff --git a/lib/rdoc/generator/template/darkfish/index.rhtml b/lib/rdoc/generator/template/darkfish/index.rhtml index daaa0b5c54..a5c0dd54da 100644 --- a/lib/rdoc/generator/template/darkfish/index.rhtml +++ b/lib/rdoc/generator/template/darkfish/index.rhtml @@ -4,14 +4,11 @@ diff --git a/lib/rdoc/generator/template/darkfish/page.rhtml b/lib/rdoc/generator/template/darkfish/page.rhtml index daede33777..fb33eba6fd 100644 --- a/lib/rdoc/generator/template/darkfish/page.rhtml +++ b/lib/rdoc/generator/template/darkfish/page.rhtml @@ -8,10 +8,7 @@ <%= render '_sidebar_table_of_contents.rhtml' %> - -
- <%= render '_sidebar_pages.rhtml' %> -
+ <%= render '_sidebar_pages.rhtml' %> <%= render '_footer.rhtml' %> diff --git a/lib/rdoc/generator/template/darkfish/servlet_not_found.rhtml b/lib/rdoc/generator/template/darkfish/servlet_not_found.rhtml index 4b16987e42..098b589add 100644 --- a/lib/rdoc/generator/template/darkfish/servlet_not_found.rhtml +++ b/lib/rdoc/generator/template/darkfish/servlet_not_found.rhtml @@ -2,15 +2,14 @@ <%= render '_sidebar_toggle.rhtml' %> diff --git a/test/rdoc/test_rdoc_generator_darkfish.rb b/test/rdoc/test_rdoc_generator_darkfish.rb index 96319bb4f7..899e697de6 100644 --- a/test/rdoc/test_rdoc_generator_darkfish.rb +++ b/test/rdoc/test_rdoc_generator_darkfish.rb @@ -115,7 +115,7 @@ def test_generate assert_match(%r[Klass/Inner\.html".*>Inner<], summary) klass = File.binread('Klass.html') - klassnav = klass[%r[