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.

Files changed (140) hide show
  1. checksums.yaml +4 -4
  2. checksums.yaml.gz.sig +0 -0
  3. data.tar.gz.sig +0 -0
  4. data/.autotest +1 -3
  5. data/{DEVELOPERS.rdoc → CONTRIBUTING.rdoc} +28 -3
  6. data/ExampleMarkdown.md +37 -0
  7. data/ExampleRDoc.rdoc +208 -0
  8. data/History.rdoc +81 -0
  9. data/Manifest.txt +11 -2
  10. data/README.rdoc +5 -5
  11. data/Rakefile +34 -4
  12. data/lib/rdoc.rb +4 -3
  13. data/lib/rdoc/any_method.rb +48 -4
  14. data/lib/rdoc/class_module.rb +16 -2
  15. data/lib/rdoc/code_object.rb +85 -24
  16. data/lib/rdoc/comment.rb +0 -3
  17. data/lib/rdoc/constant.rb +9 -1
  18. data/lib/rdoc/context.rb +20 -2
  19. data/lib/rdoc/cross_reference.rb +1 -1
  20. data/lib/rdoc/extend.rb +4 -112
  21. data/lib/rdoc/generator/darkfish.rb +46 -7
  22. data/lib/rdoc/generator/template/darkfish/_footer.rhtml +4 -4
  23. data/lib/rdoc/generator/template/darkfish/_head.rhtml +14 -8
  24. data/lib/rdoc/generator/template/darkfish/_sidebar_VCS_info.rhtml +4 -3
  25. data/lib/rdoc/generator/template/darkfish/_sidebar_classes.rhtml +3 -3
  26. data/lib/rdoc/generator/template/darkfish/_sidebar_extends.rhtml +3 -4
  27. data/lib/rdoc/generator/template/darkfish/_sidebar_in_files.rhtml +4 -3
  28. data/lib/rdoc/generator/template/darkfish/_sidebar_includes.rhtml +3 -4
  29. data/lib/rdoc/generator/template/darkfish/_sidebar_installed.rhtml +3 -3
  30. data/lib/rdoc/generator/template/darkfish/_sidebar_methods.rhtml +4 -4
  31. data/lib/rdoc/generator/template/darkfish/_sidebar_navigation.rhtml +9 -5
  32. data/lib/rdoc/generator/template/darkfish/_sidebar_pages.rhtml +5 -5
  33. data/lib/rdoc/generator/template/darkfish/_sidebar_parent.rhtml +4 -3
  34. data/lib/rdoc/generator/template/darkfish/_sidebar_search.rhtml +12 -7
  35. data/lib/rdoc/generator/template/darkfish/_sidebar_sections.rhtml +5 -4
  36. data/lib/rdoc/generator/template/darkfish/_sidebar_table_of_contents.rhtml +6 -7
  37. data/lib/rdoc/generator/template/darkfish/class.rhtml +36 -41
  38. data/lib/rdoc/generator/template/darkfish/fonts.css +167 -0
  39. data/lib/rdoc/generator/template/darkfish/fonts/Lato-Light.ttf +0 -0
  40. data/lib/rdoc/generator/template/darkfish/fonts/Lato-LightItalic.ttf +0 -0
  41. data/lib/rdoc/generator/template/darkfish/fonts/Lato-Regular.ttf +0 -0
  42. data/lib/rdoc/generator/template/darkfish/fonts/Lato-RegularItalic.ttf +0 -0
  43. data/lib/rdoc/generator/template/darkfish/fonts/SourceCodePro-Bold.ttf +0 -0
  44. data/lib/rdoc/generator/template/darkfish/fonts/SourceCodePro-Regular.ttf +0 -0
  45. data/lib/rdoc/generator/template/darkfish/images/add.png +0 -0
  46. data/lib/rdoc/generator/template/darkfish/images/arrow_up.png +0 -0
  47. data/lib/rdoc/generator/template/darkfish/images/delete.png +0 -0
  48. data/lib/rdoc/generator/template/darkfish/images/tag_blue.png +0 -0
  49. data/lib/rdoc/generator/template/darkfish/index.rhtml +11 -7
  50. data/lib/rdoc/generator/template/darkfish/js/darkfish.js +0 -15
  51. data/lib/rdoc/generator/template/darkfish/js/search.js +12 -4
  52. data/lib/rdoc/generator/template/darkfish/page.rhtml +9 -9
  53. data/lib/rdoc/generator/template/darkfish/rdoc.css +226 -241
  54. data/lib/rdoc/generator/template/darkfish/servlet_not_found.rhtml +5 -5
  55. data/lib/rdoc/generator/template/darkfish/servlet_root.rhtml +13 -6
  56. data/lib/rdoc/generator/template/darkfish/table_of_contents.rhtml +17 -14
  57. data/lib/rdoc/include.rb +4 -114
  58. data/lib/rdoc/known_classes.rb +1 -0
  59. data/lib/rdoc/markdown.kpeg +126 -117
  60. data/lib/rdoc/markdown.rb +404 -389
  61. data/lib/rdoc/markdown/literals_1_8.kpeg +1 -1
  62. data/lib/rdoc/markdown/literals_1_8.rb +15 -12
  63. data/lib/rdoc/markdown/literals_1_9.kpeg +1 -1
  64. data/lib/rdoc/markdown/literals_1_9.rb +15 -12
  65. data/lib/rdoc/markup.rb +10 -13
  66. data/lib/rdoc/markup/attribute_manager.rb +3 -2
  67. data/lib/rdoc/markup/formatter.rb +3 -3
  68. data/lib/rdoc/markup/heading.rb +13 -0
  69. data/lib/rdoc/markup/parser.rb +10 -3
  70. data/lib/rdoc/markup/pre_process.rb +1 -1
  71. data/lib/rdoc/markup/to_html.rb +46 -31
  72. data/lib/rdoc/markup/to_html_crossref.rb +3 -0
  73. data/lib/rdoc/markup/to_joined_paragraph.rb +1 -1
  74. data/lib/rdoc/markup/to_markdown.rb +7 -5
  75. data/lib/rdoc/markup/verbatim.rb +1 -1
  76. data/lib/rdoc/method_attr.rb +13 -1
  77. data/lib/rdoc/mixin.rb +120 -0
  78. data/lib/rdoc/normal_class.rb +4 -0
  79. data/lib/rdoc/normal_module.rb +4 -0
  80. data/lib/rdoc/options.rb +42 -8
  81. data/lib/rdoc/parser.rb +4 -2
  82. data/lib/rdoc/parser/c.rb +13 -7
  83. data/lib/rdoc/parser/ruby.rb +683 -480
  84. data/lib/rdoc/rdoc.rb +4 -3
  85. data/lib/rdoc/ri/driver.rb +174 -103
  86. data/lib/rdoc/ri/paths.rb +6 -6
  87. data/lib/rdoc/ruby_lex.rb +125 -102
  88. data/lib/rdoc/ruby_token.rb +41 -40
  89. data/lib/rdoc/servlet.rb +16 -6
  90. data/lib/rdoc/stats.rb +61 -48
  91. data/lib/rdoc/store.rb +5 -3
  92. data/lib/rdoc/test_case.rb +39 -0
  93. data/lib/rdoc/tom_doc.rb +28 -4
  94. data/lib/rdoc/top_level.rb +2 -2
  95. data/test/test_rdoc_any_method.rb +104 -1
  96. data/test/test_rdoc_class_module.rb +9 -15
  97. data/test/test_rdoc_code_object.rb +133 -8
  98. data/test/test_rdoc_context.rb +17 -0
  99. data/test/test_rdoc_context_section.rb +0 -7
  100. data/test/test_rdoc_cross_reference.rb +4 -3
  101. data/test/test_rdoc_generator_darkfish.rb +61 -19
  102. data/test/test_rdoc_generator_json_index.rb +0 -11
  103. data/test/test_rdoc_generator_ri.rb +0 -8
  104. data/test/test_rdoc_markdown.rb +15 -12
  105. data/test/test_rdoc_markdown_test.rb +0 -7
  106. data/test/test_rdoc_markup_attribute_manager.rb +121 -0
  107. data/test/test_rdoc_markup_document.rb +0 -7
  108. data/test/test_rdoc_markup_formatter.rb +29 -3
  109. data/test/test_rdoc_markup_heading.rb +9 -0
  110. data/test/test_rdoc_markup_parser.rb +0 -7
  111. data/test/test_rdoc_markup_pre_process.rb +15 -3
  112. data/test/test_rdoc_markup_raw.rb +0 -7
  113. data/test/test_rdoc_markup_to_html.rb +50 -8
  114. data/test/test_rdoc_markup_to_html_crossref.rb +7 -0
  115. data/test/test_rdoc_markup_to_html_snippet.rb +4 -4
  116. data/test/test_rdoc_markup_to_markdown.rb +6 -0
  117. data/test/test_rdoc_method_attr.rb +8 -0
  118. data/test/test_rdoc_normal_class.rb +5 -0
  119. data/test/test_rdoc_normal_module.rb +5 -0
  120. data/test/test_rdoc_options.rb +61 -22
  121. data/test/test_rdoc_parser.rb +10 -0
  122. data/test/test_rdoc_parser_c.rb +17 -5
  123. data/test/test_rdoc_parser_changelog.rb +0 -7
  124. data/test/test_rdoc_parser_rd.rb +0 -7
  125. data/test/test_rdoc_parser_ruby.rb +305 -28
  126. data/test/test_rdoc_rd_block_parser.rb +0 -8
  127. data/test/test_rdoc_rd_inline_parser.rb +0 -1
  128. data/test/test_rdoc_rdoc.rb +27 -1
  129. data/test/test_rdoc_ri_driver.rb +19 -7
  130. data/test/test_rdoc_ruby_lex.rb +116 -9
  131. data/test/test_rdoc_rubygems_hook.rb +1 -1
  132. data/test/test_rdoc_servlet.rb +44 -6
  133. data/test/test_rdoc_stats.rb +161 -141
  134. data/test/test_rdoc_store.rb +11 -19
  135. data/test/test_rdoc_text.rb +0 -7
  136. data/test/test_rdoc_tom_doc.rb +44 -16
  137. data/test/xref_test_case.rb +2 -0
  138. metadata +28 -27
  139. metadata.gz.sig +0 -0
  140. 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
