sdoc_local_editor 0.3.17

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