rdoc-babel 1.0.7 → 1.1.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 +9 -0
- data/lib/rdoc/generator/babel.rb +83 -19
- data/lib/rdoc/generator/ruby-lang/class-page.html.erb +12 -12
- data/lib/rdoc/generator/ruby-lang/file-page.html.erb +7 -7
- data/lib/rdoc/generator/ruby-lang/index.html.erb +5 -5
- data/lib/rdoc/generator/ruby-lang/indexes.html.erb +10 -10
- data/lib/rdoc/generator/ruby-lang/rdoc.css +35 -54
- data/test/test_rdoc_generator_babel.rb +7 -7
- metadata +3 -4
- data/lib/rdoc_babel.rb +0 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e1327fb42125f98ea0570da581237805d4f8b888f0e7539ff2f3852434305742
|
4
|
+
data.tar.gz: 03dc94dc98373a2fc6f8e10f33be216311a570708f80eeadff28a9725db381cb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eaefb9b9fb643aa8af53622b97fc668846ec6dbd90d3f4b2e508a15f41ab9ba807ff5ac475bf9ea1ab798c2179d56d65b9e2dfa334be04fed454d3e6e61a3c83
|
7
|
+
data.tar.gz: 171c83b49f1a3c6ead84ce1abe9b5a6a00da7361a7949f626763783349acae9c81915d26d6e5e2affdb0002493a066c9b1b131625447a5878c09a508f7862423
|
data/HISTORY.rdoc
CHANGED
data/lib/rdoc/generator/babel.rb
CHANGED
@@ -1,12 +1,8 @@
|
|
1
|
-
# require 'rdoc'
|
2
|
-
# require 'rdoc/rdoc'
|
3
|
-
#require 'rdoc/generator'
|
4
1
|
require 'pathname'
|
5
2
|
require 'fileutils'
|
6
3
|
require 'erb'
|
7
4
|
|
8
|
-
#
|
9
|
-
|
5
|
+
# :stopdoc:
|
10
6
|
# remove junk <span> at the end
|
11
7
|
class RDoc::Markup::ToHtml
|
12
8
|
|
@@ -27,6 +23,7 @@ class RDoc::Markup::ToHtml
|
|
27
23
|
end
|
28
24
|
|
29
25
|
end
|
26
|
+
# :startdoc:
|
30
27
|
|
31
28
|
##
|
32
29
|
# Babel RDoc HTML Generator.
|
@@ -36,6 +33,9 @@ class RDoc::Generator::Babel
|
|
36
33
|
|
37
34
|
RDoc::RDoc.add_generator(self)
|
38
35
|
|
36
|
+
VERSION = '1.1.1'
|
37
|
+
DESCRIPTION = 'Alternate HTML documentation'
|
38
|
+
|
39
39
|
include ERB::Util
|
40
40
|
|
41
41
|
# Directory containing babel templates.
|
@@ -73,8 +73,8 @@ class RDoc::Generator::Babel
|
|
73
73
|
:see_standard_ancestors => false,
|
74
74
|
}
|
75
75
|
|
76
|
-
rdoc_options.extend Options
|
77
|
-
rdoc_options.class.include Options # make sure #babel_options will be there on #dup'ed objects
|
76
|
+
rdoc_options.extend Options # 1. extend the existing object
|
77
|
+
rdoc_options.class.include Options # 2. make sure #babel_options will be there on #dup'ed objects
|
78
78
|
rdoc_options.babel_options = options
|
79
79
|
|
80
80
|
opt = rdoc_options.option_parser
|
@@ -169,7 +169,7 @@ class RDoc::Generator::Babel
|
|
169
169
|
|
170
170
|
@all_files = @store.all_files # not sorted: keep command line order
|
171
171
|
@files_with_comment = @all_files.reject { |f| f.comment.empty? }
|
172
|
-
@simple_files = @files_with_comment.select { |f| f.parser == RDoc::Parser::Simple }
|
172
|
+
@simple_files = @files_with_comment.select { |f| f.parser == RDoc::Parser::Simple || f.parser == RDoc::Parser::Markdown }
|
173
173
|
|
174
174
|
@files_to_display =
|
175
175
|
if @unique_classes_and_modules.empty?
|
@@ -324,37 +324,101 @@ class RDoc::Generator::Babel
|
|
324
324
|
|
325
325
|
def decorated_call_seq(method, method_name_class)
|
326
326
|
|
327
|
+
# empty call_seq (RDoc bug)
|
328
|
+
if method.call_seq.strip.empty?
|
329
|
+
warn "call-seq empty: #{method.parent.full_name}#{method.name_prefix}#{method.name}"
|
330
|
+
return ''
|
331
|
+
end
|
332
|
+
|
327
333
|
# I assume it is safe to use \001 \002 \003 \004 to escape & < > "
|
328
334
|
text = method.call_seq.strip.gsub(/->/, "\001rarr;")
|
329
335
|
ospan = "\002span class=\004#{method_name_class}\004\003"
|
330
336
|
cspan = "\002/span\003"
|
331
337
|
|
332
|
-
|
338
|
+
# the "or warn" below fire when the alias is not in the call-seq:
|
339
|
+
# ARGF#inspect: nope 1
|
340
|
+
# Array#size: nope 1
|
341
|
+
# BasicObject#singleton_method_removed: nope 1
|
342
|
+
# BasicObject#singleton_method_undefined: nope 1
|
343
|
+
# Complex#real?: nope 1
|
344
|
+
# Enumerator::ArithmeticSequence#===: nope 3.2
|
345
|
+
# Enumerator::ArithmeticSequence#eql?: nope 1
|
346
|
+
# Enumerator::Lazy#_enumerable_drop: nope 1
|
347
|
+
# Enumerator::Lazy#_enumerable_drop_while: nope 1
|
348
|
+
# Enumerator::Lazy#_enumerable_filter_map: nope 1
|
349
|
+
# Enumerator::Lazy#_enumerable_flat_map: nope 1
|
350
|
+
# Enumerator::Lazy#_enumerable_grep: nope 1
|
351
|
+
# Enumerator::Lazy#_enumerable_grep_v: nope 1
|
352
|
+
# Enumerator::Lazy#_enumerable_map: nope 1
|
353
|
+
# Enumerator::Lazy#_enumerable_reject: nope 1
|
354
|
+
# Enumerator::Lazy#_enumerable_select: nope 1
|
355
|
+
# Enumerator::Lazy#_enumerable_take: nope 1
|
356
|
+
# Enumerator::Lazy#_enumerable_take_while: nope 1
|
357
|
+
# Enumerator::Lazy#_enumerable_uniq: nope 1
|
358
|
+
# Enumerator::Lazy#_enumerable_zip: nope 1
|
359
|
+
# Enumerator::Lazy#_enumerable_with_index: nope 1
|
360
|
+
# FalseClass#inspect: nope 1
|
361
|
+
# Fiber#inspect: nope 1
|
362
|
+
# File::empty?: nope 1
|
363
|
+
# File::Stat#size?: nope 1
|
364
|
+
# FileTest#empty?: nope 1
|
365
|
+
# Float#===: nope 3.2
|
366
|
+
# Float#inspect: nope 1
|
367
|
+
# Hash#initialize_copy: nope 1
|
368
|
+
# Integer#===: nope 3.2
|
369
|
+
# Integer#inspect: nope 1
|
370
|
+
# Method#===: nope 3.2
|
371
|
+
# Module#extended: nope 1
|
372
|
+
# Module#inspect: nope 1
|
373
|
+
# Module#method_added: nope 1
|
374
|
+
# Module#method_removed: nope 1
|
375
|
+
# Module#method_undefined: nope 1
|
376
|
+
# Module#prepended: nope 1
|
377
|
+
# Numeric#%: nope 3.2
|
378
|
+
# Proc#===: nope 3.2
|
379
|
+
# Proc#inspect: nope 1
|
380
|
+
# Process::Sys::getegid: nope 1
|
381
|
+
# String#initialize_copy: nope 1
|
382
|
+
# Struct#deconstruct: nope 1
|
383
|
+
# Symbol#===: nope 3.2
|
384
|
+
# Symbol#next: nope 1
|
385
|
+
# Thread#inspect: nope 1
|
386
|
+
# TrueClass#inspect: nope 1
|
387
|
+
|
388
|
+
if method.name =~ /^\w/
|
333
389
|
# look for things like 'IO.open' or 'open' at the beginning of lines
|
334
390
|
name = Regexp.escape(method.name.sub(/=$/, ''))
|
335
|
-
re =
|
336
|
-
text.gsub!(re, "\\1\\2#{ospan}\\3#{cspan}")
|
391
|
+
re = /^(\s*)([:\w]+\.)?(#{name})/
|
392
|
+
text.gsub!(re, "\\1\\2#{ospan}\\3#{cspan}") #or warn "#{method.parent.full_name}#{method.name_prefix}#{method.name}: nope 1"
|
337
393
|
elsif method.name =~ /\[\]=?/
|
338
394
|
# [] and []=
|
339
|
-
|
340
|
-
|
395
|
+
re = /[\[\]]/
|
396
|
+
sub_hash = { '[' => "#{ospan}[#{cspan}", ']' => "#{ospan}]#{cspan}" }
|
397
|
+
text.gsub!(re, sub_hash) #or warn "#{method.parent.full_name}#{method.name_prefix}#{method.name}: nope 2"
|
341
398
|
else
|
342
399
|
# operators:
|
400
|
+
# +(unary) -(unary) ~ !
|
343
401
|
# **
|
344
|
-
# -(unary) +(unary) ~
|
345
402
|
# * / %
|
346
403
|
# + -
|
347
404
|
# << >>
|
348
405
|
# &
|
349
406
|
# | ^
|
350
407
|
# > >= < <=
|
351
|
-
# <=>
|
352
|
-
|
353
|
-
|
354
|
-
|
408
|
+
# <=> == === =~
|
409
|
+
# != ` !~
|
410
|
+
case method.name
|
411
|
+
# -(unary) +(unary)
|
412
|
+
when '+@', '-@'
|
413
|
+
re = /^(\s*)(#{Regexp.escape(method.name[0])})/
|
414
|
+
text.gsub!(re, "\\1#{ospan}\\2#{cspan}") #or warn "#{method.parent.full_name}#{method.name_prefix}#{method.name}: nope 3.1"
|
415
|
+
else
|
416
|
+
re = /^(.*?)(#{Regexp.escape(method.name)})/
|
417
|
+
text.gsub!(re, "\\1#{ospan}\\2#{cspan}") #or warn "#{method.parent.full_name}#{method.name_prefix}#{method.name}: nope 3.2"
|
418
|
+
end
|
355
419
|
end
|
356
420
|
|
357
|
-
h(text).
|
421
|
+
h(text).tr("\001\002\003\004", '&<>"').gsub("\n", '<br/>')
|
358
422
|
end
|
359
423
|
|
360
424
|
protected
|
@@ -1,11 +1,11 @@
|
|
1
|
-
<!DOCTYPE html
|
2
|
-
<html
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html lang="en">
|
3
3
|
<head>
|
4
|
-
<meta
|
4
|
+
<meta charset="<%= @options.charset %>">
|
5
5
|
<title><%= @class.type.capitalize %> <%= @class.full_name %></title>
|
6
|
-
<link href="<%= @stylesheet_url %>"
|
7
|
-
<script src="<%= @rel_prefix %>/scripts/jquery.js" type="text/javascript"
|
8
|
-
<script src="<%= @rel_prefix %>/scripts/mainFrame.js" type="text/javascript"
|
6
|
+
<link href="<%= @stylesheet_url %>" rel="stylesheet">
|
7
|
+
<script src="<%= @rel_prefix %>/scripts/jquery.js" type="text/javascript"></script>
|
8
|
+
<script src="<%= @rel_prefix %>/scripts/mainFrame.js" type="text/javascript"></script>
|
9
9
|
</head>
|
10
10
|
<body>
|
11
11
|
|
@@ -28,7 +28,7 @@
|
|
28
28
|
<span class="in-files">In:</span>
|
29
29
|
<span class="first-files">
|
30
30
|
<% @class.in_files.each do |f| %>
|
31
|
-
<a href="<%= @rel_prefix %>/<%= h f.path %>"><%= h f.full_name %></a><br
|
31
|
+
<a href="<%= @rel_prefix %>/<%= h f.path %>"><%= h f.full_name %></a><br>
|
32
32
|
<% end %>
|
33
33
|
</span>
|
34
34
|
</span>
|
@@ -36,7 +36,7 @@
|
|
36
36
|
<span class="in-files">In:</span>
|
37
37
|
<span class="first-files">
|
38
38
|
<% @class.in_files.each do |f| %>
|
39
|
-
<a href="#"><%= h f.full_name %></a><br
|
39
|
+
<a href="#"><%= h f.full_name %></a><br>
|
40
40
|
<% end %>
|
41
41
|
</span>
|
42
42
|
</span>
|
@@ -44,21 +44,21 @@
|
|
44
44
|
<span class="displayed">
|
45
45
|
<span class="in-files">In:</span>
|
46
46
|
<span class="first-files">
|
47
|
-
<a href="<%= @rel_prefix %>/<%= h @class.in_files.first.path %>"><%= h @class.in_files.first.full_name %></a><br
|
47
|
+
<a href="<%= @rel_prefix %>/<%= h @class.in_files.first.path %>"><%= h @class.in_files.first.full_name %></a><br>
|
48
48
|
<a href="#" id="show-all-files">(<%= @class.in_files.length - 1 %> more...)</a>
|
49
49
|
</span>
|
50
50
|
</span>
|
51
51
|
<span class="hidden">
|
52
52
|
<span class="in-files">In:</span>
|
53
53
|
<span class="first-files">
|
54
|
-
<a href="#"><%= h @class.in_files.first.full_name %></a><br
|
54
|
+
<a href="#"><%= h @class.in_files.first.full_name %></a><br>
|
55
55
|
<a href="#" id="show-all-files">(<%= @class.in_files.length - 1 %> more...)</a>
|
56
56
|
</span>
|
57
57
|
</span>
|
58
|
-
<br
|
58
|
+
<br>
|
59
59
|
<span id="all-files">
|
60
60
|
<% @class.in_files[1..-1].each do |f| %>
|
61
|
-
<a href="<%= @rel_prefix %>/<%= h f.path %>"><%= h f.full_name %></a><br
|
61
|
+
<a href="<%= @rel_prefix %>/<%= h f.path %>"><%= h f.full_name %></a><br>
|
62
62
|
<% end %>
|
63
63
|
</span>
|
64
64
|
<% end %>
|
@@ -1,18 +1,18 @@
|
|
1
|
-
<!DOCTYPE html
|
2
|
-
<html
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html lang="en">
|
3
3
|
<head>
|
4
|
-
<meta
|
4
|
+
<meta charset="<%= @options.charset %>">
|
5
5
|
<title>File <%= @file.base_name %></title>
|
6
|
-
<link href="<%= @stylesheet_url %>"
|
7
|
-
<script src="<%= @rel_prefix %>/scripts/jquery.js" type="text/javascript"
|
8
|
-
<script src="<%= @rel_prefix %>/scripts/mainFrame.js" type="text/javascript"
|
6
|
+
<link href="<%= @stylesheet_url %>" rel="stylesheet">
|
7
|
+
<script src="<%= @rel_prefix %>/scripts/jquery.js" type="text/javascript"></script>
|
8
|
+
<script src="<%= @rel_prefix %>/scripts/mainFrame.js" type="text/javascript"></script>
|
9
9
|
</head>
|
10
10
|
<body>
|
11
11
|
<div id="header">
|
12
12
|
<p class="header-title"><span class="prefix">File</span><span class="name"> <%= @file.base_name %></span></p>
|
13
13
|
<p id="file-info">
|
14
14
|
<span class="displayed">
|
15
|
-
Path: <%= @file.absolute_name %><br
|
15
|
+
Path: <%= @file.absolute_name %><br>
|
16
16
|
Modified: <%= @file.last_modified ? @file.last_modified.strftime('%Y-%m-%d %H:%M:%S') : 'unknown' %>
|
17
17
|
</span>
|
18
18
|
</p>
|
@@ -1,11 +1,11 @@
|
|
1
|
-
<!DOCTYPE html
|
2
|
-
<html
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html lang="en">
|
3
3
|
<head>
|
4
|
-
<meta
|
4
|
+
<meta charset="<%= @options.charset %>">
|
5
5
|
<title><%= h @options.title %></title>
|
6
6
|
</head>
|
7
7
|
<frameset cols="20%,*">
|
8
|
-
<frame name="indexFrame" src="indexes.html"
|
9
|
-
<frame name="mainFrame" src="<%= @first_page.path %>"
|
8
|
+
<frame name="indexFrame" src="indexes.html">
|
9
|
+
<frame name="mainFrame" src="<%= @first_page.path %>">
|
10
10
|
</frameset>
|
11
11
|
</html>
|
@@ -1,13 +1,13 @@
|
|
1
|
-
<!DOCTYPE html
|
2
|
-
<html
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html lang="en">
|
3
3
|
<head>
|
4
|
-
<meta
|
4
|
+
<meta charset="<%= @options.charset %>">
|
5
5
|
<title>Index of <%= @simple_files.empty? ? '' : 'Files, ' %> Classes & Methods in <%= h @options.title %></title>
|
6
|
-
<link href="<%= @stylesheet_url %>"
|
7
|
-
<script src="scripts/jquery.js" type="text/javascript"
|
8
|
-
<script src="scripts/jquery.quicksearch.js" type="text/javascript"
|
9
|
-
<script src="scripts/indexFrame.js" type="text/javascript"
|
10
|
-
<base target="mainFrame"
|
6
|
+
<link href="<%= @stylesheet_url %>" rel="stylesheet">
|
7
|
+
<script src="scripts/jquery.js" type="text/javascript"></script>
|
8
|
+
<script src="scripts/jquery.quicksearch.js" type="text/javascript"></script>
|
9
|
+
<script src="scripts/indexFrame.js" type="text/javascript"></script>
|
10
|
+
<base target="mainFrame">
|
11
11
|
</head>
|
12
12
|
<body class="index">
|
13
13
|
<% $stderr.sync = true %>
|
@@ -23,7 +23,7 @@
|
|
23
23
|
<% end %>
|
24
24
|
<div id="class-index">
|
25
25
|
<div class="title">
|
26
|
-
<span class="text">Classes </span><input type="text" value="" class="search-field"
|
26
|
+
<span class="text">Classes </span><input type="text" value="" class="search-field">
|
27
27
|
</div>
|
28
28
|
<div class="entries">
|
29
29
|
<% @all_classes_and_modules.each do |k| %>
|
@@ -36,7 +36,7 @@
|
|
36
36
|
|
37
37
|
<div id="method-index">
|
38
38
|
<div class="title">
|
39
|
-
<span class="text">Methods </span><input type="text" value="" class="search-field"
|
39
|
+
<span class="text">Methods </span><input type="text" value="" class="search-field">
|
40
40
|
</div>
|
41
41
|
<div class="entries">
|
42
42
|
<% @all_methods.each do |m| %>
|
@@ -19,7 +19,7 @@ pre, p, h1, h2, h3, h4, h5, h6, ul, ol, dl {
|
|
19
19
|
}
|
20
20
|
|
21
21
|
td {
|
22
|
-
vertical-align:
|
22
|
+
vertical-align: baseline;
|
23
23
|
padding-right: 1ex;
|
24
24
|
}
|
25
25
|
|
@@ -46,8 +46,13 @@ dl.note-list {
|
|
46
46
|
margin-left: 1ex;
|
47
47
|
}
|
48
48
|
dl.note-list dt { grid-column-start: 1; }
|
49
|
-
dl.note-list dd { grid-column-start: 2; }
|
50
|
-
dl.note-list dd p { margin-top: 0;
|
49
|
+
dl.note-list dd { grid-column-start: 2; margin-left: 2ex; }
|
50
|
+
dl.note-list dd p { margin-top: 0; }
|
51
|
+
dl.note-list dd pre {
|
52
|
+
margin-top: 2px;
|
53
|
+
padding-top: 0.5ex;
|
54
|
+
padding-bottom: 0.5ex;
|
55
|
+
}
|
51
56
|
|
52
57
|
table {
|
53
58
|
border-collapse: collapse;
|
@@ -58,10 +63,6 @@ td p {
|
|
58
63
|
margin-top: 0.5ex;
|
59
64
|
}
|
60
65
|
|
61
|
-
table.rdoc-list .rdoc-term {
|
62
|
-
font-weight: bold;
|
63
|
-
}
|
64
|
-
|
65
66
|
hr {
|
66
67
|
margin-top: 1ex;
|
67
68
|
border: 0;
|
@@ -76,7 +77,6 @@ a {
|
|
76
77
|
}
|
77
78
|
|
78
79
|
a:hover {
|
79
|
-
color: #00C;
|
80
80
|
background-color: #ffa; /* pale yellow */
|
81
81
|
padding-bottom: 2px;
|
82
82
|
}
|
@@ -113,10 +113,9 @@ body.index {
|
|
113
113
|
.index .title {
|
114
114
|
padding: 3px 2px 5px 5px; /* TRBL */
|
115
115
|
font-family: Georgia, Palatino, "Times New Roman", Times, serif;
|
116
|
-
font-size: 100%;
|
117
116
|
}
|
118
117
|
.search-field {
|
119
|
-
font-family:
|
118
|
+
font-family: Consolas, Monaco, "Lucida Console", monospace;
|
120
119
|
position: absolute;
|
121
120
|
right: 3px;
|
122
121
|
padding: 0 1px 2px 2px; /* TRBL */
|
@@ -169,60 +168,42 @@ h1, h2, h3, h4, h5, h6 {
|
|
169
168
|
}
|
170
169
|
|
171
170
|
h1, h2, h3 {
|
172
|
-
border-bottom: 1px dotted #ddd;
|
173
|
-
}
|
174
|
-
|
175
|
-
h1 a, h2 a, h3 a {
|
176
|
-
color: red; /* not the best, but no other idea */
|
177
|
-
}
|
178
|
-
|
179
|
-
h1 a:hover, h2 a:hover, h3 a:hover {
|
180
|
-
color: red;
|
181
|
-
}
|
182
|
-
|
183
|
-
h1 {
|
184
171
|
margin-top: 1em;
|
185
172
|
margin-bottom: 1ex;
|
186
|
-
|
173
|
+
border-bottom: 1px solid #ddd;
|
187
174
|
}
|
188
175
|
|
189
|
-
|
190
|
-
margin-top:
|
191
|
-
|
192
|
-
font-size: 150%;
|
176
|
+
h4, h5, h6 {
|
177
|
+
margin-top: 0.75em;
|
178
|
+
border: none;
|
193
179
|
}
|
194
180
|
|
195
|
-
h3 {
|
196
|
-
|
197
|
-
margin-bottom: 1ex;
|
198
|
-
font-size: 120%;
|
199
|
-
font-weight: bold;
|
181
|
+
h1 a, h2 a, h3 a {
|
182
|
+
color: #e62020; /* not the best, but no other idea */
|
200
183
|
}
|
201
184
|
|
185
|
+
h1 { font-size: 230%; }
|
186
|
+
h2 { font-size: 180%; }
|
187
|
+
h3 { font-size: 150%; }
|
188
|
+
h4 { font-size: 120%; }
|
189
|
+
h5 { font-size: 105%; }
|
190
|
+
h6 { font-size: 100%; }
|
191
|
+
|
202
192
|
#documentation > h1:first-child,
|
203
193
|
#documentation > h2:first-child,
|
204
194
|
#documentation > h3:first-child {
|
205
195
|
margin-top: 0;
|
206
196
|
}
|
207
197
|
|
208
|
-
h4, h5, h6 {
|
209
|
-
margin-top: 0.75em;
|
210
|
-
border: none;
|
211
|
-
}
|
212
|
-
|
213
|
-
h4 {
|
214
|
-
font-weight: bold;
|
215
|
-
}
|
216
|
-
|
217
198
|
code {
|
218
|
-
font-family:
|
199
|
+
font-family: Consolas, Monaco, "Lucida Console", monospace;
|
219
200
|
font-size: 100%;
|
220
201
|
}
|
221
202
|
|
222
203
|
pre {
|
223
|
-
font-family:
|
204
|
+
font-family: Consolas, Monaco, "Lucida Console", monospace;
|
224
205
|
padding: 1ex;
|
225
|
-
background-color: #
|
206
|
+
background-color: #f8f8f8; /* very pale grey */
|
226
207
|
}
|
227
208
|
|
228
209
|
#documentation {
|
@@ -288,7 +269,7 @@ pre {
|
|
288
269
|
#header a:hover {
|
289
270
|
color: yellow;
|
290
271
|
background-color: inherit;
|
291
|
-
border-bottom: 1px
|
272
|
+
border-bottom: 1px solid yellow;
|
292
273
|
}
|
293
274
|
|
294
275
|
.header-title {
|
@@ -301,7 +282,7 @@ pre {
|
|
301
282
|
#header .parent { font-size: 130%; }
|
302
283
|
|
303
284
|
#file-info {
|
304
|
-
font-family:
|
285
|
+
font-family: Consolas, Monaco, "Lucida Console", monospace;
|
305
286
|
font-size: 90%;
|
306
287
|
vertical-align: top;
|
307
288
|
}
|
@@ -409,7 +390,7 @@ pre {
|
|
409
390
|
}
|
410
391
|
#method-list li {
|
411
392
|
display: inline-block;
|
412
|
-
font-family:
|
393
|
+
font-family: Consolas, Monaco, "Lucida Console", monospace;
|
413
394
|
font-size: 100%;
|
414
395
|
padding: 2px 0;
|
415
396
|
}
|
@@ -447,10 +428,10 @@ table.classes-modules {
|
|
447
428
|
padding: 0.75ex 0 0 1ex;
|
448
429
|
}
|
449
430
|
.const-name p, .attr-name p {
|
450
|
-
font-family:
|
431
|
+
font-family: Consolas, Monaco, "Lucida Console", monospace;
|
451
432
|
font-size: 100%;
|
452
433
|
font-weight: bold;
|
453
|
-
padding: 0 0.5ex 0 0.2ex;
|
434
|
+
padding: 0.3ex 0.5ex 0 0.2ex; /* top padding to align baselines */
|
454
435
|
}
|
455
436
|
.const-desc p, .attr-desc p {
|
456
437
|
}
|
@@ -461,7 +442,7 @@ table.classes-modules {
|
|
461
442
|
visibility: visible;
|
462
443
|
}
|
463
444
|
.const-value {
|
464
|
-
font-family:
|
445
|
+
font-family: Consolas, Monaco, "Lucida Console", monospace;
|
465
446
|
display: none;
|
466
447
|
}
|
467
448
|
|
@@ -475,7 +456,7 @@ table.classes-modules {
|
|
475
456
|
*/
|
476
457
|
|
477
458
|
.method-detail {
|
478
|
-
border: 1px
|
459
|
+
border: 1px solid #ddd;
|
479
460
|
margin-top: 1em;
|
480
461
|
padding-bottom: 1ex;
|
481
462
|
/* cursor: pointer; */
|
@@ -493,10 +474,10 @@ table.classes-modules {
|
|
493
474
|
|
494
475
|
.method-heading {
|
495
476
|
position: relative;
|
496
|
-
font-family:
|
477
|
+
font-family: Consolas, Monaco, "Lucida Console", monospace;
|
497
478
|
font-size: 105%;
|
498
479
|
padding: 0.5ex 1ex;
|
499
|
-
border-bottom: 1px
|
480
|
+
border-bottom: 1px solid #ddd;
|
500
481
|
background-color: #eee;
|
501
482
|
cursor: pointer;
|
502
483
|
}
|
@@ -577,7 +558,7 @@ pre.method-source-code {
|
|
577
558
|
|
578
559
|
/* requires */
|
579
560
|
#file-details li {
|
580
|
-
font-family:
|
561
|
+
font-family: Consolas, Monaco, "Lucida Console", monospace;
|
581
562
|
}
|
582
563
|
|
583
564
|
/* maybe JS stuff */
|
@@ -167,14 +167,14 @@ class TestRDocGeneratorBabel < Minitest::Test
|
|
167
167
|
check_call_seq '<<', <<-CALL, <<-HTML.strip
|
168
168
|
ios << obj -> ios
|
169
169
|
CALL
|
170
|
-
ios <span class
|
170
|
+
ios <span class="c"><<</span> obj → ios
|
171
171
|
HTML
|
172
172
|
|
173
173
|
check_call_seq 'pos', <<-CALL, <<-HTML.strip.gsub("\n", '')
|
174
174
|
ios.pos -> integer
|
175
175
|
ios.tell -> integer
|
176
176
|
CALL
|
177
|
-
ios.<span class
|
177
|
+
ios.<span class="c">pos</span> → integer<br/>
|
178
178
|
ios.tell → integer
|
179
179
|
HTML
|
180
180
|
|
@@ -182,8 +182,8 @@ class TestRDocGeneratorBabel < Minitest::Test
|
|
182
182
|
ios.readpartial(maxlen) -> string
|
183
183
|
ios.readpartial(maxlen, outbuf) -> outbuf
|
184
184
|
CALL
|
185
|
-
ios.<span class
|
186
|
-
ios.<span class
|
185
|
+
ios.<span class="c">readpartial</span>(maxlen) → string<br/>
|
186
|
+
ios.<span class="c">readpartial</span>(maxlen, outbuf) → outbuf
|
187
187
|
HTML
|
188
188
|
|
189
189
|
check_call_seq '[]', <<-CALL, <<-HTML.strip.gsub("\n", '')
|
@@ -194,9 +194,9 @@ class TestRDocGeneratorBabel < Minitest::Test
|
|
194
194
|
array.slice(start, length) - an_array or nil
|
195
195
|
array.slice(range) - an_array or nil
|
196
196
|
CALL
|
197
|
-
array<span class
|
198
|
-
array<span class
|
199
|
-
array<span class
|
197
|
+
array<span class="c">[</span>index<span class="c">]</span> - obj or nil<br/>
|
198
|
+
array<span class="c">[</span>start, length<span class="c">]</span> - an_array or nil<br/>
|
199
|
+
array<span class="c">[</span>range<span class="c">]</span> - an_array or nil<br/>
|
200
200
|
array.slice(index) - obj or nil<br/>
|
201
201
|
array.slice(start, length) - an_array or nil<br/>
|
202
202
|
array.slice(range) - an_array or nil
|
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
|
+
version: 1.1.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:
|
11
|
+
date: 2022-06-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rdoc
|
@@ -83,7 +83,6 @@ files:
|
|
83
83
|
- lib/rdoc/generator/ruby-lang/scripts/jquery.js
|
84
84
|
- lib/rdoc/generator/ruby-lang/scripts/jquery.quicksearch.js
|
85
85
|
- lib/rdoc/generator/ruby-lang/scripts/mainFrame.js
|
86
|
-
- lib/rdoc_babel.rb
|
87
86
|
- test/data/HISTORY.rdoc
|
88
87
|
- test/data/README.rdoc
|
89
88
|
- test/data/ancestors.rb
|
@@ -117,7 +116,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
117
116
|
- !ruby/object:Gem::Version
|
118
117
|
version: '0'
|
119
118
|
requirements: []
|
120
|
-
rubygems_version: 3.
|
119
|
+
rubygems_version: 3.3.8
|
121
120
|
signing_key:
|
122
121
|
specification_version: 4
|
123
122
|
summary: An RDoc formatter producing HTML documentation.
|
data/lib/rdoc_babel.rb
DELETED