rdoc-babel 1.4.0 → 1.4.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b6ae764381b167bd89156dc785a2a039b9fe66197e26ab1887b565225279c0de
|
4
|
+
data.tar.gz: 07c955b085e7aa2c195363b40cd0904bcc3a871727f19089d6060546131d9647
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 011f9c6d9f66bbf81ae89064b8de0b4973dd397409ba439a8d6b03a8bad2549db5542e4f1d4c607a9c53c672a3d30dcfe152ebd9a055522bad9f70f10aa54402
|
7
|
+
data.tar.gz: 5aa917b782b26a0e1adc5217168d1eaa16e19d9a447eb664bd5ced9e52f0a3eeff2b12fb83660b61f0af1f8fcf572d8423ba82e74e39ef99cf761bb8441ee8ba
|
data/HISTORY.rdoc
CHANGED
data/lib/rdoc/generator/babel.rb
CHANGED
@@ -20,52 +20,34 @@
|
|
20
20
|
</p>
|
21
21
|
<% if @class.type == 'class' && @class.superclass %>
|
22
22
|
<p class="header-title">
|
23
|
-
<% if
|
24
|
-
<span class="parent"> < <%= @class.superclass %></span>
|
23
|
+
<% if @class.superclass.is_a?(String) %>
|
24
|
+
<span class="parent"> < <%= @class.superclass %></span>
|
25
25
|
<% else %>
|
26
|
-
|
26
|
+
<span class="parent"> < <a href="<%= @class.aref_to @class.superclass.path %>"><%= @class.superclass.full_name %></a></span>
|
27
27
|
<% end %>
|
28
28
|
</p>
|
29
29
|
<% end %>
|
30
30
|
<p id="file-info">
|
31
|
+
<span class="in-files">In:</span>
|
31
32
|
<% if @class.in_files.length < 3 %>
|
32
|
-
<span class="
|
33
|
-
|
34
|
-
<
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
</span>
|
40
|
-
<span class="hidden">
|
41
|
-
<span class="in-files">In:</span>
|
42
|
-
<span class="first-files">
|
43
|
-
<% @class.in_files.each do |f| %>
|
44
|
-
<a href="#"><%= h f.full_name %></a><br>
|
45
|
-
<% end %>
|
46
|
-
</span>
|
33
|
+
<span class="file-list">
|
34
|
+
<% @class.in_files.each do |f| %>
|
35
|
+
<a href="<%= @rel_prefix %>/<%= h f.path %>"><%= h f.full_name %></a><br>
|
36
|
+
<% end %>
|
37
|
+
<% if @class.in_files.length == 1 %>
|
38
|
+
|
39
|
+
<% end %>
|
47
40
|
</span>
|
48
41
|
<% else %>
|
49
|
-
<span class="
|
50
|
-
<
|
51
|
-
<
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
<span class="hidden">
|
57
|
-
<span class="in-files">In:</span>
|
58
|
-
<span class="first-files">
|
59
|
-
<a href="#"><%= h @class.in_files.first.full_name %></a><br>
|
60
|
-
<a href="#" id="show-all-files">(<%= @class.in_files.length - 1 %> more...)</a>
|
42
|
+
<span class="file-list">
|
43
|
+
<a href="<%= @rel_prefix %>/<%= h @class.in_files.first.path %>"><%= h @class.in_files.first.full_name %></a><br>
|
44
|
+
<a href="#" id="show-all-files">(<%= @class.in_files.length - 1 %> more...)</a>
|
45
|
+
<span id="all-files">
|
46
|
+
<% @class.in_files[1..-1].each do |f| %>
|
47
|
+
<a href="<%= @rel_prefix %>/<%= h f.path %>"><%= h f.full_name %></a><br>
|
48
|
+
<% end %>
|
61
49
|
</span>
|
62
50
|
</span>
|
63
|
-
<br>
|
64
|
-
<span id="all-files">
|
65
|
-
<% @class.in_files[1..-1].each do |f| %>
|
66
|
-
<a href="<%= @rel_prefix %>/<%= h f.path %>"><%= h f.full_name %></a><br>
|
67
|
-
<% end %>
|
68
|
-
</span>
|
69
51
|
<% end %>
|
70
52
|
</p>
|
71
53
|
</div>
|
@@ -16,9 +16,7 @@
|
|
16
16
|
<div id="header">
|
17
17
|
<p class="header-title"><span class="prefix">File</span><span class="name"> <%= @file.base_name %></span></p>
|
18
18
|
<p id="file-info">
|
19
|
-
|
20
|
-
Path: <%= @file.absolute_name %>
|
21
|
-
</span>
|
19
|
+
Path: <%= @file.absolute_name %>
|
22
20
|
</p>
|
23
21
|
</div>
|
24
22
|
<div id="documentation">
|
@@ -390,45 +390,25 @@ nav p.h6 { text-indent: 50px; }
|
|
390
390
|
p.header-title
|
391
391
|
span.parent
|
392
392
|
p#file-info
|
393
|
-
span.
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
|
398
|
-
|
399
|
-
|
400
|
-
(same as .displayed, but no #show-all-files id on last a)
|
401
|
-
span#all-files
|
402
|
-
a (link to each file)
|
403
|
-
|
404
|
-
The reason for repeating the spans .displayed & .hidden is to have
|
405
|
-
.displayed to the right, on the same line as the class title if it fits,
|
406
|
-
on the next line otherwise:
|
407
|
-
|
408
|
-
class Object In: object.c
|
409
|
-
|
410
|
-
class VeryLongNameInVeryLongFileName
|
411
|
-
In: very_long_name_in_very_long_filename.rb
|
412
|
-
|
413
|
-
class VeryLongNameInVeryLongFileName < Object
|
414
|
-
In: very_long_name_in_very_long_filename.rb
|
415
|
-
|
416
|
-
class VeryLongNameInVeryLongFileNameAndAlsoASuperclass
|
417
|
-
< Object In: very_long_name_in_very_long_filename.rb
|
418
|
-
|
419
|
-
Because p#file-info has 'white-space: nowrap', .displayed & .hidden
|
420
|
-
are always on the same line.
|
421
|
-
|
393
|
+
span.in-files
|
394
|
+
'In:'
|
395
|
+
span.file-list
|
396
|
+
a (link to 1st files)
|
397
|
+
a#show-all-files # if more than 2 files
|
398
|
+
span#all-files
|
399
|
+
a (link to each file)
|
422
400
|
*/
|
423
401
|
|
424
402
|
#header {
|
425
403
|
padding: 1ex;
|
404
|
+
display: flex;
|
405
|
+
flex-wrap: wrap;
|
406
|
+
align-items: end;
|
426
407
|
}
|
427
408
|
|
428
409
|
#header p {
|
429
410
|
margin: 0;
|
430
411
|
padding: 0;
|
431
|
-
display: inline-block;
|
432
412
|
white-space: nowrap;
|
433
413
|
}
|
434
414
|
|
@@ -451,25 +431,16 @@ nav p.h6 { text-indent: 50px; }
|
|
451
431
|
#header .name { font-size: 170%; }
|
452
432
|
#header .parent { font-size: 130%; }
|
453
433
|
|
454
|
-
#file-info {
|
434
|
+
p#file-info {
|
455
435
|
font-family: var(--fixed-font);
|
456
436
|
font-size: 90%;
|
457
437
|
vertical-align: top;
|
438
|
+
margin-left: auto;
|
458
439
|
}
|
459
|
-
.displayed {
|
460
|
-
position: absolute;
|
461
|
-
right: 1ex;
|
462
|
-
}
|
463
|
-
/* conflict with menu
|
464
|
-
.hidden {
|
465
|
-
visibility: hidden;
|
466
|
-
display: inline-block;
|
467
|
-
}
|
468
|
-
*/
|
469
440
|
.in-files {
|
470
441
|
vertical-align: top;
|
471
442
|
}
|
472
|
-
.
|
443
|
+
.file-list {
|
473
444
|
display: inline-block;
|
474
445
|
}
|
475
446
|
#all-files {
|
@@ -482,7 +453,6 @@ nav p.h6 { text-indent: 50px; }
|
|
482
453
|
overflow-y: auto;
|
483
454
|
display: none;
|
484
455
|
position: absolute;
|
485
|
-
right: 1ex;
|
486
456
|
}
|
487
457
|
#all-files a {
|
488
458
|
color: var(--link-color);
|
@@ -747,7 +717,6 @@ pre.method-source-code {
|
|
747
717
|
-moz-border-radius: 5px;
|
748
718
|
}
|
749
719
|
|
750
|
-
|
751
720
|
/* debugging section */
|
752
721
|
|
753
722
|
#debugging-toggle {
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rdoc-babel
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thierry Lambert
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-08-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rdoc
|
@@ -117,7 +117,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
117
117
|
- !ruby/object:Gem::Version
|
118
118
|
version: '0'
|
119
119
|
requirements: []
|
120
|
-
rubygems_version: 3.5.
|
120
|
+
rubygems_version: 3.5.17
|
121
121
|
signing_key:
|
122
122
|
specification_version: 4
|
123
123
|
summary: An RDoc formatter producing HTML documentation.
|