rdoc-babel 1.4.0 → 1.4.2

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: 11de5544dfb3dea6db68f549a905deb714ba445bfc02ebff7e2e54f7c4e2cae3
4
- data.tar.gz: 7517f06eafd50bf7107645a47e206ab85ad2d04f743baa76d026c4664ef41ec5
3
+ metadata.gz: 53cc17d95591f5bea0a8af8d5402d76b8dd27b63649ba5d6eb97a4a245d2d4fa
4
+ data.tar.gz: 2da4547f70be3f03c84addfba2169c58d22e0d63772464430c4acc013244e7b5
5
5
  SHA512:
6
- metadata.gz: 9afb98e8a4e926772fc79b43b741222f1d7ceaf960f1f7157b5c4ca78137031d3eaf6f586851e7cfdac2df921850504f5e8414c7a1aca9fae67f7d825b2fa027
7
- data.tar.gz: dbbe9dee9014d525008d60d73ead16f53258125d28712c8ccf2fecf5266e7960707d6c34b71f3c95c684c30c604e91f95d2b4258fe88c8ca9d93056fc89fa18b
6
+ metadata.gz: 848d78b3cc6a7e26f268cbac815fb90b0a9e459c28178debf30209e6bf59b0fed0bc30ab582a7b0df84b997f880d9c603d7d588ae25916c2ee2cd05d4e023116
7
+ data.tar.gz: d4983d175a5ab88b46b7da22de74e11bf59bf4fb036ecc2653bb16ef2a725a4c5fccf543aa1be62ae56b8d21a013fe3429a36eb315d2050e0e7c4eab02d232bf
data/HISTORY.rdoc CHANGED
@@ -1,3 +1,12 @@
1
+ === 1.4.2
2
+
3
+ * import web fonts in the CSS
4
+
5
+ === 1.4.1
6
+
7
+ * remove an extra </span> in class HTML
8
+ * use flex to display the header components
9
+
1
10
  === 1.4.0
2
11
 
3
12
  * add a TOC button on the top right
@@ -33,7 +33,7 @@ class RDoc::Generator::Babel
33
33
 
34
34
  RDoc::RDoc.add_generator(self)
35
35
 
36
- VERSION = '1.4.0'
36
+ VERSION = '1.4.2'
37
37
  DESCRIPTION = 'Alternate HTML documentation'
38
38
 
39
39
  include ERB::Util
@@ -4,7 +4,6 @@
4
4
  <meta charset="<%= @options.charset %>">
5
5
  <title><%= @class.full_name %> &ndash; <%= h @options.title %></title>
6
6
  <link href="<%= @stylesheet_url %>" rel="stylesheet">
7
- <link href="https://fonts.googleapis.com/css?family=Noto+Sans" rel="stylesheet">
8
7
  <script src="<%= @rel_prefix %>/scripts/mainFrame.js" type="text/javascript"></script>
9
8
  </head>
10
9
  <body>
@@ -20,52 +19,34 @@
20
19
  </p>
21
20
  <% if @class.type == 'class' && @class.superclass %>
22
21
  <p class="header-title">
23
- <% if String === @class.superclass %>
24
- <span class="parent"> &lt; <%= @class.superclass %></span>
22
+ <% if @class.superclass.is_a?(String) %>
23
+ <span class="parent"> &nbsp;&lt; <%= @class.superclass %></span>
25
24
  <% else %>
26
- </span><span class="parent"> &lt; <a href="<%= @class.aref_to @class.superclass.path %>"><%= @class.superclass.full_name %></a></span>
25
+ <span class="parent"> &nbsp;&lt; <a href="<%= @class.aref_to @class.superclass.path %>"><%= @class.superclass.full_name %></a></span>
27
26
  <% end %>
28
27
  </p>
29
28
  <% end %>
30
29
  <p id="file-info">
30
+ <span class="in-files">In:</span>
31
31
  <% if @class.in_files.length < 3 %>
32
- <span class="displayed">
33
- <span class="in-files">In:</span>
34
- <span class="first-files">
35
- <% @class.in_files.each do |f| %>
36
- <a href="<%= @rel_prefix %>/<%= h f.path %>"><%= h f.full_name %></a><br>
37
- <% end %>
38
- </span>
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>
32
+ <span class="file-list">
33
+ <% @class.in_files.each do |f| %>
34
+ <a href="<%= @rel_prefix %>/<%= h f.path %>"><%= h f.full_name %></a><br>
35
+ <% end %>
36
+ <% if @class.in_files.length == 1 %>
37
+ &nbsp;
38
+ <% end %>
47
39
  </span>
48
40
  <% else %>
