rdoc 4.0.1 → 4.1.0.preview.3
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of rdoc might be problematic. Click here for more details.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/.autotest +1 -3
- data/{DEVELOPERS.rdoc → CONTRIBUTING.rdoc} +28 -3
- data/ExampleMarkdown.md +37 -0
- data/ExampleRDoc.rdoc +208 -0
- data/History.rdoc +81 -0
- data/Manifest.txt +11 -2
- data/README.rdoc +5 -5
- data/Rakefile +34 -4
- data/lib/rdoc.rb +4 -3
- data/lib/rdoc/any_method.rb +48 -4
- data/lib/rdoc/class_module.rb +16 -2
- data/lib/rdoc/code_object.rb +85 -24
- data/lib/rdoc/comment.rb +0 -3
- data/lib/rdoc/constant.rb +9 -1
- data/lib/rdoc/context.rb +20 -2
- data/lib/rdoc/cross_reference.rb +1 -1
- data/lib/rdoc/extend.rb +4 -112
- data/lib/rdoc/generator/darkfish.rb +46 -7
- data/lib/rdoc/generator/template/darkfish/_footer.rhtml +4 -4
- data/lib/rdoc/generator/template/darkfish/_head.rhtml +14 -8
- data/lib/rdoc/generator/template/darkfish/_sidebar_VCS_info.rhtml +4 -3
- data/lib/rdoc/generator/template/darkfish/_sidebar_classes.rhtml +3 -3
- data/lib/rdoc/generator/template/darkfish/_sidebar_extends.rhtml +3 -4
- data/lib/rdoc/generator/template/darkfish/_sidebar_in_files.rhtml +4 -3
- data/lib/rdoc/generator/template/darkfish/_sidebar_includes.rhtml +3 -4
- data/lib/rdoc/generator/template/darkfish/_sidebar_installed.rhtml +3 -3
- data/lib/rdoc/generator/template/darkfish/_sidebar_methods.rhtml +4 -4
- data/lib/rdoc/generator/template/darkfish/_sidebar_navigation.rhtml +9 -5
- data/lib/rdoc/generator/template/darkfish/_sidebar_pages.rhtml +5 -5
- data/lib/rdoc/generator/template/darkfish/_sidebar_parent.rhtml +4 -3
- data/lib/rdoc/generator/template/darkfish/_sidebar_search.rhtml +12 -7
- data/lib/rdoc/generator/template/darkfish/_sidebar_sections.rhtml +5 -4
- data/lib/rdoc/generator/template/darkfish/_sidebar_table_of_contents.rhtml +6 -7
- data/lib/rdoc/generator/template/darkfish/class.rhtml +36 -41
- data/lib/rdoc/generator/template/darkfish/fonts.css +167 -0
- data/lib/rdoc/generator/template/darkfish/fonts/Lato-Light.ttf +0 -0
- data/lib/rdoc/generator/template/darkfish/fonts/Lato-LightItalic.ttf +0 -0
- data/lib/rdoc/generator/template/darkfish/fonts/Lato-Regular.ttf +0 -0
- data/lib/rdoc/generator/template/darkfish/fonts/Lato-RegularItalic.ttf +0 -0
- data/lib/rdoc/generator/template/darkfish/fonts/SourceCodePro-Bold.ttf +0 -0
- data/lib/rdoc/generator/template/darkfish/fonts/SourceCodePro-Regular.ttf +0 -0
- data/lib/rdoc/generator/template/darkfish/images/add.png +0 -0
- data/lib/rdoc/generator/template/darkfish/images/arrow_up.png +0 -0
- data/lib/rdoc/generator/template/darkfish/images/delete.png +0 -0
- data/lib/rdoc/generator/template/darkfish/images/tag_blue.png +0 -0
- data/lib/rdoc/generator/template/darkfish/index.rhtml +11 -7
- data/lib/rdoc/generator/template/darkfish/js/darkfish.js +0 -15
- data/lib/rdoc/generator/template/darkfish/js/search.js +12 -4
- data/lib/rdoc/generator/template/darkfish/page.rhtml +9 -9
- data/lib/rdoc/generator/template/darkfish/rdoc.css +226 -241
- data/lib/rdoc/generator/template/darkfish/servlet_not_found.rhtml +5 -5
- data/lib/rdoc/generator/template/darkfish/servlet_root.rhtml +13 -6
- data/lib/rdoc/generator/template/darkfish/table_of_contents.rhtml +17 -14
- data/lib/rdoc/include.rb +4 -114
- data/lib/rdoc/known_classes.rb +1 -0
- data/lib/rdoc/markdown.kpeg +126 -117
- data/lib/rdoc/markdown.rb +404 -389
- data/lib/rdoc/markdown/literals_1_8.kpeg +1 -1
- data/lib/rdoc/markdown/literals_1_8.rb +15 -12
- data/lib/rdoc/markdown/literals_1_9.kpeg +1 -1
- data/lib/rdoc/markdown/literals_1_9.rb +15 -12
- data/lib/rdoc/markup.rb +10 -13
- data/lib/rdoc/markup/attribute_manager.rb +3 -2
- data/lib/rdoc/markup/formatter.rb +3 -3
- data/lib/rdoc/markup/heading.rb +13 -0
- data/lib/rdoc/markup/parser.rb +10 -3
- data/lib/rdoc/markup/pre_process.rb +1 -1
- data/lib/rdoc/markup/to_html.rb +46 -31
- data/lib/rdoc/markup/to_html_crossref.rb +3 -0
- data/lib/rdoc/markup/to_joined_paragraph.rb +1 -1
- data/lib/rdoc/markup/to_markdown.rb +7 -5
- data/lib/rdoc/markup/verbatim.rb +1 -1
- data/lib/rdoc/method_attr.rb +13 -1
- data/lib/rdoc/mixin.rb +120 -0
- data/lib/rdoc/normal_class.rb +4 -0
- data/lib/rdoc/normal_module.rb +4 -0
- data/lib/rdoc/options.rb +42 -8
- data/lib/rdoc/parser.rb +4 -2
- data/lib/rdoc/parser/c.rb +13 -7
- data/lib/rdoc/parser/ruby.rb +683 -480
- data/lib/rdoc/rdoc.rb +4 -3
- data/lib/rdoc/ri/driver.rb +174 -103
- data/lib/rdoc/ri/paths.rb +6 -6
- data/lib/rdoc/ruby_lex.rb +125 -102
- data/lib/rdoc/ruby_token.rb +41 -40
- data/lib/rdoc/servlet.rb +16 -6
- data/lib/rdoc/stats.rb +61 -48
- data/lib/rdoc/store.rb +5 -3
- data/lib/rdoc/test_case.rb +39 -0
- data/lib/rdoc/tom_doc.rb +28 -4
- data/lib/rdoc/top_level.rb +2 -2
- data/test/test_rdoc_any_method.rb +104 -1
- data/test/test_rdoc_class_module.rb +9 -15
- data/test/test_rdoc_code_object.rb +133 -8
- data/test/test_rdoc_context.rb +17 -0
- data/test/test_rdoc_context_section.rb +0 -7
- data/test/test_rdoc_cross_reference.rb +4 -3
- data/test/test_rdoc_generator_darkfish.rb +61 -19
- data/test/test_rdoc_generator_json_index.rb +0 -11
- data/test/test_rdoc_generator_ri.rb +0 -8
- data/test/test_rdoc_markdown.rb +15 -12
- data/test/test_rdoc_markdown_test.rb +0 -7
- data/test/test_rdoc_markup_attribute_manager.rb +121 -0
- data/test/test_rdoc_markup_document.rb +0 -7
- data/test/test_rdoc_markup_formatter.rb +29 -3
- data/test/test_rdoc_markup_heading.rb +9 -0
- data/test/test_rdoc_markup_parser.rb +0 -7
- data/test/test_rdoc_markup_pre_process.rb +15 -3
- data/test/test_rdoc_markup_raw.rb +0 -7
- data/test/test_rdoc_markup_to_html.rb +50 -8
- data/test/test_rdoc_markup_to_html_crossref.rb +7 -0
- data/test/test_rdoc_markup_to_html_snippet.rb +4 -4
- data/test/test_rdoc_markup_to_markdown.rb +6 -0
- data/test/test_rdoc_method_attr.rb +8 -0
- data/test/test_rdoc_normal_class.rb +5 -0
- data/test/test_rdoc_normal_module.rb +5 -0
- data/test/test_rdoc_options.rb +61 -22
- data/test/test_rdoc_parser.rb +10 -0
- data/test/test_rdoc_parser_c.rb +17 -5
- data/test/test_rdoc_parser_changelog.rb +0 -7
- data/test/test_rdoc_parser_rd.rb +0 -7
- data/test/test_rdoc_parser_ruby.rb +305 -28
- data/test/test_rdoc_rd_block_parser.rb +0 -8
- data/test/test_rdoc_rd_inline_parser.rb +0 -1
- data/test/test_rdoc_rdoc.rb +27 -1
- data/test/test_rdoc_ri_driver.rb +19 -7
- data/test/test_rdoc_ruby_lex.rb +116 -9
- data/test/test_rdoc_rubygems_hook.rb +1 -1
- data/test/test_rdoc_servlet.rb +44 -6
- data/test/test_rdoc_stats.rb +161 -141
- data/test/test_rdoc_store.rb +11 -19
- data/test/test_rdoc_text.rb +0 -7
- data/test/test_rdoc_tom_doc.rb +44 -16
- data/test/xref_test_case.rb +2 -0
- metadata +28 -27
- metadata.gz.sig +0 -0
- data/test/test_attribute_manager.rb +0 -120
@@ -52,20 +52,6 @@ function hookDebuggingToggle() {
|
|
52
52
|
$('#debugging-toggle img').click( toggleDebuggingSection );
|
53
53
|
};
|
54
54
|
|
55
|
-
function hookTableOfContentsToggle() {
|
56
|
-
$('.indexpage li .toc-toggle').each( function() {
|
57
|
-
$(this).click( function() {
|
58
|
-
$(this).toggleClass('open');
|
59
|
-
});
|
60
|
-
|
61
|
-
var section = $(this).next();
|
62
|
-
|
63
|
-
$(this).click( function() {
|
64
|
-
section.slideToggle();
|
65
|
-
});
|
66
|
-
});
|
67
|
-
}
|
68
|
-
|
69
55
|
function hookSearch() {
|
70
56
|
var input = $('#search-field').eq(0);
|
71
57
|
var result = $('#search-results').eq(0);
|
@@ -149,7 +135,6 @@ $(document).ready( function() {
|
|
149
135
|
hookDebuggingToggle();
|
150
136
|
hookSearch();
|
151
137
|
highlightLocationTarget();
|
152
|
-
hookTableOfContentsToggle();
|
153
138
|
|
154
139
|
$('ul.link-list a').bind( "click", highlightClickTarget );
|
155
140
|
});
|
@@ -39,9 +39,12 @@ Search.prototype = $.extend({}, Navigation, new function() {
|
|
39
39
|
if (value == '') {
|
40
40
|
this.lastQuery = value;
|
41
41
|
this.$result.empty();
|
42
|
+
this.$result.attr('aria-expanded', 'false');
|
42
43
|
this.setNavigationActive(false);
|
43
44
|
} else if (value != this.lastQuery) {
|
44
45
|
this.lastQuery = value;
|
46
|
+
this.$result.attr('aria-busy', 'true');
|
47
|
+
this.$result.attr('aria-expanded', 'true');
|
45
48
|
this.firstRun = true;
|
46
49
|
this.searcher.find(value);
|
47
50
|
}
|
@@ -55,23 +58,28 @@ Search.prototype = $.extend({}, Navigation, new function() {
|
|
55
58
|
}
|
56
59
|
|
57
60
|
for (var i=0, l = results.length; i < l; i++) {
|
58
|
-
|
61
|
+
var item = this.renderItem.call(this, results[i]);
|
62
|
+
item.setAttribute('id', 'search-result-' + target.childElementCount);
|
63
|
+
target.appendChild(item);
|
59
64
|
};
|
60
65
|
|
61
66
|
if (this.firstRun && results.length > 0) {
|
62
67
|
this.firstRun = false;
|
63
68
|
this.$current = $(target.firstChild);
|
64
|
-
this.$current.addClass('
|
69
|
+
this.$current.addClass('search-selected');
|
65
70
|
}
|
66
71
|
if (jQuery.browser.msie) this.$element[0].className += '';
|
72
|
+
|
73
|
+
if (isLast) this.$result.attr('aria-busy', 'false');
|
67
74
|
}
|
68
75
|
|
69
76
|
this.move = function(isDown) {
|
70
77
|
if (!this.$current) return;
|
71
78
|
var $next = this.$current[isDown ? 'next' : 'prev']();
|
72
79
|
if ($next.length) {
|
73
|
-
this.$current.removeClass('
|
74
|
-
$next.addClass('
|
80
|
+
this.$current.removeClass('search-selected');
|
81
|
+
$next.addClass('search-selected');
|
82
|
+
this.$input.attr('aria-activedescendant', $next.attr('id'));
|
75
83
|
this.scrollIntoView($next[0], this.$view[0]);
|
76
84
|
this.$current = $next;
|
77
85
|
}
|
@@ -1,18 +1,18 @@
|
|
1
|
-
<body class="file">
|
2
|
-
<nav
|
3
|
-
|
4
|
-
|
5
|
-
|
1
|
+
<body id="top" role="document" class="file">
|
2
|
+
<nav role="navigation">
|
3
|
+
<div id="project-navigation">
|
4
|
+
<%= render '_sidebar_navigation.rhtml' %>
|
5
|
+
<%= render '_sidebar_search.rhtml' %>
|
6
|
+
</div>
|
6
7
|
|
7
8
|
<%= render '_sidebar_table_of_contents.rhtml' %>
|
8
9
|
|
9
10
|
<div id="project-metadata">
|
10
11
|
<%= render '_sidebar_pages.rhtml' %>
|
11
|
-
<%= render '_sidebar_classes.rhtml' %>
|
12
12
|
</div>
|
13
13
|
</nav>
|
14
14
|
|
15
|
-
<
|
16
|
-
|
17
|
-
</
|
15
|
+
<main role="main" aria-label="Page <%=h file.full_name%>">
|
16
|
+
<%= file.description %>
|
17
|
+
</main>
|
18
18
|
|
@@ -12,21 +12,10 @@
|
|
12
12
|
* { padding: 0; margin: 0; }
|
13
13
|
|
14
14
|
body {
|
15
|
-
background: #
|
16
|
-
font:
|
17
|
-
|
15
|
+
background: #fafafa;
|
16
|
+
font-family: Lato, sans-serif;
|
17
|
+
font-weight: 300;
|
18
18
|
}
|
19
|
-
body.file-popup {
|
20
|
-
font-size: 90%;
|
21
|
-
margin-left: 0;
|
22
|
-
}
|
23
|
-
|
24
|
-
h1 {
|
25
|
-
font-size: 300%;
|
26
|
-
text-shadow: rgba(135,145,135,0.65) 2px 2px 3px;
|
27
|
-
color: #6C8C22;
|
28
|
-
}
|
29
|
-
h2,h3,h4 { margin-top: 1.5em; }
|
30
19
|
|
31
20
|
h1 span,
|
32
21
|
h2 span,
|
@@ -36,7 +25,7 @@ h5 span,
|
|
36
25
|
h6 span {
|
37
26
|
display: none;
|
38
27
|
padding-left: 1em;
|
39
|
-
font-size:
|
28
|
+
font-size: 10px;
|
40
29
|
vertical-align: super;
|
41
30
|
}
|
42
31
|
|
@@ -54,24 +43,15 @@ h6:hover span {
|
|
54
43
|
color: #6C8C22;
|
55
44
|
text-decoration: none;
|
56
45
|
}
|
46
|
+
|
57
47
|
:link:hover,
|
58
48
|
:visited:hover {
|
59
49
|
border-bottom: 1px dotted #6C8C22;
|
60
50
|
}
|
61
51
|
|
52
|
+
code,
|
62
53
|
pre {
|
63
|
-
|
64
|
-
padding: 0.5em 0;
|
65
|
-
}
|
66
|
-
|
67
|
-
blockquote {
|
68
|
-
background: #ddd;
|
69
|
-
margin: 1em;
|
70
|
-
padding: 0.25em;
|
71
|
-
}
|
72
|
-
|
73
|
-
blockquote > :first-child {
|
74
|
-
margin-top: 0 !important;
|
54
|
+
font-family: "Source Code Pro", Monaco, monospace;
|
75
55
|
}
|
76
56
|
|
77
57
|
/* @group Generic Classes */
|
@@ -82,10 +62,13 @@ blockquote > :first-child {
|
|
82
62
|
|
83
63
|
#search-field {
|
84
64
|
width: 98%;
|
85
|
-
background:
|
65
|
+
background: white;
|
86
66
|
border: none;
|
87
67
|
height: 1.5em;
|
88
68
|
-webkit-border-radius: 4px;
|
69
|
+
-moz-border-radius: 4px;
|
70
|
+
border-radius: 4px;
|
71
|
+
text-align: left;
|
89
72
|
}
|
90
73
|
#search-field:focus {
|
91
74
|
background: #f1edba;
|
@@ -121,44 +104,31 @@ blockquote > :first-child {
|
|
121
104
|
/* @end */
|
122
105
|
|
123
106
|
/* @group Index Page, Standalone file pages */
|
124
|
-
.
|
125
|
-
|
107
|
+
.table-of-contents ul {
|
108
|
+
margin: 1em;
|
126
109
|
list-style: none;
|
127
110
|
}
|
128
|
-
.indexpage ul :link,
|
129
|
-
.indexpage ul :visited {
|
130
|
-
font-size: 16px;
|
131
|
-
}
|
132
111
|
|
133
|
-
.
|
134
|
-
|
112
|
+
.table-of-contents ul ul {
|
113
|
+
margin-top: 0.25em;
|
135
114
|
}
|
136
115
|
|
137
|
-
.
|
138
|
-
|
139
|
-
|
140
|
-
.indexpage li.method {
|
141
|
-
background: url(images/plugin.png) no-repeat left 4px;
|
142
|
-
}
|
143
|
-
.indexpage li.module {
|
144
|
-
background: url(images/package.png) no-repeat left 4px;
|
145
|
-
}
|
146
|
-
.indexpage li.class {
|
147
|
-
background: url(images/ruby.png) no-repeat left 4px;
|
148
|
-
}
|
149
|
-
.indexpage li.file {
|
150
|
-
background: url(images/page_white_text.png) no-repeat left 4px;
|
116
|
+
.table-of-contents ul :link,
|
117
|
+
.table-of-contents ul :visited {
|
118
|
+
font-size: 16px;
|
151
119
|
}
|
152
|
-
|
153
|
-
|
120
|
+
|
121
|
+
.table-of-contents li {
|
122
|
+
margin-bottom: 0.25em;
|
154
123
|
}
|
155
|
-
|
124
|
+
|
125
|
+
.table-of-contents li .toc-toggle {
|
156
126
|
width: 16px;
|
157
127
|
height: 16px;
|
158
128
|
background: url(images/add.png) no-repeat;
|
159
129
|
}
|
160
130
|
|
161
|
-
.
|
131
|
+
.table-of-contents li .toc-toggle.open {
|
162
132
|
background: url(images/delete.png) no-repeat;
|
163
133
|
}
|
164
134
|
|
@@ -166,14 +136,32 @@ blockquote > :first-child {
|
|
166
136
|
|
167
137
|
/* @group Top-Level Structure */
|
168
138
|
|
169
|
-
|
139
|
+
nav {
|
170
140
|
float: left;
|
171
141
|
width: 260px;
|
142
|
+
font-family: Helvetica, sans-serif;
|
143
|
+
font-size: 14px;
|
172
144
|
}
|
173
145
|
|
174
|
-
|
175
|
-
|
146
|
+
main {
|
147
|
+
display: block;
|
148
|
+
margin: 0 2em 5em 260px;
|
149
|
+
padding-left: 20px;
|
176
150
|
min-width: 340px;
|
151
|
+
font-size: 16px;
|
152
|
+
}
|
153
|
+
|
154
|
+
main h1,
|
155
|
+
main h2,
|
156
|
+
main h3,
|
157
|
+
main h4,
|
158
|
+
main h5,
|
159
|
+
main h6 {
|
160
|
+
font-family: Helvetica, sans-serif;
|
161
|
+
}
|
162
|
+
|
163
|
+
.table-of-contents main {
|
164
|
+
margin-left: 2em;
|
177
165
|
}
|
178
166
|
|
179
167
|
#validator-badges {
|
@@ -184,67 +172,74 @@ blockquote > :first-child {
|
|
184
172
|
|
185
173
|
/* @end */
|
186
174
|
|
187
|
-
/* @group
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
margin:
|
175
|
+
/* @group navigation */
|
176
|
+
nav {
|
177
|
+
margin-bottom: 1em;
|
178
|
+
}
|
179
|
+
|
180
|
+
nav .nav-section {
|
181
|
+
margin-top: 2em;
|
182
|
+
border-top: 2px solid #aaa;
|
194
183
|
font-size: 90%;
|
195
184
|
overflow: hidden;
|
196
185
|
}
|
197
|
-
|
186
|
+
|
187
|
+
nav h2 {
|
198
188
|
margin: 0;
|
199
|
-
padding: 2px 8px;
|
200
|
-
background: #
|
201
|
-
color: #
|
202
|
-
-
|
203
|
-
-
|
204
|
-
-webkit-border-top-left-radius: 4px;
|
205
|
-
-webkit-border-top-right-radius: 4px;
|
206
|
-
border-bottom: 1px solid #aaa;
|
189
|
+
padding: 2px 8px 2px 8px;
|
190
|
+
background-color: #e8e8e8;
|
191
|
+
color: #555;
|
192
|
+
font-size: 125%;
|
193
|
+
text-align: center;
|
207
194
|
}
|
208
|
-
|
209
|
-
|
195
|
+
|
196
|
+
nav h3,
|
197
|
+
#table-of-contents-navigation {
|
198
|
+
margin: 0;
|
199
|
+
padding: 2px 8px 2px 8px;
|
200
|
+
text-align: right;
|
201
|
+
background-color: #e8e8e8;
|
202
|
+
color: #555;
|
210
203
|
}
|
211
204
|
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
padding:
|
205
|
+
nav ul,
|
206
|
+
nav dl,
|
207
|
+
nav p {
|
208
|
+
padding: 4px 8px 0;
|
216
209
|
list-style: none;
|
217
210
|
}
|
218
211
|
|
219
|
-
#
|
220
|
-
margin
|
212
|
+
#project-navigation .nav-section {
|
213
|
+
margin: 0;
|
214
|
+
border-top: 0;
|
221
215
|
}
|
222
216
|
|
223
|
-
#
|
224
|
-
|
225
|
-
list-style-image: url(images/page_green.png);
|
217
|
+
#home-section h2 {
|
218
|
+
text-align: center;
|
226
219
|
}
|
227
220
|
|
228
|
-
#table-of-contents {
|
229
|
-
|
221
|
+
#table-of-contents-navigation {
|
222
|
+
font-size: 1.2em;
|
223
|
+
font-weight: bold;
|
224
|
+
text-align: center;
|
230
225
|
}
|
231
226
|
|
232
|
-
#
|
233
|
-
|
234
|
-
|
227
|
+
#search-section {
|
228
|
+
margin-top: 0;
|
229
|
+
border-top: 0;
|
235
230
|
}
|
236
231
|
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
232
|
+
#search-field-wrapper {
|
233
|
+
border-top: 1px solid #aaa;
|
234
|
+
border-bottom: 1px solid #aaa;
|
235
|
+
padding: 3px 8px;
|
236
|
+
background-color: #e8e8e8;
|
237
|
+
color: #555;
|
243
238
|
}
|
244
239
|
|
245
240
|
ul.link-list li {
|
246
241
|
white-space: nowrap;
|
247
|
-
line-height:
|
242
|
+
line-height: 1.4em;
|
248
243
|
}
|
249
244
|
|
250
245
|
ul.link-list .type {
|
@@ -262,100 +257,119 @@ ul.link-list .type {
|
|
262
257
|
|
263
258
|
/* @end */
|
264
259
|
|
265
|
-
/* @group
|
266
|
-
|
267
|
-
|
260
|
+
/* @group Documentation Section */
|
261
|
+
main {
|
262
|
+
color: #333;
|
268
263
|
}
|
269
|
-
/* @end */
|
270
264
|
|
271
|
-
|
272
|
-
|
273
|
-
|
265
|
+
main > h1:first-child,
|
266
|
+
main > h2:first-child,
|
267
|
+
main > h3:first-child,
|
268
|
+
main > h4:first-child,
|
269
|
+
main > h5:first-child,
|
270
|
+
main > h6:first-child {
|
271
|
+
margin-top: 0px;
|
274
272
|
}
|
275
273
|
|
276
|
-
|
277
|
-
|
274
|
+
main sup {
|
275
|
+
vertical-align: super;
|
276
|
+
font-size: 0.8em;
|
278
277
|
}
|
279
|
-
|
280
|
-
|
281
|
-
|
278
|
+
|
279
|
+
/* The heading with the class name */
|
280
|
+
main h1[class] {
|
281
|
+
margin-top: 0;
|
282
|
+
margin-bottom: 1em;
|
283
|
+
font-size: 2em;
|
284
|
+
color: #6C8C22;
|
282
285
|
}
|
283
286
|
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
+
main h1 {
|
288
|
+
margin: 2em 0 0.5em;
|
289
|
+
font-size: 1.7em;
|
287
290
|
}
|
288
291
|
|
289
|
-
|
292
|
+
main h2 {
|
293
|
+
margin: 2em 0 0.5em;
|
294
|
+
font-size: 1.5em;
|
295
|
+
}
|
290
296
|
|
291
|
-
|
292
|
-
.
|
293
|
-
font-size:
|
294
|
-
color: #333;
|
297
|
+
main h3 {
|
298
|
+
margin: 2em 0 0.5em;
|
299
|
+
font-size: 1.2em;
|
295
300
|
}
|
296
301
|
|
297
|
-
|
298
|
-
margin:
|
302
|
+
main h4 {
|
303
|
+
margin: 2em 0 0.5em;
|
304
|
+
font-size: 1.1em;
|
299
305
|
}
|
300
306
|
|
301
|
-
|
302
|
-
margin: 0;
|
307
|
+
main h5 {
|
308
|
+
margin: 2em 0 0.5em;
|
309
|
+
font-size: 1em;
|
303
310
|
}
|
304
311
|
|
305
|
-
|
306
|
-
|
307
|
-
|
312
|
+
main h6 {
|
313
|
+
margin: 2em 0 0.5em;
|
314
|
+
font-size: 1em;
|
308
315
|
}
|
309
|
-
|
310
|
-
|
316
|
+
|
317
|
+
main p {
|
318
|
+
margin: 0 0 0.5em;
|
311
319
|
line-height: 1.4em;
|
312
320
|
}
|
313
321
|
|
314
|
-
|
315
|
-
margin:
|
322
|
+
main pre {
|
323
|
+
margin: 1.2em 0.5em;
|
324
|
+
padding: 1em;
|
325
|
+
font-size: 0.8em;
|
316
326
|
}
|
317
327
|
|
318
|
-
|
319
|
-
margin:
|
320
|
-
border:
|
328
|
+
main hr {
|
329
|
+
margin: 1.5em 1em;
|
330
|
+
border: 2px solid #ddd;
|
321
331
|
}
|
322
|
-
|
323
|
-
|
332
|
+
|
333
|
+
main blockquote {
|
334
|
+
margin: 0 2em 1.2em 1.2em;
|
335
|
+
padding-left: 0.5em;
|
336
|
+
border-left: 2px solid #ddd;
|
324
337
|
}
|
325
338
|
|
326
|
-
|
327
|
-
|
339
|
+
main ol,
|
340
|
+
main ul {
|
341
|
+
margin: 1em 2em;
|
328
342
|
}
|
329
|
-
|
330
|
-
|
343
|
+
|
344
|
+
main li > p {
|
345
|
+
margin-bottom: 0.5em;
|
331
346
|
}
|
332
347
|
|
333
|
-
|
334
|
-
|
335
|
-
font-weight: bold;
|
336
|
-
background: #ddd;
|
348
|
+
main dl {
|
349
|
+
margin: 1em 0.5em;
|
337
350
|
}
|
338
|
-
|
339
|
-
|
351
|
+
|
352
|
+
main dt {
|
353
|
+
margin-bottom: 0.5em;
|
354
|
+
font-weight: bold;
|
340
355
|
}
|
341
|
-
|
342
|
-
|
343
|
-
margin
|
356
|
+
|
357
|
+
main dd {
|
358
|
+
margin: 0 1em 1em 0.5em;
|
344
359
|
}
|
345
360
|
|
346
|
-
|
347
|
-
|
361
|
+
main header h2 {
|
362
|
+
margin-top: 2em;
|
363
|
+
border-width: 0;
|
364
|
+
border-top: 4px solid #bbb;
|
365
|
+
font-size: 130%;
|
348
366
|
}
|
349
367
|
|
350
|
-
|
351
|
-
margin
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
font-size: 175%;
|
356
|
-
border: 1px solid #bbb;
|
357
|
-
-moz-border-radius: 3px;
|
358
|
-
-webkit-border-radius: 3px;
|
368
|
+
main header h3 {
|
369
|
+
margin: 2em 0 1.5em;
|
370
|
+
border-width: 0;
|
371
|
+
border-top: 3px solid #bbb;
|
372
|
+
font-size: 120%;
|
359
373
|
}
|
360
374
|
|
361
375
|
.documentation-section-title {
|
@@ -364,47 +378,35 @@ ul.link-list .type {
|
|
364
378
|
.documentation-section-title .section-click-top {
|
365
379
|
position: absolute;
|
366
380
|
top: 6px;
|
367
|
-
|
381
|
+
left: 12px;
|
368
382
|
font-size: 10px;
|
369
383
|
color: #9b9877;
|
370
384
|
visibility: hidden;
|
371
|
-
padding-
|
385
|
+
padding-left: 0.5px;
|
372
386
|
}
|
373
387
|
|
374
388
|
.documentation-section-title:hover .section-click-top {
|
375
389
|
visibility: visible;
|
376
390
|
}
|
377
391
|
|
378
|
-
|
379
|
-
margin-top: 1em;
|
380
|
-
padding: 0.25em 0.5em;
|
381
|
-
background-color: #dedede;
|
382
|
-
color: #333;
|
383
|
-
font-size: 150%;
|
384
|
-
border: 1px solid #bbb;
|
385
|
-
-moz-border-radius: 3px;
|
386
|
-
-webkit-border-radius: 3px;
|
387
|
-
}
|
388
|
-
|
389
|
-
#constants-list > dl,
|
390
|
-
#attributes-list > dl {
|
392
|
+
.constants-list > dl {
|
391
393
|
margin: 1em 0 2em;
|
392
394
|
border: 0;
|
393
395
|
}
|
394
|
-
|
395
|
-
|
396
|
+
|
397
|
+
.constants-list > dl dt {
|
398
|
+
margin-bottom: 0.75em;
|
396
399
|
padding-left: 0;
|
397
|
-
font-
|
398
|
-
font-
|
399
|
-
background: inherit;
|
400
|
+
font-family: "Source Code Pro", Monaco, monospace;
|
401
|
+
font-size: 110%;
|
400
402
|
}
|
401
|
-
|
402
|
-
|
403
|
+
|
404
|
+
.constants-list > dl dt a {
|
403
405
|
color: inherit;
|
404
406
|
}
|
405
|
-
|
406
|
-
|
407
|
-
margin: 0 0
|
407
|
+
|
408
|
+
.constants-list > dl dd {
|
409
|
+
margin: 0 0 2em 0;
|
408
410
|
padding: 0;
|
409
411
|
color: #666;
|
410
412
|
}
|
@@ -428,93 +430,77 @@ ul.link-list .type {
|
|
428
430
|
|
429
431
|
/* @group Method Details */
|
430
432
|
|
431
|
-
|
433
|
+
main .method-source-code {
|
432
434
|
display: none;
|
433
435
|
}
|
434
436
|
|
435
|
-
|
437
|
+
main .method-description .method-calls-super {
|
436
438
|
color: #333;
|
437
|
-
font-weight:
|
439
|
+
font-weight: bold;
|
438
440
|
}
|
439
441
|
|
440
|
-
|
441
|
-
margin:
|
442
|
-
padding: 0.5em 0;
|
442
|
+
main .method-detail {
|
443
|
+
margin-bottom: 2.5em;
|
443
444
|
cursor: pointer;
|
444
445
|
}
|
445
|
-
|
446
|
-
|
446
|
+
|
447
|
+
main .method-detail:target {
|
448
|
+
margin-left: -10px;
|
449
|
+
border-left: 10px solid #f1edba;
|
447
450
|
}
|
448
|
-
|
451
|
+
|
452
|
+
main .method-heading {
|
449
453
|
position: relative;
|
450
|
-
|
451
|
-
font-size:
|
454
|
+
font-family: "Source Code Pro", Monaco, monospace;
|
455
|
+
font-size: 110%;
|
452
456
|
font-weight: bold;
|
453
457
|
color: #333;
|
454
|
-
background: url(images/brick.png) no-repeat left bottom;
|
455
458
|
}
|
456
|
-
|
457
|
-
|
459
|
+
main .method-heading :link,
|
460
|
+
main .method-heading :visited {
|
458
461
|
color: inherit;
|
459
462
|
}
|
460
|
-
|
463
|
+
main .method-click-advice {
|
461
464
|
position: absolute;
|
462
465
|
top: 2px;
|
463
466
|
right: 5px;
|
464
|
-
font-size:
|
467
|
+
font-size: 12px;
|
465
468
|
color: #9b9877;
|
466
469
|
visibility: hidden;
|
467
470
|
padding-right: 20px;
|
468
471
|
line-height: 20px;
|
469
472
|
background: url(images/zoom.png) no-repeat right top;
|
470
473
|
}
|
471
|
-
|
474
|
+
main .method-heading:hover .method-click-advice {
|
472
475
|
visibility: visible;
|
473
476
|
}
|
474
477
|
|
475
|
-
|
476
|
-
color: #666;
|
477
|
-
background: url(images/brick_link.png) no-repeat left bottom;
|
478
|
-
}
|
479
|
-
|
480
|
-
#documentation .method-description,
|
481
|
-
#documentation .aliases {
|
482
|
-
margin: 0 20px;
|
478
|
+
main .method-alias .method-heading {
|
483
479
|
color: #666;
|
484
480
|
}
|
485
481
|
|
486
|
-
|
487
|
-
|
488
|
-
|
482
|
+
main .method-description,
|
483
|
+
main .aliases {
|
484
|
+
margin-top: 0.75em;
|
485
|
+
color: #333;
|
489
486
|
}
|
490
487
|
|
491
|
-
|
488
|
+
main .aliases {
|
492
489
|
padding-top: 4px;
|
493
490
|
font-style: italic;
|
494
491
|
cursor: default;
|
495
492
|
}
|
496
|
-
|
497
|
-
margin-bottom: 0.5em;
|
498
|
-
}
|
499
|
-
#documentation .method-description ul {
|
493
|
+
main .method-description ul {
|
500
494
|
margin-left: 1.5em;
|
501
495
|
}
|
502
|
-
pre {
|
503
|
-
margin: 0.5em 0;
|
504
|
-
}
|
505
496
|
|
506
|
-
#
|
507
|
-
background: url(images/tag_green.png) no-repeat left bottom;
|
508
|
-
}
|
509
|
-
#documentation #attribute-method-details .method-detail:hover {
|
497
|
+
main #attribute-method-details .method-detail:hover {
|
510
498
|
background-color: transparent;
|
511
499
|
cursor: default;
|
512
500
|
}
|
513
|
-
|
514
|
-
font-size: 60%;
|
501
|
+
main .attribute-access-type {
|
515
502
|
text-transform: uppercase;
|
516
|
-
|
517
|
-
padding: 0 2px;
|
503
|
+
padding: 0 1em;
|
518
504
|
}
|
519
505
|
/* @end */
|
520
506
|
|
@@ -523,15 +509,12 @@ pre {
|
|
523
509
|
/* @group Source Code */
|
524
510
|
|
525
511
|
pre {
|
526
|
-
|
527
|
-
background: #262626;
|
528
|
-
color: white;
|
512
|
+
margin: 0.5em 0;
|
529
513
|
border: 1px dashed #999;
|
530
514
|
padding: 0.5em;
|
531
|
-
|
532
|
-
|
533
|
-
|
534
|
-
margin: 0 0.4em;
|
515
|
+
background: #262626;
|
516
|
+
color: white;
|
517
|
+
overflow: auto;
|
535
518
|
}
|
536
519
|
|
537
520
|
.ruby-constant { color: #7fffd4; background: transparent; }
|
@@ -540,7 +523,7 @@ pre {
|
|
540
523
|
.ruby-operator { color: #00ffee; background: transparent; }
|
541
524
|
.ruby-identifier { color: #ffdead; background: transparent; }
|
542
525
|
.ruby-node { color: #ffa07a; background: transparent; }
|
543
|
-
.ruby-comment { color: #dc0000;
|
526
|
+
.ruby-comment { color: #dc0000; background: transparent; }
|
544
527
|
.ruby-regexp { color: #ffa07a; background: transparent; }
|
545
528
|
.ruby-value { color: #7fffd4; background: transparent; }
|
546
529
|
|
@@ -548,23 +531,24 @@ pre {
|
|
548
531
|
|
549
532
|
|
550
533
|
/* @group search results */
|
551
|
-
#search-results
|
552
|
-
font-
|
534
|
+
#search-results {
|
535
|
+
font-family: Lato, sans-serif;
|
536
|
+
font-weight: 300;
|
537
|
+
}
|
538
|
+
|
539
|
+
#search-results .search-match {
|
540
|
+
font-family: Helvetica, sans-serif;
|
553
541
|
font-weight: normal;
|
554
|
-
text-shadow: none;
|
555
542
|
}
|
556
543
|
|
557
|
-
#search-results .
|
558
|
-
background: #
|
544
|
+
#search-results .search-selected {
|
545
|
+
background: #e8e8e8;
|
559
546
|
border-bottom: 1px solid transparent;
|
560
547
|
}
|
561
548
|
|
562
549
|
#search-results li {
|
563
550
|
list-style: none;
|
564
551
|
border-bottom: 1px solid #aaa;
|
565
|
-
-moz-border-radius: 4px;
|
566
|
-
-webkit-border-radius: 4px;
|
567
|
-
border-radius: 4px;
|
568
552
|
margin-bottom: 0.5em;
|
569
553
|
}
|
570
554
|
|
@@ -589,6 +573,7 @@ pre {
|
|
589
573
|
|
590
574
|
#search-results pre {
|
591
575
|
margin: 0.5em;
|
576
|
+
font-family: "Source Code Pro", Monaco, monospace;
|
592
577
|
}
|
593
578
|
|
594
579
|
/* @end */
|