From 3908b20a32756986206f86bd0ef19c660cfad5a4 Mon Sep 17 00:00:00 2001 From: zzak Date: Mon, 3 Nov 2025 21:44:56 +0900 Subject: [PATCH 1/2] Remove last_modified from sdoc template Copies ead9de6 for the sdoc template. Note, this template was removed in 3000a97 from main (unstable 3.x branch). --- lib/rdoc/generator/template/sdoc/file.rhtml | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/rdoc/generator/template/sdoc/file.rhtml b/lib/rdoc/generator/template/sdoc/file.rhtml index 674aba05..8889173c 100644 --- a/lib/rdoc/generator/template/sdoc/file.rhtml +++ b/lib/rdoc/generator/template/sdoc/file.rhtml @@ -17,7 +17,6 @@ From 6b38ae57a150b7d85340f658bf36b7d18598a028 Mon Sep 17 00:00:00 2001 From: zzak Date: Sun, 16 Nov 2025 23:28:08 +0900 Subject: [PATCH 2/2] Use constants variable [sdoc template] This code `context.each_section do |section, constants, attributes|` provides the list of contents for us. Originally fixed for [rails template] in f691448. Co-authored-by: Code Ass --- lib/rdoc/generator/template/sdoc/_context.rhtml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rdoc/generator/template/sdoc/_context.rhtml b/lib/rdoc/generator/template/sdoc/_context.rhtml index a54ed277..c74c9c48 100644 --- a/lib/rdoc/generator/template/sdoc/_context.rhtml +++ b/lib/rdoc/generator/template/sdoc/_context.rhtml @@ -103,7 +103,7 @@
Constants
- <% context.each_constant do |const| %> + <% constants.each do |const| %>
<%= h const.name %> =