sdoc 0.3.2 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. data/lib/{sdoc → rdoc}/generator/template/merge/index.rhtml +0 -0
  2. data/lib/{sdoc/generator/template/direct → rdoc/generator/template/rails}/_context.rhtml +0 -0
  3. data/lib/{sdoc/generator/template/direct → rdoc/generator/template/rails}/_head.rhtml +0 -0
  4. data/lib/{sdoc/generator/template/direct → rdoc/generator/template/rails}/class.rhtml +0 -0
  5. data/lib/{sdoc/generator/template/direct → rdoc/generator/template/rails}/file.rhtml +0 -0
  6. data/lib/{sdoc/generator/template/direct → rdoc/generator/template/rails}/index.rhtml +0 -0
  7. data/lib/{sdoc/generator/template/direct → rdoc/generator/template/rails}/resources/apple-touch-icon.png +0 -0
  8. data/lib/{sdoc/generator/template/direct → rdoc/generator/template/rails}/resources/css/github.css +0 -0
  9. data/lib/rdoc/generator/template/rails/resources/css/main.css +287 -0
  10. data/lib/rdoc/generator/template/rails/resources/css/panel.css +383 -0
  11. data/lib/{sdoc/generator/template/direct → rdoc/generator/template/rails}/resources/css/reset.css +0 -0
  12. data/lib/{sdoc/generator/template/direct → rdoc/generator/template/rails}/resources/favicon.ico +0 -0
  13. data/lib/{sdoc/generator/template/direct → rdoc/generator/template/rails}/resources/i/arrows.png +0 -0
  14. data/lib/{sdoc/generator/template/direct → rdoc/generator/template/rails}/resources/i/results_bg.png +0 -0
  15. data/lib/{sdoc/generator/template/direct → rdoc/generator/template/rails}/resources/i/tree_bg.png +0 -0
  16. data/lib/{sdoc/generator/template/direct → rdoc/generator/template/rails}/resources/js/highlight.pack.js +0 -0
  17. data/lib/{sdoc/generator/template/direct → rdoc/generator/template/rails}/resources/js/jquery-1.3.2.min.js +0 -0
  18. data/lib/{sdoc/generator/template/direct → rdoc/generator/template/rails}/resources/js/jquery-effect.js +0 -0
  19. data/lib/{sdoc/generator/template/direct → rdoc/generator/template/rails}/resources/js/main.js +0 -0
  20. data/lib/{sdoc/generator/template/direct → rdoc/generator/template/rails}/resources/js/searchdoc.js +0 -0
  21. data/lib/{sdoc/generator/template/direct → rdoc/generator/template/rails}/resources/panel/index.html +0 -0
  22. data/lib/{sdoc/generator/template/direct → rdoc/generator/template/rails}/se_index.rhtml +0 -0
  23. data/lib/rdoc/generator/template/sdoc/_context.rhtml +171 -0
  24. data/lib/rdoc/generator/template/sdoc/_head.rhtml +7 -0
  25. data/lib/rdoc/generator/template/sdoc/class.rhtml +39 -0
  26. data/lib/rdoc/generator/template/sdoc/file.rhtml +29 -0
  27. data/lib/rdoc/generator/template/sdoc/index.rhtml +13 -0
  28. data/lib/rdoc/generator/template/sdoc/resources/apple-touch-icon.png +0 -0
  29. data/lib/rdoc/generator/template/sdoc/resources/css/github.css +129 -0
  30. data/lib/{sdoc/generator/template/direct → rdoc/generator/template/sdoc}/resources/css/main.css +0 -0
  31. data/lib/{sdoc/generator/template/direct → rdoc/generator/template/sdoc}/resources/css/panel.css +0 -0
  32. data/lib/rdoc/generator/template/sdoc/resources/css/reset.css +53 -0
  33. data/lib/rdoc/generator/template/sdoc/resources/favicon.ico +0 -0
  34. data/lib/rdoc/generator/template/sdoc/resources/i/arrows.png +0 -0
  35. data/lib/rdoc/generator/template/sdoc/resources/i/results_bg.png +0 -0
  36. data/lib/rdoc/generator/template/sdoc/resources/i/tree_bg.png +0 -0
  37. data/lib/rdoc/generator/template/sdoc/resources/js/highlight.pack.js +1 -0
  38. data/lib/rdoc/generator/template/sdoc/resources/js/jquery-1.3.2.min.js +19 -0
  39. data/lib/rdoc/generator/template/sdoc/resources/js/jquery-effect.js +593 -0
  40. data/lib/rdoc/generator/template/sdoc/resources/js/main.js +24 -0
  41. data/lib/rdoc/generator/template/sdoc/resources/js/searchdoc.js +628 -0
  42. data/lib/rdoc/generator/template/sdoc/resources/panel/index.html +72 -0
  43. data/lib/rdoc/generator/template/sdoc/se_index.rhtml +8 -0
  44. data/lib/sdoc/generator.rb +3 -20
  45. data/lib/sdoc/templatable.rb +2 -1
  46. data/sdoc.gemspec +1 -1
  47. metadata +46 -25
