rdoc-generator-solarfish 0.0.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.
Files changed (43) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +13 -0
  3. data/.rubocop.yml +26 -0
  4. data/.travis.yml +9 -0
  5. data/Gemfile +2 -0
  6. data/LICENSE +21 -0
  7. data/README.md +175 -0
  8. data/Rakefile +28 -0
  9. data/data/rdoc-generator-solarfish/templates/onepage.slim +110 -0
  10. data/data/rdoc-generator-solarfish/themes/common/fonts/LICENSE +7 -0
  11. data/data/rdoc-generator-solarfish/themes/common/fonts/LICENSE.Raleway +95 -0
  12. data/data/rdoc-generator-solarfish/themes/common/fonts/LICENSE.Roboto +201 -0
  13. data/data/rdoc-generator-solarfish/themes/common/fonts/Raleway-Regular.ttf +0 -0
  14. data/data/rdoc-generator-solarfish/themes/common/fonts/Raleway-SemiBold.ttf +0 -0
  15. data/data/rdoc-generator-solarfish/themes/common/fonts/Roboto-Regular.ttf +0 -0
  16. data/data/rdoc-generator-solarfish/themes/common/syntax/LICENSE +3 -0
  17. data/data/rdoc-generator-solarfish/themes/common/syntax/LICENSE.onelight +20 -0
  18. data/data/rdoc-generator-solarfish/themes/common/syntax/onelight.sass +47 -0
  19. data/data/rdoc-generator-solarfish/themes/light/main.sass +215 -0
  20. data/data/rdoc-generator-solarfish/themes/light.yml +16 -0
  21. data/docs/example.rb +142 -0
  22. data/docs/example_output/Raleway-Regular.ttf +0 -0
  23. data/docs/example_output/Raleway-SemiBold.ttf +0 -0
  24. data/docs/example_output/Roboto-Regular.ttf +0 -0
  25. data/docs/example_output/created.rid +2 -0
  26. data/docs/example_output/index.html +404 -0
  27. data/docs/example_output/index.json +428 -0
  28. data/docs/example_output/main.css +210 -0
  29. data/docs/example_output/onelight.css +22 -0
  30. data/lib/rdoc/discover.rb +1 -0
  31. data/lib/rdoc/generator/doc_loader.rb +315 -0
  32. data/lib/rdoc/generator/html_writer.rb +35 -0
  33. data/lib/rdoc/generator/json_writer.rb +16 -0
  34. data/lib/rdoc/generator/settings.rb +57 -0
  35. data/lib/rdoc/generator/solarfish.rb +135 -0
  36. data/lib/rdoc/generator/template_loader.rb +42 -0
  37. data/lib/rdoc/generator/theme_loader.rb +160 -0
  38. data/lib/solarfish.rb +2 -0
  39. data/rdoc-generator-solarfish.gemspec +31 -0
  40. data/test/test_generator.rb +95 -0
  41. data/test/test_theme_loader.rb +89 -0
  42. data/test/themes.rb +213 -0
  43. metadata +216 -0
