rdoc-babel 1.5.0 → 1.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8459c975be3bbda71642ce8cdb4b02fa2c91d5fed8882ccce54ec67494141ac7
4
- data.tar.gz: cbb23203f2df483db114e6aca6f8127152b91d3341ce1aae6cf3483453021b81
3
+ metadata.gz: 6ae80737f13f1a0c60e44a540d27f66ee883e91c8bc0a5a40f09bc7edbe1d380
4
+ data.tar.gz: d962f2bdc15e62a2f4c5438e00b0ff4dbda17bce472b152c0f17bf3622daa3f1
5
5
  SHA512:
6
- metadata.gz: 51291ffdffe11249f1afba73b1cf2677c8d77067a5c4361ac8dd0115fa898d26ac8f336993fcf902d3b86a7db92fa02987a6744cea5162550f8b04a74b1043be
7
- data.tar.gz: d45166d6a503d87e3e294dd702da9d6fc0baf9042127c77c76b4b61770642468c2dade6394532b2e4f39a70bdfa3e120c45c23ffec1bf9159890dfa54d5ec6d7
6
+ metadata.gz: 04124b697a014c2026f4b0cb6869c6803534fa14f5e499a373735b982254ec6c8c23146109ab371493cf56750496dba4a734ce101e47614ba0bce0ed5dac4013
7
+ data.tar.gz: c39012b02bd7f6c54f7a6f8102b9ee5ef9823ee75a844bea4b36f7364952ffc23ddd9cb6fbf5a6106667d5edea0fb80ed470411bda6ec8f1e3fa58d423080413
data/HISTORY.rdoc CHANGED
@@ -1,6 +1,11 @@
1
+ === 1.5.1
2
+
3
+ * tune the HTML & CSS
4
+ * support RDoc 6.13.1
5
+
1
6
  === 1.5.0
2
7
 
3
- * add support for RDoc section directive for instance methods.
8
+ * add support for RDoc <tt>:section:</tt> directive (instance methods only).
4
9
 
5
10
  === 1.4.2
6
11
 
@@ -23,6 +23,15 @@ class RDoc::Markup::ToHtml
23
23
  end
24
24
 
25
25
  end
26
+
27
+ class RDoc::Alias
28
+ # restore full_old_name (RDoc >= 6.13)
29
+ unless instance_methods.include?(:full_old_name)
30
+ def full_old_name
31
+ @full_name || "#{parent.name}#{pretty_old_name}"
32
+ end
33
+ end
34
+ end
26
35
  # :startdoc:
27
36
 
28
37
  ##
@@ -33,7 +42,7 @@ class RDoc::Generator::Babel
33
42
 
34
43
  RDoc::RDoc.add_generator(self)
35
44
 
36
- VERSION = '1.5.0'
45
+ VERSION = '1.5.1'
37
46
  DESCRIPTION = 'Alternate HTML documentation'
38
47
 
39
48
  include ERB::Util
@@ -82,20 +82,16 @@
82
82
  <% unless @class.instance_methods.empty?
83
83
  section_hash = section_methods_hash(@class.instance_methods)
84
84
  has_sections = section_hash.size > 1 || section_hash.keys.first.title
85
- section_hash.each do |section, methods|
86
- if has_sections %>
87
- <div class="section-methods">
88
- <p class="methods-section"><%= section.title || 'Other' %></p>
89
- <% end %>
85
+ section_hash.each do |section, methods| %>
90
86
  <ul>
87
+ <% if has_sections %>
88
+ <li class="section-title"><%= section.title || 'Other' %></li>
89
+ <% end %>
91
90
  <% methods.sort.each do |m| %>
92
91
  <% litag = m.documented? ? '<li>' : '<li class="nodoc">' %>
93
92
  <%= litag %><a href="#<%= m.aref %>"><span class="type"><%= @options.show_hash ? '#' : '' %></span><%= h m.name %></a></li>
94
93
  <% end %>
95
94
  </ul>
96
- <% if has_sections %>
97
- </div>
98
- <% end %>
99
95
  <% end %>
100
96
  <% end %>
101
97
  </div>
@@ -266,9 +266,11 @@ h4, h5, h6 {
266
266
  border: none;
267
267
  }
268
268
 
269
+ /* links inside headings: keep blue
269
270
  h1 a, h2 a, h3 a {
270
- color: #e62020; /* not the best, but no other idea */
271
+ color: #e62020;
271
272
  }
273
+ */
272
274
 
273
275
  h1 { font-size: 230%; }
274
276
  h2 { font-size: 180%; }
@@ -545,16 +547,10 @@ p#file-info {
545
547
  padding: 0 4px 2px 4px; /* TRBL */
546
548
  }
547
549
  /* when there are sections: */
548
- #method-list .section-methods p.methods-section {
549
- display: inline-block;
550
- margin-top: 0;
551
- margin-left: 1.5ex;
550
+ #method-list li.section-title {
551
+ font-family: var(--default-font);
552
552
  font-size: 9.5pt;
553
- }
554
- #method-list .section-methods ul {
555
- display: inline-block;
556
- margin-top: 0;
557
- margin-left: 1ex;
553
+ margin-right: 1ex;
558
554
  }
559
555
 
560
556
  /* mixed class/module lists */
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rdoc-babel
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.0
4
+ version: 1.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thierry Lambert
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-04-06 00:00:00.000000000 Z
10
+ date: 2025-04-14 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: rdoc