49
- <span class="displayed">
50
- <span class="in-files">In:</span>
51
- <span class="first-files">
52
- <a href="<%= @rel_prefix %>/<%= h @class.in_files.first.path %>"><%= h @class.in_files.first.full_name %></a><br>
53
- <a href="#" id="show-all-files">(<%= @class.in_files.length - 1 %> more...)</a>
54
- </span>
55
- </span>
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>
41
+ <span class="file-list">
42
+ <a href="<%= @rel_prefix %>/<%= h @class.in_files.first.path %>"><%= h @class.in_files.first.full_name %></a><br>
43
+ <a href="#" id="show-all-files">(<%= @class.in_files.length - 1 %> more...)</a>
44
+ <span id="all-files">
45
+ <% @class.in_files[1..-1].each do |f| %>
46
+ <a href="<%= @rel_prefix %>/<%= h f.path %>"><%= h f.full_name %></a><br>
47
+ <% end %>
61
48
  </span>
62
49
  </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
50
  <% end %>
70
51
  </p>
71
52
  </div>
@@ -4,7 +4,6 @@
4
4
  <meta charset="<%= @options.charset %>">
5
5
  <title><%= @file.base_name %> &ndash; <%= h @options.title %></title>
6
6
  <link href="<%= @stylesheet_url %>" rel="stylesheet">
7
- <link href="https://fonts.googleapis.com/css?family=Noto+Sans" rel="stylesheet">
8
7
  <script src="<%= @rel_prefix %>/scripts/mainFrame.js" type="text/javascript"></script>
9
8
  </head>
10
9
  <body>
@@ -16,9 +15,7 @@
16
15
  <div id="header">
17
16
  <p class="header-title"><span class="prefix">File</span><span class="name"> <%= @file.base_name %></span></p>
18
17
  <p id="file-info">
19
- <span class="displayed">
20
- Path: <%= @file.absolute_name %>
21
- </span>
18
+ Path: <%= @file.absolute_name %>
22
19
  </p>
23
20
  </div>
24
21
  <div id="documentation">
@@ -4,7 +4,6 @@
4
4
  <meta charset="<%= @options.charset %>">
5
5
  <title>Index of <%= @simple_files.empty? ? '' : 'Files, ' %> Classes &amp; Methods in <%= h @options.title %></title>
6
6
  <link href="<%= @stylesheet_url %>" rel="stylesheet">
7
- <link href="https://fonts.googleapis.com/css?family=Noto+Sans" rel="stylesheet">
8
7
  <script src="scripts/quicksearch.js" type="text/javascript"></script>
9
8
  <script src="scripts/indexFrame.js" type="text/javascript"></script>
10
9
  <base target="_parent">
@@ -1,3 +1,4 @@
1
+ @import url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100..900;1,100..900&family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');
1
2
 
2
3
  :root {
3
4
  --default-font: "Noto Sans", Verdana, Geneva, Arial, Helvetica, sans-serif;
@@ -390,45 +391,25 @@ nav p.h6 { text-indent: 50px; }
390
391
  p.header-title
391
392
  span.parent
392
393
  p#file-info
393
- span.displayed
394
- span.in-files
395
- 'In:'
396
- span.first-files
397
- a (link to 1st files)
398
- a#show-all-files # if more than 2 files
399
- span.hidden
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
-
394
+ span.in-files
395
+ 'In:'
396
+ span.file-list
397
+ a (link to 1st files)
398
+ a#show-all-files # if more than 2 files
399
+ span#all-files
400
+ a (link to each file)
422
401
  */
423
402
 
424
403
  #header {
425
404
  padding: 1ex;
405
+ display: flex;
406
+ flex-wrap: wrap;
407
+ align-items: end;
426
408
  }
427
409
 
428
410
  #header p {
429
411
  margin: 0;
430
412
  padding: 0;
431
- display: inline-block;
432
413
  white-space: nowrap;
433
414
  }
434
415
 
@@ -451,25 +432,16 @@ nav p.h6 { text-indent: 50px; }
451
432
  #header .name { font-size: 170%; }
452
433
  #header .parent { font-size: 130%; }
453
434
 
454
- #file-info {
435
+ p#file-info {
455
436
  font-family: var(--fixed-font);
456
437
  font-size: 90%;
457
438
  vertical-align: top;
439
+ margin-left: auto;
458
440
  }
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
441
  .in-files {
470
442
  vertical-align: top;
471
443
  }
472
- .first-files {
444
+ .file-list {
473
445
  display: inline-block;
474
446
  }
475
447
  #all-files {
@@ -482,7 +454,6 @@ nav p.h6 { text-indent: 50px; }
482
454
  overflow-y: auto;
483
455
  display: none;
484
456
  position: absolute;
485
- right: 1ex;
486
457
  }
487
458
  #all-files a {
488
459
  color: var(--link-color);
@@ -747,7 +718,6 @@ pre.method-source-code {
747
718
  -moz-border-radius: 5px;
748
719
  }
749
720
 
750
-
751
721
  /* debugging section */
752
722
 
753
723
  #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.0
4
+ version: 1.4.2
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-05-16 00:00:00.000000000 Z
11
+ date: 2024-09-10 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.9
120
+ rubygems_version: 3.5.16
121
121
  signing_key:
122
122
  specification_version: 4
123
123
  summary: An RDoc formatter producing HTML documentation.