- target.appendChild(this.renderItem.call(this, results[i]));
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('current');
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('current');
74
- $next.addClass('current');
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 id="metadata">
3
- <%= render '_sidebar_navigation.rhtml' %>
4
-
5
- <%= render '_sidebar_search.rhtml' %>
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
- <div id="documentation" class="description">
16
- <%= file.description %>
17
- </div>
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: #efefef;
16
- font: 14px "Helvetica Neue", Helvetica, Tahoma, sans-serif;
17
- margin-left: 40px;
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: 50%;
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
- background: #ddd;
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: #eee;
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
- .indexpage ul {
125
- line-height: 160%;
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
- .indexpage li {
134
- padding-left: 20px;
112
+ .table-of-contents ul ul {
113
+ margin-top: 0.25em;
135
114
  }
136
115
 
137
- .indexpage ul > li {
138
- background: url(images/bullet_black.png) no-repeat left 4px;
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
- .indexpage li li {
153
- background: url(images/tag_blue.png) no-repeat left 4px;
120
+
121
+ .table-of-contents li {
122
+ margin-bottom: 0.25em;
154
123
  }
155
- .indexpage li .toc-toggle {
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
- .indexpage li .toc-toggle.open {
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
- #metadata {
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
- #documentation {
175
- margin: 2em 1em 5em 300px;
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 Metadata Section */
188
- #metadata .section {
189
- background-color: #dedede;
190
- -moz-border-radius: 5px;
191
- -webkit-border-radius: 5px;
192
- border: 1px solid #aaa;
193
- margin: 0 8px 8px;
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
- #metadata h3.section-header {
186
+
187
+ nav h2 {
198
188
  margin: 0;
199
- padding: 2px 8px;
200
- background: #ccc;
201
- color: #666;
202
- -moz-border-radius-topleft: 4px;
203
- -moz-border-radius-topright: 4px;
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
- #metadata #home-section h3.section-header {
209
- border-bottom: 0;
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
- #metadata ul,
213
- #metadata dl,
214
- #metadata p {
215
- padding: 8px;
205
+ nav ul,
206
+ nav dl,
207
+ nav p {
208
+ padding: 4px 8px 0;
216
209
  list-style: none;
217
210
  }
218
211
 
219
- #file-metadata {
220
- margin-top: 2em;
212
+ #project-navigation .nav-section {
213
+ margin: 0;
214
+ border-top: 0;
221
215
  }
222
216
 
223
- #file-metadata ul {
224
- padding-left: 28px;
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
- margin-top: 2em;
221
+ #table-of-contents-navigation {
222
+ font-size: 1.2em;
223
+ font-weight: bold;
224
+ text-align: center;
230
225
  }
231
226
 
232
- #table-of-contents ul {
233
- padding-left: 28px;
234
- list-style-image: url(images/tag_blue.png);
227
+ #search-section {
228
+ margin-top: 0;
229
+ border-top: 0;
235
230
  }
236
231
 
237
- dl.svninfo {
238
- color: #666;
239
- margin: 0;
240
- }
241
- dl.svninfo dt {
242
- font-weight: bold;
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: 20px;
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 Class Metadata Section */
266
- #class-metadata {
267
- margin-top: 2em;
260
+ /* @group Documentation Section */
261
+ main {
262
+ color: #333;
268
263
  }
269
- /* @end */
270
264
 
271
- /* @group Project Metadata Section */
272
- #project-metadata {
273
- margin-top: 2em;
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
- #project-metadata .section {
277
- border: 1px solid #aaa;
274
+ main sup {
275
+ vertical-align: super;
276
+ font-size: 0.8em;
278
277
  }
279
- #project-metadata h3.section-header {
280
- border-bottom: 1px solid #aaa;
281
- position: relative;
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
- #project-metadata form {
285
- color: #777;
286
- background: #ccc;
287
+ main h1 {
288
+ margin: 2em 0 0.5em;
289
+ font-size: 1.7em;
287
290
  }
288
291
 
289
- /* @end */
292
+ main h2 {
293
+ margin: 2em 0 0.5em;
294
+ font-size: 1.5em;
295
+ }
290
296
 
291
- /* @group Documentation Section */
292
- .description {
293
- font-size: 100%;
294
- color: #333;
297
+ main h3 {
298
+ margin: 2em 0 0.5em;
299
+ font-size: 1.2em;
295
300
  }
296
301
 
297
- .description p {
298
- margin: 1em 0.4em;
302
+ main h4 {
303
+ margin: 2em 0 0.5em;
304
+ font-size: 1.1em;
299
305
  }
300
306
 
301
- .description li p {
302
- margin: 0;
307
+ main h5 {
308
+ margin: 2em 0 0.5em;
309
+ font-size: 1em;
303
310
  }
304
311
 
305
- .description ol,
306
- .description ul {
307
- margin-left: 1.5em;
312
+ main h6 {
313
+ margin: 2em 0 0.5em;
314
+ font-size: 1em;
308
315
  }
309
- .description ol li,
310
- .description ul li {
316
+
317
+ main p {
318
+ margin: 0 0 0.5em;
311
319
  line-height: 1.4em;
312
320
  }
313
321
 
314
- .note-list {
315
- margin: 8px 0;
322
+ main pre {
323
+ margin: 1.2em 0.5em;
324
+ padding: 1em;
325
+ font-size: 0.8em;
316
326
  }
317
327
 
318
- .label-list {
319
- margin: 8px 1.5em;
320
- border: 1px solid #ccc;
328
+ main hr {
329
+ margin: 1.5em 1em;
330
+ border: 2px solid #ddd;
321
331
  }
322
- .description .label-list {
323
- font-size: 14px;
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
- .note-list dt {
327
- font-weight: bold;
339
+ main ol,
340
+ main ul {
341
+ margin: 1em 2em;
328
342
  }
329
- .note-list dd {
330
- padding: 0 12px;
343
+
344
+ main li > p {
345
+ margin-bottom: 0.5em;
331
346
  }
332
347
 
333
- .label-list dt {
334
- padding: 2px 4px;
335
- font-weight: bold;
336
- background: #ddd;
348
+ main dl {
349
+ margin: 1em 0.5em;
337
350
  }
338
- .label-list dd {
339
- padding: 2px 12px;
351
+
352
+ main dt {
353
+ margin-bottom: 0.5em;
354
+ font-weight: bold;
340
355
  }
341
- .label-list dd + dt,
342
- .note-list dd + dt {
343
- margin-top: 0.7em;
356
+
357
+ main dd {
358
+ margin: 0 1em 1em 0.5em;
344
359
  }
345
360
 
346
- #documentation .section {
347
- font-size: 90%;
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
- #documentation h2.section-header {
351
- margin-top: 1em;
352
- padding: 0.25em 0.5em;
353
- background: #ccc;
354
- color: #333;
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
- right: 12px;
381
+ left: 12px;
368
382
  font-size: 10px;
369
383
  color: #9b9877;
370
384
  visibility: hidden;
371
- padding-right: 0.5px;
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
- #documentation h3.section-header {
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
- #constants-list > dl dt,
395
- #attributes-list > dl dt {
396
+
397
+ .constants-list > dl dt {
398
+ margin-bottom: 0.75em;
396
399
  padding-left: 0;
397
- font-weight: bold;
398
- font-family: Monaco, "Andale Mono";
399
- background: inherit;
400
+ font-family: "Source Code Pro", Monaco, monospace;
401
+ font-size: 110%;
400
402
  }
401
- #constants-list > dl dt a,
402
- #attributes-list > dl dt a {
403
+
404
+ .constants-list > dl dt a {
403
405
  color: inherit;
404
406
  }
405
- #constants-list > dl dd,
406
- #attributes-list > dl dd {
407
- margin: 0 0 1em 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
- #documentation .method-source-code {
433
+ main .method-source-code {
432
434
  display: none;
433
435
  }
434
436
 
435
- #documentation .method-description .method-calls-super {
437
+ main .method-description .method-calls-super {
436
438
  color: #333;
437
- font-weight: bolder;
439
+ font-weight: bold;
438
440
  }
439
441
 
440
- #documentation .method-detail {
441
- margin: 0.5em 0;
442
- padding: 0.5em 0;
442
+ main .method-detail {
443
+ margin-bottom: 2.5em;
443
444
  cursor: pointer;
444
445
  }
445
- #documentation .method-detail:hover {
446
- background-color: #f1edba;
446
+
447
+ main .method-detail:target {
448
+ margin-left: -10px;
449
+ border-left: 10px solid #f1edba;
447
450
  }
448
- #documentation .method-heading {
451
+
452
+ main .method-heading {
449
453
  position: relative;
450
- padding: 2px 4px 0 20px;
451
- font-size: 125%;
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
- #documentation .method-heading :link,
457
- #documentation .method-heading :visited {
459
+ main .method-heading :link,
460
+ main .method-heading :visited {
458
461
  color: inherit;
459
462
  }
460
- #documentation .method-click-advice {
463
+ main .method-click-advice {
461
464
  position: absolute;
462
465
  top: 2px;
463
466
  right: 5px;
464
- font-size: 10px;
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
- #documentation .method-heading:hover .method-click-advice {
474
+ main .method-heading:hover .method-click-advice {
472
475
  visibility: visible;
473
476
  }
474
477
 
475
- #documentation .method-alias .method-heading {
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
- #documentation .method-description p,
487
- #documentation .aliases p {
488
- line-height: 1.2em;
482
+ main .method-description,
483
+ main .aliases {
484
+ margin-top: 0.75em;
485
+ color: #333;
489
486
  }
490
487
 
491
- #documentation .aliases {
488
+ main .aliases {
492
489
  padding-top: 4px;
493
490
  font-style: italic;
494
491
  cursor: default;
495
492
  }
496
- #documentation .method-description p {
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
- #documentation .attribute-method-heading {
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
- #documentation .attribute-access-type {
514
- font-size: 60%;
501
+ main .attribute-access-type {
515
502
  text-transform: uppercase;
516
- vertical-align: super;
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
- overflow: auto;
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
- .description pre {
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; font-weight: bold; background: transparent; }
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 h1 {
552
- font-size: 1em;
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 .current {
558
- background: #ccc;
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 */