@@ -0,0 +1,428 @@
1
+ {
2
+ "title": "RDoc::Generator::SolarFish Example",
3
+ "theme": {
4
+ "head": {
5
+ "styles": [
6
+ {
7
+ "url": "onelight.css"
8
+ },
9
+ {
10
+ "url": "main.css"
11
+ }
12
+ ],
13
+ "fonts": [
14
+ {
15
+ "url": "Roboto-Regular.ttf",
16
+ "family": "RobotoRegular"
17
+ },
18
+ {
19
+ "url": "Raleway-Regular.ttf",
20
+ "family": "RalewayRegular"
21
+ },
22
+ {
23
+ "url": "Raleway-SemiBold.ttf",
24
+ "family": "RalewaySemiBold"
25
+ }
26
+ ],
27
+ "scripts": [
28
+
29
+ ],
30
+ "html": [
31
+
32
+ ]
33
+ },
34
+ "body": {
35
+ "header": [
36
+
37
+ ],
38
+ "footer": [
39
+
40
+ ]
41
+ }
42
+ },
43
+ "classes": [
44
+ {
45
+ "id": "Bird",
46
+ "title": "Bird",
47
+ "kind": "class",
48
+ "comment": "<p>The base class for all birds.</p>",
49
+ "groups": [
50
+ {
51
+ "title": "Instance Methods",
52
+ "type": "InstanceMethods",
53
+ "kind": "method",
54
+ "level": "instance",
55
+ "id": "Bird::InstanceMethods",
56
+ "members": [
57
+ {
58
+ "id": "Bird::fly",
59
+ "title": "fly",
60
+ "signature": "Bird.fly(symbol, number) -> bool\nBird.fly(string, number) -> bool\n",
61
+ "comment": "<p>Fly somewhere.</p>\n\n<p>Flying is the most critical feature of birds.</p>\n\n<h1 id=\"method-i-fly-label-Example\">Example<span><a href=\"#method-i-fly-label-Example\">&para;</a> <a href=\"#top\">&uarr;</a></span></h1>\n\n<pre class=\"ruby\"><span class=\"ruby-identifier\">fly</span>(:<span class=\"ruby-identifier\">south</span>, <span class=\"ruby-value\">70</span>)\n</pre>",
62
+ "code": "<span class=\"ruby-comment\"># File example.rb, line 51</span>\n<span class=\"ruby-keyword\">def</span> <span class=\"ruby-identifier\">fly</span>(<span class=\"ruby-identifier\">direction</span>, <span class=\"ruby-identifier\">velocity</span>)\n <span class=\"ruby-identifier\">_fly_impl</span>(<span class=\"ruby-identifier\">direction</span>, <span class=\"ruby-identifier\">velocity</span>)\n<span class=\"ruby-keyword\">end</span>",
63
+ "level": "instance",
64
+ "visibility": "public",
65
+ "kind": "method",
66
+ "labels": [
67
+ {
68
+ "id": "InstanceMethod",
69
+ "title": "instance method"
70
+ },
71
+ {
72
+ "id": "Public",
73
+ "title": "public"
74
+ }
75
+ ]
76
+ },
77
+ {
78
+ "id": "Bird::speak",
79
+ "title": "speak",
80
+ "signature": "speak() { |text| ... }",
81
+ "comment": "<p>Produce some noise.</p>",
82
+ "code": "<span class=\"ruby-comment\"># File example.rb, line 32</span>\n<span class=\"ruby-keyword\">def</span> <span class=\"ruby-identifier\">speak</span> <span class=\"ruby-comment\"># :yields: text</span>\n <span class=\"ruby-identifier\">puts</span> <span class=\"ruby-string\">&#39;generic tweeting&#39;</span>\n <span class=\"ruby-keyword\">yield</span> <span class=\"ruby-string\">&#39;tweet&#39;</span>\n <span class=\"ruby-keyword\">yield</span> <span class=\"ruby-string\">&#39;tweet&#39;</span>\n<span class=\"ruby-keyword\">end</span>",
83
+ "level": "instance",
84
+ "visibility": "public",
85
+ "kind": "method",
86
+ "labels": [
87
+ {
88
+ "id": "InstanceMethod",
89
+ "title": "instance method"
90
+ },
91
+ {
92
+ "id": "Public",
93
+ "title": "public"
94
+ }
95
+ ]
96
+ }
97
+ ]
98
+ }
99
+ ],
100
+ "labels": [
101
+ {
102
+ "id": "Class",
103
+ "title": "class"
104
+ }
105
+ ]
106
+ },
107
+ {
108
+ "id": "Duck",
109
+ "title": "Duck",
110
+ "kind": "class",
111
+ "comment": "<p>A duck is a <a href=\"Waterfowl.html\">Waterfowl</a> <a\nhref=\"Bird.html\">Bird</a>.</p>\n\n<p>Features:</p>\n\n<pre>bird::\n\n * speak\n * fly\n\nwaterfowl::\n\n * swim</pre>",
112
+ "groups": [
113
+ {
114
+ "title": "Extended Classes",
115
+ "type": "ExtendedClasses",
116
+ "kind": "extended",
117
+ "id": "Duck::ExtendedClasses",
118
+ "members": [
119
+ {
120
+ "id": "Duck::Animal",
121
+ "title": "Animal",
122
+ "signature": "",
123
+ "comment": "",
124
+ "kind": "extended",
125
+ "labels": [
126
+ {
127
+ "id": "Extended",
128
+ "title": "extended"
129
+ }
130
+ ]
131
+ }
132
+ ]
133
+ },
134
+ {
135
+ "title": "Included Modules",
136
+ "type": "IncludedModules",
137
+ "kind": "included",
138
+ "id": "Duck::IncludedModules",
139
+ "members": [
140
+ {
141
+ "id": "Duck::Waterfowl",
142
+ "title": "Waterfowl",
143
+ "signature": "",
144
+ "comment": "",
145
+ "kind": "included",
146
+ "labels": [
147
+ {
148
+ "id": "Included",
149
+ "title": "included"
150
+ }
151
+ ]
152
+ }
153
+ ]
154
+ },
155
+ {
156
+ "title": "Constants",
157
+ "type": "Constants",
158
+ "kind": "constant",
159
+ "id": "Duck::Constants",
160
+ "members": [
161
+ {
162
+ "id": "Duck::MAX_VELOCITY",
163
+ "title": "MAX_VELOCITY",
164
+ "signature": "",
165
+ "comment": "",
166
+ "kind": "constant",
167
+ "labels": [
168
+ {
169
+ "id": "Constant",
170
+ "title": "constant"
171
+ }
172
+ ]
173
+ }
174
+ ]
175
+ },
176
+ {
177
+ "title": "Class Methods",
178
+ "type": "ClassMethods",
179
+ "kind": "method",
180
+ "level": "class",
181
+ "id": "Duck::ClassMethods",
182
+ "members": [
183
+ {
184
+ "id": "Duck::new",
185
+ "title": "new",
186
+ "signature": "new(domestic, rubber)",
187
+ "comment": "<p>Creates a new duck.</p>",
188
+ "code": "<span class=\"ruby-comment\"># File example.rb, line 114</span>\n<span class=\"ruby-keyword\">def</span> <span class=\"ruby-identifier\">initialize</span>(<span class=\"ruby-identifier\">domestic</span>, <span class=\"ruby-identifier\">rubber</span>)\n <span class=\"ruby-ivar\">@domestic</span> = <span class=\"ruby-identifier\">domestic</span>\n <span class=\"ruby-ivar\">@rubber</span> = <span class=\"ruby-identifier\">rubber</span>\n <span class=\"ruby-identifier\">@@rubber_ducks</span> <span class=\"ruby-operator\">&lt;&lt;</span> <span class=\"ruby-keyword\">self</span> <span class=\"ruby-keyword\">if</span> <span class=\"ruby-identifier\">rubber</span>\n<span class=\"ruby-keyword\">end</span>",
189
+ "level": "class",
190
+ "visibility": "public",
191
+ "kind": "method",
192
+ "labels": [
193
+ {
194
+ "id": "ClassMethod",
195
+ "title": "class method"
196
+ },
197
+ {
198
+ "id": "Public",
199
+ "title": "public"
200
+ }
201
+ ]
202
+ },
203
+ {
204
+ "id": "Duck::rubber_ducks",
205
+ "title": "rubber_ducks",
206
+ "signature": "rubber_ducks()",
207
+ "comment": "<p>Returns list of all rubber ducks.</p>",
208
+ "code": "<span class=\"ruby-comment\"># File example.rb, line 109</span>\n<span class=\"ruby-keyword\">def</span> <span class=\"ruby-keyword\">self</span>.<span class=\"ruby-identifier\">rubber_ducks</span>\n <span class=\"ruby-identifier\">@@rubber_ducks</span>\n<span class=\"ruby-keyword\">end</span>",
209
+ "level": "class",
210
+ "visibility": "public",
211
+ "kind": "method",
212
+ "labels": [
213
+ {
214
+ "id": "ClassMethod",
215
+ "title": "class method"
216
+ },
217
+ {
218
+ "id": "Public",
219
+ "title": "public"
220
+ }
221
+ ]
222
+ }
223
+ ]
224
+ },
225
+ {
226
+ "title": "Instance Attributes",
227
+ "type": "InstanceAttributes",
228
+ "kind": "attribute",
229
+ "level": "instance",
230
+ "id": "Duck::InstanceAttributes",
231
+ "members": [
232
+ {
233
+ "id": "Duck::domestic",
234
+ "title": "domestic",
235
+ "signature": "",
236
+ "comment": "<p>True for domestic ducks.</p>",
237
+ "level": "instance",
238
+ "visibility": "public",
239
+ "kind": "attribute",
240
+ "labels": [
241
+ {
242
+ "id": "InstanceAttribute",
243
+ "title": "instance attribute"
244
+ },
245
+ {
246
+ "id": "Public",
247
+ "title": "public"
248
+ }
249
+ ]
250
+ },
251
+ {
252
+ "id": "Duck::rubber",
253
+ "title": "rubber",
254
+ "signature": "",
255
+ "comment": "<p>True for rubber ducks.</p>",
256
+ "level": "instance",
257
+ "visibility": "public",
258
+ "kind": "attribute",
259
+ "labels": [
260
+ {
261
+ "id": "InstanceAttribute",
262
+ "title": "instance attribute"
263
+ },
264
+ {
265
+ "id": "Public",
266
+ "title": "public"
267
+ }
268
+ ]
269
+ }
270
+ ]
271
+ },
272
+ {
273
+ "title": "Instance Methods",
274
+ "type": "InstanceMethods",
275
+ "kind": "method",
276
+ "level": "instance",
277
+ "id": "Duck::InstanceMethods",
278
+ "members": [
279
+ {
280
+ "id": "Duck::quack",
281
+ "title": "quack",
282
+ "signature": "quack()",
283
+ "comment": "<p>Implements quacking</p>",
284
+ "code": "<span class=\"ruby-comment\"># File example.rb, line 86</span>\n<span class=\"ruby-keyword\">def</span> <span class=\"ruby-identifier\">quack</span>\n <span class=\"ruby-string\">&#39;quack&#39;</span>\n<span class=\"ruby-keyword\">end</span>",
285
+ "level": "instance",
286
+ "visibility": "private",
287
+ "kind": "method",
288
+ "labels": [
289
+ {
290
+ "id": "InstanceMethod",
291
+ "title": "instance method"
292
+ },
293
+ {
294
+ "id": "Private",
295
+ "title": "private"
296
+ }
297
+ ]
298
+ },
299
+ {
300
+ "id": "Duck::speak",
301
+ "title": "speak",
302
+ "signature": "speak() { |speech| ... }",
303
+ "comment": "<p><a href=\"Duck.html\">Duck</a> overrides generic implementation.</p>",
304
+ "code": "<span class=\"ruby-comment\"># File example.rb, line 80</span>\n<span class=\"ruby-keyword\">def</span> <span class=\"ruby-identifier\">speak</span>\n <span class=\"ruby-identifier\">speech</span> = <span class=\"ruby-identifier\">quack</span>\n <span class=\"ruby-keyword\">yield</span> <span class=\"ruby-identifier\">speech</span>\n<span class=\"ruby-keyword\">end</span>",
305
+ "level": "instance",
306
+ "visibility": "public",
307
+ "kind": "method",
308
+ "labels": [
309
+ {
310
+ "id": "InstanceMethod",
311
+ "title": "instance method"
312
+ },
313
+ {
314
+ "id": "Public",
315
+ "title": "public"
316
+ }
317
+ ]
318
+ },
319
+ {
320
+ "id": "Duck::useful?",
321
+ "title": "useful?",
322
+ "signature": "Bird.useful? -> bool",
323
+ "comment": "<p>Checks if this duck is a useful one.</p>",
324
+ "code": "<span class=\"ruby-comment\"># File example.rb, line 124</span>\n<span class=\"ruby-keyword\">def</span> <span class=\"ruby-identifier\">useful?</span>\n <span class=\"ruby-ivar\">@domestic</span> <span class=\"ruby-operator\">||</span> <span class=\"ruby-ivar\">@rubber</span>\n<span class=\"ruby-keyword\">end</span>",
325
+ "level": "instance",
326
+ "visibility": "public",
327
+ "kind": "method",
328
+ "labels": [
329
+ {
330
+ "id": "InstanceMethod",
331
+ "title": "instance method"
332
+ },
333
+ {
334
+ "id": "Public",
335
+ "title": "public"
336
+ }
337
+ ]
338
+ }
339
+ ]
340
+ }
341
+ ],
342
+ "labels": [
343
+ {
344
+ "id": "Class",
345
+ "title": "class"
346
+ }
347
+ ]
348
+ },
349
+ {
350
+ "id": "Object",
351
+ "title": "Object",
352
+ "kind": "class",
353
+ "comment": "",
354
+ "groups": [
355
+ {
356
+ "title": "Constants",
357
+ "type": "Constants",
358
+ "kind": "constant",
359
+ "id": "Object::Constants",
360
+ "members": [
361
+ {
362
+ "id": "Object::DEFAULT_DUCK_VELOCITY",
363
+ "title": "DEFAULT_DUCK_VELOCITY",
364
+ "signature": "",
365
+ "comment": "<p>Default velocity for a flying duck.</p>",
366
+ "kind": "constant",
367
+ "labels": [
368
+ {
369
+ "id": "Constant",
370
+ "title": "constant"
371
+ }
372
+ ]
373
+ }
374
+ ]
375
+ }
376
+ ],
377
+ "labels": [
378
+ {
379
+ "id": "Class",
380
+ "title": "class"
381
+ }
382
+ ]
383
+ },
384
+ {
385
+ "id": "Waterfowl",
386
+ "title": "Waterfowl",
387
+ "kind": "module",
388
+ "comment": "<p>A mixin for waterfowl creatures.</p>",
389
+ "groups": [
390
+ {
391
+ "title": "Instance Methods",
392
+ "type": "InstanceMethods",
393
+ "kind": "method",
394
+ "level": "instance",
395
+ "id": "Waterfowl::InstanceMethods",
396
+ "members": [
397
+ {
398
+ "id": "Waterfowl::swim",
399
+ "title": "swim",
400
+ "signature": "swim()",
401
+ "comment": "<p>Swimming helper.</p>",
402
+ "code": "<span class=\"ruby-comment\"># File example.rb, line 19</span>\n<span class=\"ruby-keyword\">def</span> <span class=\"ruby-identifier\">swim</span>\n <span class=\"ruby-identifier\">puts</span> <span class=\"ruby-string\">&#39;swimming around&#39;</span>\n<span class=\"ruby-keyword\">end</span>",
403
+ "level": "instance",
404
+ "visibility": "public",
405
+ "kind": "method",
406
+ "labels": [
407
+ {
408
+ "id": "InstanceMethod",
409
+ "title": "instance method"
410
+ },
411
+ {
412
+ "id": "Public",
413
+ "title": "public"
414
+ }
415
+ ]
416
+ }
417
+ ]
418
+ }
419
+ ],
420
+ "labels": [
421
+ {
422
+ "id": "Module",
423
+ "title": "module"
424
+ }
425
+ ]
426
+ }
427
+ ]
428
+ }
@@ -0,0 +1,210 @@
1
+ @charset "UTF-8";
2
+ body {
3
+ margin: 0 10px 10px 2px;
4
+ font-family: RobotoRegular;
5
+ font-size: 16px; }
6
+ body header {
7
+ font-family: RalewaySemiBold; }
8
+ body a {
9
+ color: black;
10
+ text-decoration: none; }
11
+ body summary {
12
+ outline: none;
13
+ display: inline-block; }
14
+ body summary::-webkit-details-marker {
15
+ display: none; }
16
+ body .label {
17
+ display: inline-block;
18
+ margin: 0 2px 0 2px; }
19
+ body .labelModule {
20
+ background-color: #dff0d8;
21
+ color: #3c763d;
22
+ font-size: 12px;
23
+ padding: 3px 5px;
24
+ border-radius: 8px; }
25
+ body .labelClass {
26
+ background-color: #dff0d8;
27
+ color: #3c763d;
28
+ font-size: 12px;
29
+ padding: 3px 5px;
30
+ border-radius: 8px; }
31
+ body .labelIncluded {
32
+ background-color: #dff0d8;
33
+ color: #3c763d;
34
+ font-size: 12px;
35
+ padding: 3px 5px;
36
+ border-radius: 8px; }
37
+ body .labelExtended {
38
+ background-color: #dff0d8;
39
+ color: #3c763d;
40
+ font-size: 12px;
41
+ padding: 3px 5px;
42
+ border-radius: 8px; }
43
+ body .labelConstant {
44
+ background-color: #dff0d8;
45
+ color: #3c763d;
46
+ font-size: 12px;
47
+ padding: 3px 5px;
48
+ border-radius: 8px; }
49
+ body .labelClassMethod {
50
+ background-color: #dff0d8;
51
+ color: #3c763d;
52
+ font-size: 12px;
53
+ padding: 3px 5px;
54
+ border-radius: 8px; }
55
+ body .labelInstanceMethod {
56
+ background-color: #d9edf7;
57
+ color: #31708f;
58
+ font-size: 12px;
59
+ padding: 3px 5px;
60
+ border-radius: 8px; }
61
+ body .labelClassAttribute {
62
+ background-color: #d9edf7;
63
+ color: #31708f;
64
+ font-size: 12px;
65
+ padding: 3px 5px;
66
+ border-radius: 8px; }
67
+ body .labelInstanceAttribute {
68
+ background-color: #dff0d8;
69
+ color: #3c763d;
70
+ font-size: 12px;
71
+ padding: 3px 5px;
72
+ border-radius: 8px; }
73
+ body .labelPublic {
74
+ background-color: #fcf8e3;
75
+ color: #8a6d3b;
76
+ font-size: 12px;
77
+ padding: 3px 5px;
78
+ border-radius: 8px; }
79
+ body .labelPrivate {
80
+ background-color: #fcf8e3;
81
+ color: #8a6d3b;
82
+ font-size: 12px;
83
+ padding: 3px 5px;
84
+ border-radius: 8px; }
85
+ body .labelProtected {
86
+ background-color: #fcf8e3;
87
+ color: #8a6d3b;
88
+ font-size: 12px;
89
+ padding: 3px 5px;
90
+ border-radius: 8px; }
91
+ body .mainHeader {
92
+ font-size: 32px;
93
+ font-weight: 600;
94
+ padding: 10px 0;
95
+ margin: 10px 0 10px 350px; }
96
+ body aside {
97
+ float: left;
98
+ width: 325px;
99
+ overflow: hidden;
100
+ position: fixed;
101
+ overflow-y: scroll;
102
+ bottom: 0;
103
+ top: 0;
104
+ padding-top: 10px;
105
+ padding-right: 8px; }
106
+ body aside a {
107
+ display: inline-block; }
108
+ body aside .tocClassBlock {
109
+ border: 1px solid rgba(136, 136, 136, 0.12);
110
+ background-color: #fafafa;
111
+ border-radius: 3px;
112
+ margin: 7px;
113
+ width: 300px;
114
+ position: relative;
115
+ padding: 0px 2px 0px 2px; }
116
+ body aside .tocClassBlock:first-child {
117
+ margin-top: 0; }
118
+ body aside .tocClassBlock summary {
119
+ display: flex;
120
+ align-items: center;
121
+ justify-content: center; }
122
+ body aside .tocClassBlock summary:after {
123
+ content: "+";
124
+ color: #000;
125
+ font-size: 20px;
126
+ text-align: center;
127
+ width: 20px;
128
+ position: absolute;
129
+ width: 40px;
130
+ top: 9%;
131
+ right: 0px; }
132
+ body aside .tocClassBlock[open] summary:after {
133
+ content: "−"; }
134
+ body aside .tocClassBlock .tocClass {
135
+ flex-grow: 1;
136
+ width: 190px;
137
+ word-wrap: break-word;
138
+ padding: 5px 3px 5px 3px; }
139
+ body aside .tocClassBlock .tocGroupBlock {
140
+ background-color: white; }
141
+ body aside .tocClassBlock .tocGroupBlock .tocGroup {
142
+ display: block;
143
+ padding: 5px 20px;
144
+ border-bottom: 1px solid #f2f2f2;
145
+ border-left: 3px solid transparent; }
146
+ body aside .tocClassBlock .tocGroupBlock .tocGroup:hover {
147
+ border-left: 3px solid #d0e7f2; }
148
+ body aside .tocClassBlock .tocGroupBlock .tocGroup:last-child {
149
+ border-bottom: none; }
150
+ body main {
151
+ margin-left: 340px; }
152
+ body main .classBlock {
153
+ border: 1px solid #d9d9d9;
154
+ border-radius: 5px;
155
+ margin-top: 15px; }
156
+ body main .classBlock .classHeader {
157
+ display: flex;
158
+ align-items: center;
159
+ justify-content: center;
160
+ background: #f3f3f3;
161
+ color: black;
162
+ padding: 5px;
163
+ font-size: 22px; }
164
+ body main .classBlock .classHeader .className {
165
+ flex-grow: 1;
166
+ padding-left: 4px; }
167
+ body main .classBlock .classComment {
168
+ padding: 5px 5px 0 13px; }
169
+ body main .classBlock .groupBlock {
170
+ border-top: 1px solid #d9d9d9;
171
+ padding: 5px 5px 0 5px;
172
+ border-radius: 5px; }
173
+ body main .classBlock .groupBlock .groupHeader {
174
+ background: none;
175
+ color: black;
176
+ padding: 7px;
177
+ font-size: 18px; }
178
+ body main .classBlock .groupBlock .memberBlock {
179
+ padding-bottom: 15px;
180
+ border-bottom: 1px solid #d9d9d9;
181
+ margin: 10px 30px 0 30px; }
182
+ body main .classBlock .groupBlock .memberBlock:last-child {
183
+ border-bottom: none; }
184
+ body main .classBlock .groupBlock .memberBlock .memberHeader {
185
+ display: flex;
186
+ align-items: center;
187
+ justify-content: center; }
188
+ body main .classBlock .groupBlock .memberBlock .memberHeader .memberName {
189
+ flex-grow: 1;
190
+ font-weight: bolder;
191
+ padding-left: 4px; }
192
+ body main .classBlock .groupBlock .memberBlock .memberSignature {
193
+ font-size: 15px; }
194
+ body main .classBlock .groupBlock .memberBlock .memberComment {
195
+ font-size: 16px; }
196
+ body main .classBlock .groupBlock .memberBlock .memberCode {
197
+ border: 1px solid #d9d9d9;
198
+ border-radius: 6px; }
199
+ body main .classBlock .groupBlock .memberBlock .memberCode summary:before {
200
+ display: inline-block;
201
+ vertical-align: middle;
202
+ padding: 0 8px 0 8px;
203
+ content: "+";
204
+ font-size: 20px;
205
+ color: #000; }
206
+ body main .classBlock .groupBlock .memberBlock .memberCode[open] summary:before {
207
+ content: "−"; }
208
+ body main .classBlock .groupBlock .memberBlock .memberCode pre {
209
+ padding: 0 8px 0 8px;
210
+ font-size: 14px; }
@@ -0,0 +1,22 @@
1
+ .memberCode {
2
+ background: #fafafa; }
3
+ .memberCode .ruby-constant {
4
+ color: #986801; }
5
+ .memberCode .ruby-keyword {
6
+ color: #a626a4; }
7
+ .memberCode .ruby-ivar {
8
+ color: #e45649; }
9
+ .memberCode .ruby-operator {
10
+ color: #4078f2; }
11
+ .memberCode .ruby-identifier {
12
+ color: #986801; }
13
+ .memberCode .ruby-node {
14
+ color: #c18401; }
15
+ .memberCode .ruby-comment {
16
+ color: #0120bc; }
17
+ .memberCode .ruby-regexp {
18
+ color: #0184bc; }
19
+ .memberCode .ruby-value {
20
+ color: #ca1243; }
21
+ .memberCode .ruby-string {
22
+ color: #50a14f; }
@@ -0,0 +1 @@
1
+ require 'solarfish'