From d812b3c0b94af6ac227c9798a563fabbf482b2f7 Mon Sep 17 00:00:00 2001 From: Earlopain <14981592+Earlopain@users.noreply.github.com> Date: Sat, 7 Feb 2026 19:41:27 +0100 Subject: [PATCH] Add sections to the TOC They are currently in the left sidebar but they don't make much sense there I believe. Now they are in the TOC with the other headers. If a heading is part of a section, its indentation is incremented by one level. --- .../generator/template/aliki/_icons.rhtml | 53 ------------------- .../template/aliki/_sidebar_sections.rhtml | 21 -------- lib/rdoc/generator/template/aliki/class.rhtml | 3 +- .../generator/template/aliki/css/rdoc.css | 12 ++++- lib/rdoc/generator/template/aliki/js/aliki.js | 17 ++++-- 5 files changed, 24 insertions(+), 82 deletions(-) delete mode 100644 lib/rdoc/generator/template/aliki/_sidebar_sections.rhtml diff --git a/lib/rdoc/generator/template/aliki/_icons.rhtml b/lib/rdoc/generator/template/aliki/_icons.rhtml index 9c11a4a120..1ca4f7e73b 100644 --- a/lib/rdoc/generator/template/aliki/_icons.rhtml +++ b/lib/rdoc/generator/template/aliki/_icons.rhtml @@ -152,57 +152,4 @@ - - - - - - - - - - - - - - - diff --git a/lib/rdoc/generator/template/aliki/_sidebar_sections.rhtml b/lib/rdoc/generator/template/aliki/_sidebar_sections.rhtml deleted file mode 100644 index 9ff56e6f60..0000000000 --- a/lib/rdoc/generator/template/aliki/_sidebar_sections.rhtml +++ /dev/null @@ -1,21 +0,0 @@ -<%- unless klass.sections.length == 1 then %> - -<%- end %> diff --git a/lib/rdoc/generator/template/aliki/class.rhtml b/lib/rdoc/generator/template/aliki/class.rhtml index 7c571bc88b..c7e4a84802 100644 --- a/lib/rdoc/generator/template/aliki/class.rhtml +++ b/lib/rdoc/generator/template/aliki/class.rhtml @@ -5,7 +5,6 @@