From dc2301b75f5f964ef9c052fdd2355166b476d643 Mon Sep 17 00:00:00 2001 From: st0012 Date: Sun, 4 Oct 2026 00:16:25 +0100 Subject: [PATCH] Use h2 for default section headings in Aliki --- lib/rdoc/generator/template/aliki/class.rhtml | 12 ++++++++++ test/rdoc/generator/aliki_test.rb | 22 +++++++++++++++++++ 2 files changed, 34 insertions(+) diff --git a/lib/rdoc/generator/template/aliki/class.rhtml b/lib/rdoc/generator/template/aliki/class.rhtml index c6e3164eaa..d402276d78 100644 --- a/lib/rdoc/generator/template/aliki/class.rhtml +++ b/lib/rdoc/generator/template/aliki/class.rhtml @@ -59,7 +59,11 @@ <%- unless constants.empty? %>
+ <%- if section.title %>

Constants

+ <%- else %> +

Constants

+ <%- end %>
<%- constants.each do |const| %> @@ -84,7 +88,11 @@ <%- unless attributes.empty? %>
+ <%- if section.title %>

Attributes

+ <%- else %> +

Attributes

+ <%- end %>
<%- attributes.each do |attrib| %> @@ -122,7 +130,11 @@ <%- next if methods.empty? %>