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 +4 -4
- data/HISTORY.rdoc +6 -1
- data/lib/rdoc/generator/babel.rb +10 -1
- data/lib/rdoc/generator/ruby-lang/class-page.html.erb +4 -8
- data/lib/rdoc/generator/ruby-lang/rdoc.css +6 -10
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6ae80737f13f1a0c60e44a540d27f66ee883e91c8bc0a5a40f09bc7edbe1d380
|
4
|
+
data.tar.gz: d962f2bdc15e62a2f4c5438e00b0ff4dbda17bce472b152c0f17bf3622daa3f1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 04124b697a014c2026f4b0cb6869c6803534fa14f5e499a373735b982254ec6c8c23146109ab371493cf56750496dba4a734ce101e47614ba0bce0ed5dac4013
|
7
|
+
data.tar.gz: c39012b02bd7f6c54f7a6f8102b9ee5ef9823ee75a844bea4b36f7364952ffc23ddd9cb6fbf5a6106667d5edea0fb80ed470411bda6ec8f1e3fa58d423080413
|
data/HISTORY.rdoc
CHANGED
data/lib/rdoc/generator/babel.rb
CHANGED
@@ -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.
|
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;
|
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-
|
549
|
-
|
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.
|
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-
|
10
|
+
date: 2025-04-14 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: rdoc
|