@@ -0,0 +1,287 @@
1
+ body {
2
+ font-family: "Helvetica Neue", Arial, sans-serif;
3
+ background: #FFF;
4
+ color: #000;
5
+ margin: 0px;
6
+ font-size: 0.82em;
7
+ line-height: 1.25em;
8
+ }
9
+
10
+ a:link, a:active, a:visited, a:hover {
11
+ color: #980905;
12
+ text-decoration: none;
13
+ }
14
+
15
+ a:hover {
16
+ color: #333;
17
+ background: #FE8;
18
+ }
19
+
20
+ h1 a, h2 a, .sectiontitle a, .banner a {
21
+ color: #fff;
22
+ }
23
+
24
+ h1 a:hover, h2 a:hover, .sectiontitle a:hover, .banner a:hover {
25
+ color: #fff;
26
+ }
27
+
28
+ p {
29
+ margin-bottom: 1em;
30
+ }
31
+
32
+ h1 {
33
+ font-size: 2.1em;
34
+ font-weight: normal;
35
+ line-height: 1.2em;
36
+ margin: 1.4em 0 0.7em 0;
37
+ }
38
+
39
+ h2 {
40
+ font-size: 1.6em;
41
+ margin: 1.8em 0 0.8em 0;
42
+ font-weight: normal;
43
+ line-height: 1.2em;
44
+ }
45
+
46
+ h3 {
47
+ font-size: 1.4em;
48
+ color:#555;
49
+ margin: 1.4em 0 0.7em 0;
50
+ font-weight: normal;
51
+ }
52
+
53
+ h4 {
54
+ margin: 1.4em 0 0.5em 0;
55
+ font-size: 1em;
56
+ }
57
+
58
+ table
59
+ {
60
+ margin-bottom: 1em;
61
+ }
62
+
63
+ td, th
64
+ {
65
+ padding: 0 0.7em 0.3em 0;
66
+ }
67
+
68
+ th
69
+ {
70
+ font-weight: bold;
71
+ }
72
+
73
+ .clear
74
+ {
75
+ clear: both;
76
+ width: 0; height: 0;
77
+ }
78
+
79
+ dt
80
+ {
81
+ margin-bottom: 0.3em;
82
+ font-weight: bold;
83
+ }
84
+
85
+ dd
86
+ {
87
+ margin-left: 2em;
88
+ margin-bottom: 1em;
89
+ }
90
+
91
+ dd p
92
+ {
93
+ margin-top: 0.6em;
94
+ }
95
+
96
+ li
97
+ {
98
+ margin: 0 0 0.5em 2em;
99
+ }
100
+
101
+ ul li
102
+ {
103
+ list-style: disc;
104
+ }
105
+
106
+ ol li
107
+ {
108
+ list-style: decimal;
109
+ }
110
+
111
+ .banner
112
+ {
113
+ background: #C52F24;
114
+ color: #FFF;
115
+ border: 1px solid #980905;
116
+ padding: 1em;
117
+ }
118
+ .banner h1
119
+ {
120
+ font-size: 1.2em;
121
+ margin: 0;
122
+ }
123
+
124
+ .banner h1 .type
125
+ {
126
+ font-size: 0.833em;
127
+ display:block;
128
+ }
129
+
130
+ .banner h1 .type,
131
+ .banner h1 .parent
132
+ {
133
+ color: #CCC;
134
+ }
135
+
136
+ .banner ul
137
+ {
138
+ margin-top: 0.3em;
139
+ margin-bottom: 0;
140
+ font-size: 0.85em;
141
+ }
142
+
143
+ .banner li
144
+ {
145
+ list-style: none;
146
+ margin-left: 0;
147
+ margin-bottom: 0;
148
+ }
149
+
150
+ pre
151
+ {
152
+ margin-bottom: 1em;
153
+ }
154
+
155
+ .methods dt
156
+ {
157
+ width: 1em;
158
+ font-size: 1.5em;
159
+ color:#AAA;
160
+ position: absolute;
161
+ font-weight: normal;
162
+ margin: 0;
163
+ }
164
+
165
+ .methods dd
166
+ {
167
+ margin-left: 2.5em;
168
+ min-height: 1.8em;
169
+ -height: 1.8em;
170
+ padding-bottom: 0.8em;
171
+ }
172
+
173
+
174
+ .methods ul li
175
+ {
176
+ margin-right: 0.7em;
177
+ margin-left: 0;
178
+ list-style: none;
179
+ display: inline;
180
+ }
181
+
182
+ #content {
183
+ margin: 2em;
184
+ margin-left: 3.5em;
185
+ margin-right: 3.5em;
186
+ }
187
+
188
+
189
+ .sectiontitle {
190
+ margin-top: 2em;
191
+ margin-bottom: 1.3em;
192
+ margin-left: -1.2em;
193
+ font-size: 1.2em;
194
+ padding: 0 0 0.25em 0;
195
+ font-weight: bold;
196
+ border-bottom: 1px solid #000;
197
+ }
198
+
199
+ .attr-rw {
200
+ padding-right: 1em;
201
+ text-align: center;
202
+ color: #055;
203
+ }
204
+
205
+ .attr-name {
206
+ font-weight: bold;
207
+ padding-right: 1em;
208
+ }
209
+
210
+ .attr-desc {
211
+ }
212
+
213
+ tt {
214
+ font-size: 1.15em;
215
+ }
216
+
217
+ .attr-value {
218
+ font-family: monospace;
219
+ padding-left: 1em;
220
+ font-size: 1.15em;
221
+ }
222
+
223
+ .dyn-source {
224
+ display: none;
225
+ background: #fffde8;
226
+ color: #000;
227
+ border: #ffe0bb dotted 1px;
228
+ margin: 0.5em 2em 0.5em 0;
229
+ padding: 0.5em;
230
+ }
231
+
232
+ .dyn-source .cmt {
233
+ color: #00F;
234
+ font-style: italic;
235
+ }
236
+
237
+ .dyn-source .kw {
238
+ color: #070;
239
+ font-weight: bold;
240
+ }
241
+
242
+ .description pre {
243
+ padding: 0.5em;
244
+ border: #ffe0bb dotted 1px;
245
+ background: #fffde8;
246
+ }
247
+
248
+ .method {
249
+ margin-bottom: 2em;
250
+ }
251
+ .method .description,
252
+ .method .sourcecode
253
+ {
254
+ margin-left: 1.2em;
255
+ }
256
+ .method h4
257
+ {
258
+ border-bottom: 1px dotted #999;
259
+ padding: 0 0 0.2em 0;
260
+ margin-bottom: 0.8em;
261
+ font-size: 1.1em;
262
+ color:#333;
263
+ }
264
+ .method .title {
265
+ border-bottom: 1px dotted #666;
266
+ padding: 0 0 0.15em 0;
267
+ margin: 0 0 0.5em 0;
268
+ font-size: 1.2em;
269
+ line-height: 1.25em;
270
+ }
271
+
272
+ .method .sourcecode p.source-link {
273
+ text-indent: 0em;
274
+ margin-top: 0.5em;
275
+ }
276
+
277
+ .method .aka {
278
+ margin-top: 0.3em;
279
+ margin-left: 1em;
280
+ font-style: italic;
281
+ text-indent: 2em;
282
+ }
283
+
284
+ .method .source-link
285
+ {
286
+ font-size: 0.85em;
287
+ }
@@ -0,0 +1,383 @@
1
+ /* Panel (begin) */
2
+ .panel
3
+ {
4
+ position: absolute;
5
+ width: 100%;
6
+ height: 100%;
7
+ top: 0;
8
+ left: 0;
9
+ background: #FFF;
10
+ z-index: 2;
11
+ font-family: "Helvetica Neue", "Arial", sans-serif;
12
+ //zoom: 1;
13
+ }
14
+
15
+ .panel_tree .results,
16
+ .panel_results .tree
17
+ {
18
+ display: none;
19
+ }
20
+
21
+ /* Header with search box (begin) */
22
+ .panel .header
23
+ {
24
+ width: 100%;
25
+ height: 29px;
26
+ border-bottom: 1px solid #666;
27
+ position: relative;
28
+ left: 0; top: 0;
29
+ background: #e8e8e8;
30
+ }
31
+
32
+ .panel .header div
33
+ {
34
+ margin: 0 7px;
35
+ }
36
+ .panel .header table
37
+ {
38
+ height: 29px;
39
+ width: 100%;
40
+ }
41
+
42
+ .panel .header table td
43
+ {
44
+ vertical-align: middle;
45
+ text-align: middle;
46
+ }
47
+
48
+ .panel .header label
49
+ {
50
+ position: absolute;
51
+ font-size: 12px;
52
+ line-height: 29px;
53
+ margin-left: 3px;
54
+ color: #999;
55
+ cursor: text;
56
+ }
57
+
58
+ .panel .header table input
59
+ {
60
+ width: 100%;
61
+ box-sizing: border-box;
62
+ -moz-box-sizing: border-box;
63
+ -webkit-box-sizing: border-box;
64
+ display: inline-block;
65
+ -webkit-appearance: searchfield;
66
+ height: 22px;
67
+ //height: auto;
68
+ }
69
+
70
+ /* Header with search box (end) */
71
+
72
+
73
+ /* Results (begin) */
74
+ .panel .result
75
+ {
76
+ position: absolute;
77
+ top: 30px;
78
+ bottom: 0;
79
+ left: 0;
80
+ width: 100%;
81
+ //height: expression((this.parentNode.offsetHeight - 31));
82
+ overflow-y: scroll;
83
+ overflow-x: hidden;
84
+ -overflow-y: hidden;
85
+ background: #EEE url(../i/results_bg.png);
86
+ z-index: 2;
87
+ //zoom:1;
88
+ }
89
+
90
+ .panel .result ul
91
+ {
92
+ font-size: 0.8em;
93
+ width: 100%;
94
+ background: #EEE url(../i/results_bg.png);
95
+ //zoom:1;
96
+ }
97
+
98
+ .panel .result ul li
99
+ {
100
+ height: 46px;
101
+ -height: 50px;
102
+ //display: inline;
103
+ //width: 100%;
104
+ //zoom: 1;
105
+ overflow: hidden;
106
+ padding: 4px 10px 0 10px;
107
+ cursor: pointer;
108
+ }
109
+
110
+ .panel .result ul li h1
111
+ {
112
+ font-size: 13px;
113
+ font-weight: normal;
114
+ color: #333;
115
+ margin-bottom: 2px;
116
+ white-space: nowrap;
117
+ }
118
+
119
+ .panel .result ul li p
120
+ {
121
+ font-size: 11px;
122
+ color: #333;
123
+ margin-bottom: 2px;
124
+ white-space: nowrap;
125
+ }
126
+
127
+ .panel .result ul li h1 i,
128
+ .panel .result ul li p.snippet
129
+ {
130
+ color: #999;
131
+ }
132
+
133
+ .panel .result ul li b
134
+ {
135
+ color: #000;
136
+ }
137
+
138
+ .panel .result ul li.current
139
+ {
140
+ background: #C52F24;
141
+ }
142
+
143
+ .panel .result ul li.current h1,
144
+ .panel .result ul li.current p
145
+ {
146
+ color: #DDD;
147
+ }
148
+
149
+ .panel .result ul li.current h1 i,
150
+ .panel .result ul li.current p.snippet
151
+ {
152
+ color: #AAA;
153
+ }
154
+
155
+ .panel .result ul li.current b
156
+ {
157
+ color: #FFF;
158
+ }
159
+
160
+
161
+ .panel .result ul li:hover,
162
+ .panel .result ul li.selected
163
+ {
164
+ background: #d0d0d0;
165
+ }
166
+
167
+ .panel .result ul li.current:hover
168
+ {
169
+ background: #C52F24;
170
+ }
171
+
172
+ .panel .result ul li .badge
173
+ {
174
+ margin-right: 0.4em;
175
+ margin-left: -0.2em;
176
+ padding: 0 0.2em;
177
+ color: #000;
178
+ }
179
+
180
+ .panel .result ul li .badge_1
181
+ {
182
+ background: #ACDBF4;
183
+ }
184
+
185
+ .panel .result ul li.current .badge_1
186
+ {
187
+ background: #97BFD7;
188
+ }
189
+
190
+ .panel .result ul li .badge_2
191
+ {
192
+ background: #ACF3C3;
193
+ }
194
+
195
+ .panel .result ul li.current .badge_2
196
+ {
197
+ background: #98D7AC;
198
+ }
199
+
200
+ .panel .result ul li .badge_3
201
+ {
202
+ background: #E0F3AC;
203
+ }
204
+
205
+ .panel .result ul li.current .badge_3
206
+ {
207
+ background: #C4D798;
208
+ }
209
+
210
+ .panel .result ul li .badge_4
211
+ {
212
+ background: #D7CA98;
213
+ }
214
+
215
+ .panel .result ul li.current .badge_4
216
+ {
217
+ background: #A6B0AC;
218
+ }
219
+
220
+ .panel .result ul li .badge_5
221
+ {
222
+ background: #F3C8AC;
223
+ }
224
+
225
+ .panel .result ul li.current .badge_5
226
+ {
227
+ background: #D7B198;
228
+ }
229
+
230
+ .panel .result ul li .badge_6
231
+ {
232
+ background: #F3ACC3;
233
+ }
234
+
235
+ .panel .result ul li.current .badge_6
236
+ {
237
+ background: #D798AB;
238
+ }
239
+
240
+ /* Results (end) */
241
+
242
+ /* Tree (begin) */ /**/
243
+ .panel .tree
244
+ {
245
+ position: absolute;
246
+ top: 30px;
247
+ bottom: 0;
248
+ left: 0;
249
+ width: 100%;
250
+ //zoom: 1;
251
+ //height: expression((this.parentNode.offsetHeight - 31));
252
+ overflow-y: scroll;
253
+ overflow-x: hidden;
254
+ -overflow-y: hidden;
255
+ background: #EEE url(../i/tree_bg.png);
256
+ z-index: 30;
257
+ }
258
+
259
+ .panel .tree ul
260
+ {
261
+ background: #EEE url(../i/tree_bg.png);
262
+ }
263
+
264
+ .panel .tree li
265
+ {
266
+ cursor: pointer;
267
+ overflow: hidden;
268
+ //height: 23px;
269
+ //display: inline;
270
+ //zoom: 1;
271
+ //width: 100%;
272
+ }
273
+
274
+
275
+ .panel .tree li .content
276
+ {
277
+ padding-left: 18px;
278
+ padding-top: 5px;
279
+ height: 18px;
280
+ overflow: hidden;
281
+ position: relative;
282
+ }
283
+
284
+ .panel .tree li .icon
285
+ {
286
+ width: 10px;
287
+ height: 9px;
288
+ background: url(../i/arrows.png);
289
+ background-position: 0 -9px;
290
+ position: absolute;
291
+ left: 1px;
292
+ top: 8px;
293
+ cursor: default;
294
+ }
295
+
296
+ .panel .tree li.closed .icon
297
+ {
298
+ background-position: 0 0;
299
+ }
300
+
301
+ .panel .tree ul li h1
302
+ {
303
+ font-size: 13px;
304
+ font-weight: normal;
305
+ color: #000;
306
+ margin-bottom: 2px;
307
+ white-space: nowrap;
308
+ }
309
+
310
+ .panel .tree ul li p
311
+ {
312
+ font-size: 11px;
313
+ color: #666;
314
+ margin-bottom: 2px;
315
+ white-space: nowrap;
316
+ }
317
+
318
+ .panel .tree ul li h1 i
319
+ {
320
+ color: #999;
321
+ font-style: normal;
322
+ }
323
+
324
+ .panel .tree ul li.empty
325
+ {
326
+ cursor: text;
327
+ }
328
+
329
+ .panel .tree ul li.empty h1,
330
+ .panel .tree ul li.empty p
331
+ {
332
+ color: #666;
333
+ font-style: italic;
334
+ }
335
+
336
+ .panel .tree ul li.current
337
+ {
338
+ background: #C52F24;
339
+ }
340
+
341
+ .panel .tree ul li.current .icon
342
+ {
343
+ background-position: -10px -9px;
344
+ }
345
+
346
+ .panel .tree ul li.current.closed .icon
347
+ {
348
+ background-position: -10px 0;
349
+ }
350
+
351
+ .panel .tree ul li.current h1
352
+ {
353
+ color: #FFF;
354
+ }
355
+
356
+ .panel .tree ul li.current p
357
+ {
358
+ color: #CCC;
359
+ }
360
+
361
+ .panel .tree ul li.current.empty h1,
362
+ .panel .tree ul li.current.empty p
363
+ {
364
+ color: #999;
365
+ }
366
+
367
+ .panel .tree ul li:hover
368
+ {
369
+ background: #d0d0d0;
370
+ }
371
+
372
+ .panel .tree ul li.current:hover
373
+ {
374
+ background: #C52F24;
375
+ }
376
+
377
+ .panel .tree .stopper
378
+ {
379
+ display: none;
380
+ }
381
+ /* Tree (end) */ /**/
382
+
383
+ /* Panel (end) */