rdoc-generator-fivefish 0.0.1.pre34 → 0.0.1.pre38
Sign up to get free protection for your applications and to get access to all the features.
data.tar.gz.sig
CHANGED
Binary file
|
@@ -1,62 +1,367 @@
|
|
1
|
+
/**
|
2
|
+
* Fivefish CSS
|
3
|
+
* $Id$
|
4
|
+
*
|
5
|
+
* Copyright (c) 2012 by the authors
|
6
|
+
*
|
7
|
+
* Authors:
|
8
|
+
* - Michael Granger <ged@FaerieMUD.org>
|
9
|
+
*/
|
10
|
+
|
1
11
|
@import url(bootstrap.min.css);
|
12
|
+
body {
|
13
|
+
font-family: 'Istok Web';
|
14
|
+
padding-top: 45px;
|
15
|
+
background: #efefef;
|
16
|
+
}
|
2
17
|
@import url(bootstrap-responsive.min.css);
|
3
|
-
|
4
|
-
@font-face
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
.
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
.
|
42
|
-
|
43
|
-
|
44
|
-
.
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
.
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
.
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
18
|
+
|
19
|
+
@font-face {
|
20
|
+
font-family: 'Istok Web';
|
21
|
+
font-style: normal;
|
22
|
+
font-weight: 400;
|
23
|
+
src: local('Istok Web Regular'),
|
24
|
+
local('IstokWeb-Regular'),
|
25
|
+
url('../fonts/IstokWeb-Regular.woff') format('woff');
|
26
|
+
}
|
27
|
+
@font-face {
|
28
|
+
font-family: 'Istok Web';
|
29
|
+
font-style: italic;
|
30
|
+
font-weight: 400;
|
31
|
+
src: local('Istok Web Italic'),
|
32
|
+
local('IstokWeb-Italic'),
|
33
|
+
url('../fonts/IstokWeb-Italic.woff') format('woff');
|
34
|
+
}
|
35
|
+
@font-face {
|
36
|
+
font-family: 'Istok Web';
|
37
|
+
font-style: normal;
|
38
|
+
font-weight: 700;
|
39
|
+
src: local('Istok Web Bold'),
|
40
|
+
local('IstokWeb-Bold'),
|
41
|
+
url('../fonts/IstokWeb-Bold.woff') format('woff');
|
42
|
+
}
|
43
|
+
|
44
|
+
|
45
|
+
/* Page header */
|
46
|
+
h2.namespace {
|
47
|
+
color: #666;
|
48
|
+
}
|
49
|
+
|
50
|
+
div.container > header.hero-unit {
|
51
|
+
background-image: -webkit-gradient(
|
52
|
+
linear,
|
53
|
+
left bottom,
|
54
|
+
left top,
|
55
|
+
from(#c9c9c9),
|
56
|
+
color-stop(0.701, #d8d8d8),
|
57
|
+
to(#c6c6c6) );
|
58
|
+
background-image: -moz-linear-gradient(
|
59
|
+
90deg, #c9c9c9 0%, #d8d8d8 70.1%, #c6c6c6 100%);
|
60
|
+
}
|
61
|
+
|
62
|
+
/* Butt the popover up to the right of the word */
|
63
|
+
div.container > header.hero-unit h1 {
|
64
|
+
display: inline-block;
|
65
|
+
text-shadow: 1px 1px 3px rgba( 25,25,25, 0.2 );
|
66
|
+
}
|
67
|
+
|
68
|
+
/* Indexes */
|
69
|
+
section#indexes {
|
70
|
+
max-height: 460px;
|
71
|
+
}
|
72
|
+
section#indexes ul.nav-list {
|
73
|
+
max-height: 440px;
|
74
|
+
overflow-y: scroll;
|
75
|
+
overflow-x: hidden;
|
76
|
+
background: #f5f5f5;
|
77
|
+
}
|
78
|
+
|
79
|
+
section#indexes a .method-parent {
|
80
|
+
color: #666;
|
81
|
+
font-size: 11px;
|
82
|
+
font-variant: small-caps;
|
83
|
+
}
|
84
|
+
|
85
|
+
/* Class/module description */
|
86
|
+
section.description p {
|
87
|
+
font-size: 1.2em;
|
88
|
+
margin: 1em 0;
|
89
|
+
}
|
90
|
+
section.description p + p {
|
91
|
+
margin: 1em 0;
|
92
|
+
}
|
93
|
+
section.description h2 {
|
94
|
+
margin-top: 1.5em;
|
95
|
+
}
|
96
|
+
|
97
|
+
|
98
|
+
/* :section: groups */
|
99
|
+
section.documentation-section {
|
100
|
+
margin-top: 3em;
|
101
|
+
}
|
102
|
+
section .section-click-top {
|
103
|
+
float: right;
|
104
|
+
}
|
105
|
+
|
106
|
+
dl.rdoc-list {
|
107
|
+
margin: 0.5em 1em;
|
108
|
+
background: #f5f5f5;
|
109
|
+
padding: 1em;
|
110
|
+
border-radius: 1em;
|
111
|
+
}
|
112
|
+
section.constants-list dt i {
|
113
|
+
margin-right: 0.5em;
|
114
|
+
background-position: -24px -72px;
|
115
|
+
}
|
116
|
+
section.attributes-list dt i {
|
117
|
+
margin-right: 0.5em;
|
118
|
+
background-position: -456px -96px;
|
119
|
+
}
|
120
|
+
dl.rdoc-list dd,
|
121
|
+
section.constants-list dd,
|
122
|
+
section.attributes-list dd {
|
123
|
+
margin: 0 0 1em;
|
124
|
+
}
|
125
|
+
dd > p:first-child {
|
126
|
+
margin-top: 0;
|
127
|
+
}
|
128
|
+
|
129
|
+
|
130
|
+
/* "Public instance methods" + method list */
|
131
|
+
section.methods {
|
132
|
+
margin-top: 3em;
|
133
|
+
}
|
134
|
+
section.public-methods div.method header i {
|
135
|
+
background-position:0 -96px;
|
136
|
+
margin-top: 4px;
|
137
|
+
}
|
138
|
+
section.protected-methods div.method header i {
|
139
|
+
background-position:-24px -96px;
|
140
|
+
margin-top: 4px;
|
141
|
+
}
|
142
|
+
|
143
|
+
|
144
|
+
|
145
|
+
/* Individual method */
|
146
|
+
div.method {
|
147
|
+
}
|
148
|
+
div.method + div.method {
|
149
|
+
margin-top: 1em;
|
150
|
+
}
|
151
|
+
div.method header,
|
152
|
+
dl.rdoc-list dt,
|
153
|
+
section.constants-list dt,
|
154
|
+
section.attributes-list dt {
|
155
|
+
font-weight: bold;
|
156
|
+
font-size: 1.2em;
|
157
|
+
background: #eee;
|
158
|
+
}
|
159
|
+
div.method header span.method-args {
|
160
|
+
color: #666;
|
161
|
+
}
|
162
|
+
div.method div.method-description p {
|
163
|
+
color: #666;
|
164
|
+
}
|
165
|
+
|
166
|
+
|
167
|
+
/* Incremental search modal dialog */
|
168
|
+
#incremental-search header {
|
169
|
+
background: #eee;
|
170
|
+
border-radius: 3px;
|
171
|
+
padding: 2px;
|
172
|
+
}
|
173
|
+
#incremental-search .search-string {
|
174
|
+
padding: 0 0 1em;
|
175
|
+
}
|
176
|
+
#incremental-search .search-input-label {
|
177
|
+
width: 20%;
|
178
|
+
}
|
179
|
+
#incremental-search .search-input {
|
180
|
+
background-color: rgba(153, 203, 255, 0.64);
|
181
|
+
font: 22px monospace;
|
182
|
+
padding: 1px 4px;
|
183
|
+
display: inline-block;
|
184
|
+
width: 80%;
|
185
|
+
}
|
186
|
+
#incremental-search .search-input:empty:after {
|
187
|
+
color: #999;
|
188
|
+
content: "(Start typing to search)";
|
189
|
+
}
|
190
|
+
#incremental-search .search-input-label {
|
191
|
+
vertical-align: baseline;
|
192
|
+
}
|
193
|
+
#incremental-search header h4 {
|
194
|
+
font-size: 14px;
|
195
|
+
}
|
196
|
+
#incremental-search .search-results dl:empty:after {
|
197
|
+
content: "No matches.";
|
198
|
+
color: #666;
|
199
|
+
}
|
200
|
+
|
201
|
+
/* @group Source Code */
|
202
|
+
|
203
|
+
div.method-source-code {
|
204
|
+
display: none;
|
205
|
+
}
|
206
|
+
div.method-source-code pre,
|
207
|
+
.description pre,
|
208
|
+
pre.ruby {
|
209
|
+
overflow: auto;
|
210
|
+
color: #586e75;
|
211
|
+
padding: 0.5em;
|
212
|
+
border-radius: 5px;
|
213
|
+
border-color: transparent;
|
214
|
+
box-shadow: 0 0 8px rgba(25,25,25, 0.2);
|
215
|
+
background-color: #fdf6e3;
|
216
|
+
}
|
217
|
+
|
218
|
+
/* Source highlight colors courtesy of Solarized (http://ethanschoonover.com/solarized) */
|
219
|
+
.ruby-constant { color: #586e75; background: transparent; }
|
220
|
+
.ruby-keyword { color: #1360a9; background: transparent; font-weight: bold; }
|
221
|
+
.ruby-ivar { color: #2aa198; background: transparent; }
|
222
|
+
.ruby-operator { color: #859900; background: transparent; }
|
223
|
+
.ruby-identifier { color: #1d544c; background: transparent; }
|
224
|
+
.ruby-node { color: #a73407; background: transparent; }
|
225
|
+
.ruby-comment { color: #dc322f; background: transparent; font-style: italic; }
|
226
|
+
.ruby-regexp { color: #ffa07a; background: transparent; }
|
227
|
+
.ruby-value { color: #009705; background: transparent; }
|
228
|
+
.ruby-string { color: #657b83; background-color: rgba(190, 190, 190, 0.35); }
|
229
|
+
|
230
|
+
/* @end */
|
231
|
+
|
232
|
+
|
233
|
+
div.file-metadata {
|
234
|
+
float: right;
|
235
|
+
}
|
236
|
+
|
237
|
+
|
238
|
+
/* Don't show DIVs for modal dialogs at startup */
|
239
|
+
.modal {
|
240
|
+
display: none;
|
241
|
+
}
|
242
|
+
|
243
|
+
|
244
|
+
|
245
|
+
/*
|
246
|
+
Part of the jquery.dropdowns plugin
|
247
|
+
by Cory LaViska
|
248
|
+
http://labs.abeautifulsite.net/jquery-dropdown/
|
249
|
+
*/
|
250
|
+
.dropdown-menu {
|
251
|
+
font: 14px sans-serif;
|
252
|
+
position: absolute;
|
253
|
+
z-index: 9999999;
|
254
|
+
display: none;
|
255
|
+
}
|
256
|
+
|
257
|
+
.dropdown-menu UL {
|
258
|
+
min-width: 160px;
|
259
|
+
list-style: none;
|
260
|
+
background: #FFF;
|
261
|
+
border: solid 1px #DDD;
|
262
|
+
border: solid 1px rgba(0, 0, 0, .2);
|
263
|
+
border-radius: 6px;
|
264
|
+
box-shadow: 0 5px 10px rgba(0, 0, 0, .2);
|
265
|
+
overflow: visible;
|
266
|
+
padding: 4px 0;
|
267
|
+
margin: 0;
|
268
|
+
}
|
269
|
+
|
270
|
+
.dropdown-menu.has-tip {
|
271
|
+
margin-top: 8px;
|
272
|
+
}
|
273
|
+
|
274
|
+
.dropdown-menu.has-tip:before {
|
275
|
+
position: absolute;
|
276
|
+
top: -6px;
|
277
|
+
left: 9px;
|
278
|
+
content: '';
|
279
|
+
border-left: 7px solid transparent;
|
280
|
+
border-right: 7px solid transparent;
|
281
|
+
border-bottom: 7px solid #CCC;
|
282
|
+
border-bottom-color: rgba(0, 0, 0, 0.2);
|
283
|
+
display: inline-block;
|
284
|
+
}
|
285
|
+
|
286
|
+
.dropdown-menu.has-tip.anchor-right:before {
|
287
|
+
left: auto;
|
288
|
+
right: 9px;
|
289
|
+
}
|
290
|
+
|
291
|
+
.dropdown-menu.has-tip:after {
|
292
|
+
position: absolute;
|
293
|
+
top: -5px;
|
294
|
+
left: 10px;
|
295
|
+
content: '';
|
296
|
+
border-left: 6px solid transparent;
|
297
|
+
border-right: 6px solid transparent;
|
298
|
+
border-bottom: 6px solid #FFF;
|
299
|
+
display: inline-block;
|
300
|
+
}
|
301
|
+
|
302
|
+
.dropdown-menu.has-tip.anchor-right:after {
|
303
|
+
left: auto;
|
304
|
+
right: 10px;
|
305
|
+
}
|
306
|
+
|
307
|
+
|
308
|
+
.dropdown-menu.has-scroll ul {
|
309
|
+
max-height: 558px;
|
310
|
+
overflow: auto;
|
311
|
+
}
|
312
|
+
|
313
|
+
.dropdown-menu li {
|
314
|
+
list-style: none;
|
315
|
+
padding: 0;
|
316
|
+
margin: 0;
|
317
|
+
line-height: 18px;
|
318
|
+
}
|
319
|
+
|
320
|
+
.dropdown-menu li > a,
|
321
|
+
.dropdown-menu label {
|
322
|
+
display: block;
|
323
|
+
color: #555;
|
324
|
+
text-decoration: none;
|
325
|
+
line-height: 18px;
|
326
|
+
padding: 3px 15px;
|
327
|
+
white-space: nowrap;
|
328
|
+
}
|
329
|
+
|
330
|
+
.dropdown-menu li > a:hover,
|
331
|
+
.dropdown-menu label:hover {
|
332
|
+
background-color: #08C;
|
333
|
+
color: #FFF;
|
334
|
+
cursor: pointer;
|
335
|
+
}
|
336
|
+
|
337
|
+
.dropdown-menu .divider {
|
338
|
+
height: 1px;
|
339
|
+
background: #E5E5E5;
|
340
|
+
margin: 5px 1px;
|
341
|
+
overflow: hidden;
|
342
|
+
}
|
343
|
+
|
344
|
+
/* Keep the .caret from Bootstrap's dropdowns 'cause it looks nifty */
|
345
|
+
.navbar .nav .dropdown-toggle .caret,
|
346
|
+
.navbar .nav .open.dropdown .caret {
|
347
|
+
border-top-color: white;
|
348
|
+
border-bottom-color: white;
|
349
|
+
}
|
350
|
+
.dropdown-toggle .caret {
|
351
|
+
margin-top: 8px;
|
352
|
+
margin-left: 2px;
|
353
|
+
}
|
354
|
+
.caret {
|
355
|
+
display: inline-block;
|
356
|
+
width: 0;
|
357
|
+
height: 0;
|
358
|
+
vertical-align: top;
|
359
|
+
border-left: 4px solid transparent;
|
360
|
+
border-right: 4px solid transparent;
|
361
|
+
border-top: 4px solid black;
|
362
|
+
opacity: 0.3;
|
363
|
+
filter: alpha(opacity=30);
|
364
|
+
content: "";
|
365
|
+
}
|
366
|
+
|
367
|
+
|
@@ -8,7 +8,40 @@
|
|
8
8
|
* Dual licensed under the MIT or GPL Version 2 licenses
|
9
9
|
*
|
10
10
|
*/
|
11
|
-
jQuery&&
|
11
|
+
jQuery && function(a) {
|
12
|
+
function b(b) {
|
13
|
+
var d = a(this), e = a(a(this).attr("data-dropdown")), f = d.hasClass("dropdown-open");
|
14
|
+
b.preventDefault(), b.stopPropagation(), c();
|
15
|
+
if (f || d.hasClass("dropdown-disabled")) return;
|
16
|
+
e.css({
|
17
|
+
left: e.hasClass("anchor-right") ? d.offset().left - (e.outerWidth() - d.outerWidth()) : d.offset().left,
|
18
|
+
top: d.offset().top + d.outerHeight()
|
19
|
+
}).show(), d.addClass("dropdown-open");
|
20
|
+
}
|
21
|
+
function c(b) {
|
22
|
+
var c = b ? a(b.target).parents().andSelf() : null;
|
23
|
+
if (c && c.is(".dropdown-menu") && !c.is("A")) return;
|
24
|
+
a("BODY").find(".dropdown-menu").hide().end().find("[data-dropdown]").removeClass("dropdown-open");
|
25
|
+
}
|
26
|
+
a.extend(a.fn, {
|
27
|
+
dropdown: function(b, d) {
|
28
|
+
switch (b) {
|
29
|
+
case "hide":
|
30
|
+
return c(), a(this);
|
31
|
+
case "attach":
|
32
|
+
return a(this).attr("data-dropdown", d);
|
33
|
+
case "detach":
|
34
|
+
return c(), a(this).removeAttr("data-dropdown");
|
35
|
+
case "disable":
|
36
|
+
return a(this).addClass("dropdown-disabled");
|
37
|
+
case "enable":
|
38
|
+
return c(), a(this).removeClass("dropdown-disabled");
|
39
|
+
}
|
40
|
+
}
|
41
|
+
}), a(function() {
|
42
|
+
a("BODY").on("click.dropdown", "[data-dropdown]", b), a("HTML").on("click.dropdown", c);
|
43
|
+
});
|
44
|
+
}(jQuery);;
|
12
45
|
/*
|
13
46
|
* jQuery Hotkeys Plugin
|
14
47
|
* Copyright 2010, John Resig
|
@@ -20,7 +53,99 @@ jQuery&&function(a){function b(b){var d=a(this),e=a(a(this).attr("data-dropdown"
|
|
20
53
|
* Original idea by:
|
21
54
|
* Binny V A, http://www.openjs.com/scripts/events/keyboard_shortcuts/
|
22
55
|
*/
|
23
|
-
(function(a)
|
56
|
+
(function(a) {
|
57
|
+
function b(b) {
|
58
|
+
if (typeof b.data != "string") return;
|
59
|
+
var c = b.handler, d = b.data.toLowerCase().split(" ");
|
60
|
+
b.handler = function(b) {
|
61
|
+
if (!(this === b.target || !/textarea|select/i.test(b.target.nodeName) && b.target.type !== "text")) return;
|
62
|
+
var e = b.type !== "keypress" && a.hotkeys.specialKeys[b.which], f = String.fromCharCode(b.which).toLowerCase(), g, h = "", i = {};
|
63
|
+
b.altKey && e !== "alt" && (h += "alt+"), b.ctrlKey && e !== "ctrl" && (h += "ctrl+"), b.metaKey && !b.ctrlKey && e !== "meta" && (h += "meta+"), b.shiftKey && e !== "shift" && (h += "shift+"), e ? i[h + e] = !0 : (i[h + f] = !0, i[h + a.hotkeys.shiftNums[f]] = !0, h === "shift+" && (i[a.hotkeys.shiftNums[f]] = !0));
|
64
|
+
for (var j = 0, k = d.length; j < k; j++) if (i[d[j]]) return c.apply(this, arguments);
|
65
|
+
};
|
66
|
+
}
|
67
|
+
a.hotkeys = {
|
68
|
+
version: "0.8",
|
69
|
+
specialKeys: {
|
70
|
+
8: "backspace",
|
71
|
+
9: "tab",
|
72
|
+
13: "return",
|
73
|
+
16: "shift",
|
74
|
+
17: "ctrl",
|
75
|
+
18: "alt",
|
76
|
+
19: "pause",
|
77
|
+
20: "capslock",
|
78
|
+
27: "esc",
|
79
|
+
32: "space",
|
80
|
+
33: "pageup",
|
81
|
+
34: "pagedown",
|
82
|
+
35: "end",
|
83
|
+
36: "home",
|
84
|
+
37: "left",
|
85
|
+
38: "up",
|
86
|
+
39: "right",
|
87
|
+
40: "down",
|
88
|
+
45: "insert",
|
89
|
+
46: "del",
|
90
|
+
96: "0",
|
91
|
+
97: "1",
|
92
|
+
98: "2",
|
93
|
+
99: "3",
|
94
|
+
100: "4",
|
95
|
+
101: "5",
|
96
|
+
102: "6",
|
97
|
+
103: "7",
|
98
|
+
104: "8",
|
99
|
+
105: "9",
|
100
|
+
106: "*",
|
101
|
+
107: "+",
|
102
|
+
109: "-",
|
103
|
+
110: ".",
|
104
|
+
111: "/",
|
105
|
+
112: "f1",
|
106
|
+
113: "f2",
|
107
|
+
114: "f3",
|
108
|
+
115: "f4",
|
109
|
+
116: "f5",
|
110
|
+
117: "f6",
|
111
|
+
118: "f7",
|
112
|
+
119: "f8",
|
113
|
+
120: "f9",
|
114
|
+
121: "f10",
|
115
|
+
122: "f11",
|
116
|
+
123: "f12",
|
117
|
+
144: "numlock",
|
118
|
+
145: "scroll",
|
119
|
+
191: "/",
|
120
|
+
224: "meta"
|
121
|
+
},
|
122
|
+
shiftNums: {
|
123
|
+
"`": "~",
|
124
|
+
"1": "!",
|
125
|
+
"2": "@",
|
126
|
+
"3": "#",
|
127
|
+
"4": "$",
|
128
|
+
"5": "%",
|
129
|
+
"6": "^",
|
130
|
+
"7": "&",
|
131
|
+
"8": "*",
|
132
|
+
"9": "(",
|
133
|
+
"0": ")",
|
134
|
+
"-": "_",
|
135
|
+
"=": "+",
|
136
|
+
";": ": ",
|
137
|
+
"'": '"',
|
138
|
+
",": "<",
|
139
|
+
".": ">",
|
140
|
+
"/": "?",
|
141
|
+
"\\": "|"
|
142
|
+
}
|
143
|
+
}, a.each([ "keydown", "keyup", "keypress" ], function() {
|
144
|
+
a.event.special[this] = {
|
145
|
+
add: b
|
146
|
+
};
|
147
|
+
});
|
148
|
+
})(jQuery);;
|
24
149
|
/**
|
25
150
|
* Fivefish Javascript
|
26
151
|
* $Id$
|
@@ -35,4 +160,148 @@ jQuery&&function(a){function b(b){var d=a(this),e=a(a(this).attr("data-dropdown"
|
|
35
160
|
* @version $Rev$
|
36
161
|
* @requires bootstrap.modal.js
|
37
162
|
*/
|
38
|
-
function initFivefish()
|
163
|
+
function initFivefish() {
|
164
|
+
console.debug("Loaded. Waiting for DOM to be ready."), $(document).ready(onReady);
|
165
|
+
}
|
166
|
+
|
167
|
+
function hookTooltips() {
|
168
|
+
$("header.hero-unit h1").popover({
|
169
|
+
placement: "right"
|
170
|
+
});
|
171
|
+
}
|
172
|
+
|
173
|
+
function hookKeyboardShortcuts() {
|
174
|
+
$.each(keyboardShortcuts, function(a, b) {
|
175
|
+
console.debug("Registering shortcut: %s -> %o", a, b), $("body").bind("keyup", a, b);
|
176
|
+
});
|
177
|
+
}
|
178
|
+
|
179
|
+
function hookSourceToggles() {
|
180
|
+
$("div.method header i").click(function(a) {
|
181
|
+
var b = a.target, c = $(b).parents("div").get(0), d = $(c).find("div.method-source-code");
|
182
|
+
console.debug("Toggling: %o", d), d.fadeToggle();
|
183
|
+
});
|
184
|
+
}
|
185
|
+
|
186
|
+
function doIncrementalSearch() {}
|
187
|
+
|
188
|
+
function hookSearchOverlay() {
|
189
|
+
console.debug("Setting up searchbox"), $("#incremental-search").searchbox(SearchIndex), $("#search-button").click(function() {
|
190
|
+
$("#incremental-search").searchbox("show");
|
191
|
+
});
|
192
|
+
}
|
193
|
+
|
194
|
+
function onReady() {
|
195
|
+
console.debug("Ready!"), hookTooltips(), hookKeyboardShortcuts(), hookSourceToggles(), hookSearchOverlay();
|
196
|
+
}
|
197
|
+
|
198
|
+
(function(a) {
|
199
|
+
"use strict";
|
200
|
+
var b = function(a, b, c) {
|
201
|
+
this.init(a, b, c);
|
202
|
+
};
|
203
|
+
b.prototype = a.extend({}, a.fn.modal.Constructor.prototype, {
|
204
|
+
constructor: b,
|
205
|
+
searchTimeout: null,
|
206
|
+
data: [],
|
207
|
+
relPrefix: ".",
|
208
|
+
init: function(b, c, d) {
|
209
|
+
this.$element = a(b), this.$input = this.$element.find(".search-input"), this.$meth_list = this.$element.find(".method-search-results dl"), this.$mod_list = this.$element.find(".module-search-results dl"), this.$file_list = this.$element.find(".file-search-results dl"), this.options = d, this.data = c, this.relPrefix = a("link[rel=prefix]").attr("href"), this.$element.on("shown", a.proxy(this.shown, this)).on("hide", a.proxy(this.hided, this)).on("search", a.proxy(this.startSearch, this)).on("clear", a.proxy(this.clearSearch, this));
|
210
|
+
},
|
211
|
+
shown: function() {
|
212
|
+
console.debug("Listening for keyboard input."), a(document).on("keypress", a.proxy(this.keypress, this)).on("keyup", a.proxy(this.keyup, this)), (a.browser.webkit || a.browser.msie) && a(document).on("keydown", a.proxy(this.keypress, this));
|
213
|
+
},
|
214
|
+
hided: function(b) {
|
215
|
+
console.debug("Done listening for keyboard input."), a(document).off("keypress keyup keydown");
|
216
|
+
},
|
217
|
+
keyup: function(a) {
|
218
|
+
var b = a.which, c = a.shiftKey;
|
219
|
+
console.debug("Keycode: %d, shifted: %o", b, c);
|
220
|
+
if (a.ctrlKey) switch (b) {
|
221
|
+
case 85:
|
222
|
+
this.$element.trigger("clear");
|
223
|
+
} else if (b >= 65 && b <= 90 || b == 32 || b >= 48 && b <= 57) {
|
224
|
+
var d = String.fromCharCode(b);
|
225
|
+
c || (d = d.toLowerCase()), this.$input.append(d), this.$element.trigger("search");
|
226
|
+
} else switch (b) {
|
227
|
+
case 27:
|
228
|
+
this.hide();
|
229
|
+
break;
|
230
|
+
case 8:
|
231
|
+
this.$input.html(this.$input.html().slice(0, -1)), this.$element.trigger("search");
|
232
|
+
}
|
233
|
+
a.stopPropagation(), a.preventDefault();
|
234
|
+
},
|
235
|
+
keypress: function(a) {
|
236
|
+
console.debug("Keypress event: %o", a);
|
237
|
+
},
|
238
|
+
clearSearch: function() {
|
239
|
+
console.debug("Clearing the search input."), this.$input.html(""), this.$element.trigger("search");
|
240
|
+
},
|
241
|
+
startSearch: function(a) {
|
242
|
+
var b = this;
|
243
|
+
this.searchTimeout && (console.debug("Interrupting a previous search."), clearTimeout(this.searchTimeout)), console.debug("Scheduling a search..."), this.searchTimeout = setTimeout(function() {
|
244
|
+
b.search();
|
245
|
+
}, 500);
|
246
|
+
},
|
247
|
+
search: function() {
|
248
|
+
var b = this.$input.html();
|
249
|
+
console.debug("Searching for: '%s'!", b);
|
250
|
+
if (b == "") this.displayMatches(this.data); else {
|
251
|
+
var c = new RegExp(b, "i");
|
252
|
+
console.debug(" pattern is: %s", c);
|
253
|
+
var d = a.grep(this.data, function(a) {
|
254
|
+
return console.debug(" testing: %s", a.name), c.test(a.name);
|
255
|
+
});
|
256
|
+
this.displayMatches(d, c);
|
257
|
+
}
|
258
|
+
},
|
259
|
+
displayMatches: function(b, c) {
|
260
|
+
var d = 0, e = 0, f = 0, g = 5, h, i = this;
|
261
|
+
this.$element.find(".search-results dl").empty(), console.debug("Sorting %d matching items...", b.length), a.each(b, function(b, j) {
|
262
|
+
h = null;
|
263
|
+
switch (j.type) {
|
264
|
+
case "anymethod":
|
265
|
+
d < g && (console.debug(" adding method '%s'", j.name), h = i.$meth_list, d++);
|
266
|
+
break;
|
267
|
+
case "normalclass":
|
268
|
+
case "normalmodule":
|
269
|
+
e < g && (console.debug(" adding mod '%s'", j.name), h = i.$mod_list, e++);
|
270
|
+
break;
|
271
|
+
case "toplevel":
|
272
|
+
f < g && (console.debug(" adding file '%s'", j.name), h = i.$file_list, f++);
|
273
|
+
break;
|
274
|
+
default:
|
275
|
+
console.debug("ignoring unknown item '%s'", j.type);
|
276
|
+
}
|
277
|
+
if (h) {
|
278
|
+
var k;
|
279
|
+
c ? k = j.name.replace(c, '<span class="highlight">$&</span>') : k = j.name, a("<a>").attr("href", i.relPrefix + "/" + j.link).html(k).wrap("<dt>").appendTo(h), a("<dd>").html(j.snippet).appendTo(h);
|
280
|
+
} else console.debug(" no more room for %s '%s'", j.type, j.name);
|
281
|
+
});
|
282
|
+
},
|
283
|
+
blur: function(a) {
|
284
|
+
var b = this;
|
285
|
+
setTimeout(function() {
|
286
|
+
b.hide();
|
287
|
+
}, 150);
|
288
|
+
},
|
289
|
+
click: function(a) {
|
290
|
+
a.stopPropagation(), a.preventDefault(), this.select();
|
291
|
+
}
|
292
|
+
}), a.fn.searchbox = function(c, d) {
|
293
|
+
return this.each(function() {
|
294
|
+
var e = a(this), f = e.data("searchbox"), g = typeof c == "object" ? c : [], h = a.extend({}, a.fn.modal.defaults, e.data(), typeof d == "object" && d);
|
295
|
+
f || (console.debug("Creating a new searchbox for data: %s", typeof g), f = new b(this, g, h), e.data("searchbox", f)), typeof c == "string" && f[c]();
|
296
|
+
});
|
297
|
+
}, a.fn.searchbox.Constructor = b, a.fn.searchbox.defaults = a.extend({}, a.fn.modal.defaults);
|
298
|
+
})(window.jQuery);
|
299
|
+
|
300
|
+
var keyboardShortcuts = {
|
301
|
+
"/": function(a) {
|
302
|
+
$("#incremental-search").searchbox("show");
|
303
|
+
},
|
304
|
+
"shift+/": function(a) {
|
305
|
+
$("#shortcut-help").modal();
|
306
|
+
}
|
307
|
+
};;
|
@@ -25,6 +25,8 @@
|
|
25
25
|
<link rel="apple-touch-icon" sizes="72x72" href="images/apple-touch-icon-72x72.png">
|
26
26
|
<link rel="apple-touch-icon" sizes="114x114" href="images/apple-touch-icon-114x114.png">
|
27
27
|
|
28
|
+
<link href="[?attr rel_prefix ?]" rel="prefix" />
|
29
|
+
|
28
30
|
<link href="[?attr rel_prefix ?]/css/fivefish.min.css" rel="stylesheet" />
|
29
31
|
|
30
32
|
<script src="[?attr rel_prefix ?]/js/jquery-1.7.1.min.js" type="text/javascript"
|
@@ -145,7 +147,7 @@
|
|
145
147
|
<div class="modal-body">
|
146
148
|
<section class="search-string">
|
147
149
|
<span class="search-input-label">Searching for:</span>
|
148
|
-
<span class="search-input"
|
150
|
+
<span class="search-input"></span>
|
149
151
|
</section>
|
150
152
|
|
151
153
|
<section class="search-results method-search-results">
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rdoc-generator-fivefish
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.1.
|
4
|
+
version: 0.0.1.pre38
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -36,11 +36,11 @@ cert_chain:
|
|
36
36
|
YUhDS0xaZFNLai9SSHVUT3QrZ2JsUmV4OEZBaDhOZUEKY21saFhlNDZwWk5K
|
37
37
|
Z1dLYnhaYWg4NWpJang5NWhSOHZPSStOQU01aUg5a09xSzEzRHJ4YWNUS1Bo
|
38
38
|
cWo1UGp3RgotLS0tLUVORCBDRVJUSUZJQ0FURS0tLS0tCg==
|
39
|
-
date: 2012-04-
|
39
|
+
date: 2012-04-08 00:00:00.000000000 Z
|
40
40
|
dependencies:
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: inversion
|
43
|
-
requirement: &
|
43
|
+
requirement: &70281475847840 !ruby/object:Gem::Requirement
|
44
44
|
none: false
|
45
45
|
requirements:
|
46
46
|
- - ~>
|
@@ -48,10 +48,10 @@ dependencies:
|
|
48
48
|
version: '0.8'
|
49
49
|
type: :runtime
|
50
50
|
prerelease: false
|
51
|
-
version_requirements: *
|
51
|
+
version_requirements: *70281475847840
|
52
52
|
- !ruby/object:Gem::Dependency
|
53
53
|
name: yajl-ruby
|
54
|
-
requirement: &
|
54
|
+
requirement: &70281475847260 !ruby/object:Gem::Requirement
|
55
55
|
none: false
|
56
56
|
requirements:
|
57
57
|
- - ~>
|
@@ -59,10 +59,10 @@ dependencies:
|
|
59
59
|
version: '1.1'
|
60
60
|
type: :runtime
|
61
61
|
prerelease: false
|
62
|
-
version_requirements: *
|
62
|
+
version_requirements: *70281475847260
|
63
63
|
- !ruby/object:Gem::Dependency
|
64
64
|
name: rdoc
|
65
|
-
requirement: &
|
65
|
+
requirement: &70281475863060 !ruby/object:Gem::Requirement
|
66
66
|
none: false
|
67
67
|
requirements:
|
68
68
|
- - ~>
|
@@ -70,32 +70,32 @@ dependencies:
|
|
70
70
|
version: '3.12'
|
71
71
|
type: :runtime
|
72
72
|
prerelease: false
|
73
|
-
version_requirements: *
|
73
|
+
version_requirements: *70281475863060
|
74
74
|
- !ruby/object:Gem::Dependency
|
75
75
|
name: hoe-mercurial
|
76
|
-
requirement: &
|
76
|
+
requirement: &70281475862440 !ruby/object:Gem::Requirement
|
77
77
|
none: false
|
78
78
|
requirements:
|
79
79
|
- - ~>
|
80
80
|
- !ruby/object:Gem::Version
|
81
|
-
version: 1.
|
81
|
+
version: 1.4.0
|
82
82
|
type: :development
|
83
83
|
prerelease: false
|
84
|
-
version_requirements: *
|
84
|
+
version_requirements: *70281475862440
|
85
85
|
- !ruby/object:Gem::Dependency
|
86
86
|
name: hoe-highline
|
87
|
-
requirement: &
|
87
|
+
requirement: &70281475861740 !ruby/object:Gem::Requirement
|
88
88
|
none: false
|
89
89
|
requirements:
|
90
90
|
- - ~>
|
91
91
|
- !ruby/object:Gem::Version
|
92
|
-
version: 0.0
|
92
|
+
version: 0.1.0
|
93
93
|
type: :development
|
94
94
|
prerelease: false
|
95
|
-
version_requirements: *
|
95
|
+
version_requirements: *70281475861740
|
96
96
|
- !ruby/object:Gem::Dependency
|
97
97
|
name: uglifier
|
98
|
-
requirement: &
|
98
|
+
requirement: &70281475860980 !ruby/object:Gem::Requirement
|
99
99
|
none: false
|
100
100
|
requirements:
|
101
101
|
- - ~>
|
@@ -103,10 +103,10 @@ dependencies:
|
|
103
103
|
version: '1.2'
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
|
-
version_requirements: *
|
106
|
+
version_requirements: *70281475860980
|
107
107
|
- !ruby/object:Gem::Dependency
|
108
108
|
name: less
|
109
|
-
requirement: &
|
109
|
+
requirement: &70281475860320 !ruby/object:Gem::Requirement
|
110
110
|
none: false
|
111
111
|
requirements:
|
112
112
|
- - ~>
|
@@ -114,18 +114,18 @@ dependencies:
|
|
114
114
|
version: '2.1'
|
115
115
|
type: :development
|
116
116
|
prerelease: false
|
117
|
-
version_requirements: *
|
117
|
+
version_requirements: *70281475860320
|
118
118
|
- !ruby/object:Gem::Dependency
|
119
119
|
name: hoe
|
120
|
-
requirement: &
|
120
|
+
requirement: &70281475870320 !ruby/object:Gem::Requirement
|
121
121
|
none: false
|
122
122
|
requirements:
|
123
123
|
- - ~>
|
124
124
|
- !ruby/object:Gem::Version
|
125
|
-
version: '
|
125
|
+
version: '3.0'
|
126
126
|
type: :development
|
127
127
|
prerelease: false
|
128
|
-
version_requirements: *
|
128
|
+
version_requirements: *70281475870320
|
129
129
|
description: ! 'A(nother) HTML(5) generator for RDoc.
|
130
130
|
|
131
131
|
|
metadata.gz.sig
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
UQ�H�̺�^ܛ��ޯ6�C{���d%xU퇾�M�
|