electron 0.2.0 → 0.2.1
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.
- package/.npmignore +1 -0
- package/History.md +13 -0
- package/README.md +150 -3
- package/lib/electron/args.js +4 -4
- package/lib/electron/program.js +29 -1
- package/lib/electron.js +1 -0
- package/package.json +5 -2
- package/docs/data/codex.json +0 -30
- package/docs/data/index.md +0 -19
- package/docs/out/index.html +0 -509
- package/docs/out/public/css/main.css +0 -340
- package/docs/out/public/js/main.js +0 -107
- package/docs/template/assets/js/main.js +0 -107
- package/docs/template/index.jade +0 -51
- package/docs/template/layout.jade +0 -23
- package/docs/template/stylus/code.styl +0 -102
- package/docs/template/stylus/main.styl +0 -99
|
@@ -1,340 +0,0 @@
|
|
|
1
|
-
@import url("https://fonts.googleapis.com/css?family=Lato:300italic,700italic,300,700");
|
|
2
|
-
@import url("http://fonts.googleapis.com/css?family=Oxygen");
|
|
3
|
-
html,
|
|
4
|
-
body,
|
|
5
|
-
div,
|
|
6
|
-
span,
|
|
7
|
-
applet,
|
|
8
|
-
object,
|
|
9
|
-
iframe,
|
|
10
|
-
h1,
|
|
11
|
-
h2,
|
|
12
|
-
h3,
|
|
13
|
-
h4,
|
|
14
|
-
h5,
|
|
15
|
-
h6,
|
|
16
|
-
p,
|
|
17
|
-
blockquote,
|
|
18
|
-
pre,
|
|
19
|
-
a,
|
|
20
|
-
abbr,
|
|
21
|
-
acronym,
|
|
22
|
-
address,
|
|
23
|
-
big,
|
|
24
|
-
cite,
|
|
25
|
-
code,
|
|
26
|
-
del,
|
|
27
|
-
dfn,
|
|
28
|
-
em,
|
|
29
|
-
img,
|
|
30
|
-
ins,
|
|
31
|
-
kbd,
|
|
32
|
-
q,
|
|
33
|
-
s,
|
|
34
|
-
samp,
|
|
35
|
-
small,
|
|
36
|
-
strike,
|
|
37
|
-
strong,
|
|
38
|
-
sub,
|
|
39
|
-
sup,
|
|
40
|
-
tt,
|
|
41
|
-
var,
|
|
42
|
-
dl,
|
|
43
|
-
dt,
|
|
44
|
-
dd,
|
|
45
|
-
ol,
|
|
46
|
-
ul,
|
|
47
|
-
li,
|
|
48
|
-
fieldset,
|
|
49
|
-
form,
|
|
50
|
-
label,
|
|
51
|
-
legend,
|
|
52
|
-
table,
|
|
53
|
-
caption,
|
|
54
|
-
tbody,
|
|
55
|
-
tfoot,
|
|
56
|
-
thead,
|
|
57
|
-
tr,
|
|
58
|
-
th,
|
|
59
|
-
td {
|
|
60
|
-
margin: 0;
|
|
61
|
-
padding: 0;
|
|
62
|
-
border: 0;
|
|
63
|
-
outline: 0;
|
|
64
|
-
font-weight: inherit;
|
|
65
|
-
font-style: inherit;
|
|
66
|
-
font-family: inherit;
|
|
67
|
-
font-size: 100%;
|
|
68
|
-
vertical-align: baseline;
|
|
69
|
-
}
|
|
70
|
-
body {
|
|
71
|
-
line-height: 1;
|
|
72
|
-
color: #000;
|
|
73
|
-
background: #fff;
|
|
74
|
-
}
|
|
75
|
-
ol,
|
|
76
|
-
ul {
|
|
77
|
-
list-style: none;
|
|
78
|
-
}
|
|
79
|
-
table {
|
|
80
|
-
border-collapse: separate;
|
|
81
|
-
border-spacing: 0;
|
|
82
|
-
vertical-align: middle;
|
|
83
|
-
}
|
|
84
|
-
caption,
|
|
85
|
-
th,
|
|
86
|
-
td {
|
|
87
|
-
text-align: left;
|
|
88
|
-
font-weight: normal;
|
|
89
|
-
vertical-align: middle;
|
|
90
|
-
}
|
|
91
|
-
a img {
|
|
92
|
-
border: none;
|
|
93
|
-
}
|
|
94
|
-
h1 {
|
|
95
|
-
font-size: 2em;
|
|
96
|
-
margin-bottom: 0.75em;
|
|
97
|
-
line-height: 1.5;
|
|
98
|
-
}
|
|
99
|
-
h2 {
|
|
100
|
-
font-size: 1.5em;
|
|
101
|
-
margin-bottom: 0.75em;
|
|
102
|
-
line-height: 1;
|
|
103
|
-
}
|
|
104
|
-
h3 {
|
|
105
|
-
font-size: 1.25em;
|
|
106
|
-
margin-bottom: 1em;
|
|
107
|
-
line-height: 1.2;
|
|
108
|
-
}
|
|
109
|
-
h4 {
|
|
110
|
-
font-size: 1.125em;
|
|
111
|
-
margin-bottom: 1.33em;
|
|
112
|
-
line-height: 1.33;
|
|
113
|
-
}
|
|
114
|
-
h5 {
|
|
115
|
-
font-weight: bold;
|
|
116
|
-
}
|
|
117
|
-
h5,
|
|
118
|
-
h6 {
|
|
119
|
-
font-size: 1em;
|
|
120
|
-
margin-bottom: 1.5em;
|
|
121
|
-
line-height: 1.5;
|
|
122
|
-
}
|
|
123
|
-
p,
|
|
124
|
-
address {
|
|
125
|
-
margin-bottom: 1.5em;
|
|
126
|
-
}
|
|
127
|
-
article ul {
|
|
128
|
-
list-style: disc;
|
|
129
|
-
margin-bottom: 1.5em;
|
|
130
|
-
}
|
|
131
|
-
article ul li {
|
|
132
|
-
margin-left: 1.5em;
|
|
133
|
-
}
|
|
134
|
-
code {
|
|
135
|
-
font-family: "Bitstream Vera Sans Mono", "Courier", monospace;
|
|
136
|
-
}
|
|
137
|
-
body {
|
|
138
|
-
font: 14px/1.5 Lato, "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
139
|
-
font-weight: 300;
|
|
140
|
-
padding: 50px;
|
|
141
|
-
color: #777;
|
|
142
|
-
}
|
|
143
|
-
h1,
|
|
144
|
-
h2 {
|
|
145
|
-
font-family: Oxygen, Lato, "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
146
|
-
}
|
|
147
|
-
h2 {
|
|
148
|
-
margin-top: 30px;
|
|
149
|
-
padding-bottom: 10px;
|
|
150
|
-
border-bottom: 1px solid #ccc;
|
|
151
|
-
}
|
|
152
|
-
h1,
|
|
153
|
-
h2,
|
|
154
|
-
h4,
|
|
155
|
-
h5,
|
|
156
|
-
h6 {
|
|
157
|
-
color: #222;
|
|
158
|
-
font-weight: bold;
|
|
159
|
-
}
|
|
160
|
-
h3 {
|
|
161
|
-
color: #39c;
|
|
162
|
-
}
|
|
163
|
-
a {
|
|
164
|
-
color: #c30;
|
|
165
|
-
text-decoration: none;
|
|
166
|
-
}
|
|
167
|
-
code,
|
|
168
|
-
pre {
|
|
169
|
-
font-family: Monaco, Bitstream Vera Sans Mono, Lucida Console, Terminal;
|
|
170
|
-
color: #333;
|
|
171
|
-
font-size: 12px;
|
|
172
|
-
}
|
|
173
|
-
ul {
|
|
174
|
-
margin-bottom: 1.5em;
|
|
175
|
-
list-style: disc;
|
|
176
|
-
padding-left: 40px;
|
|
177
|
-
}
|
|
178
|
-
pre {
|
|
179
|
-
padding: 8px 15px;
|
|
180
|
-
-webkit-border-radius: 5px;
|
|
181
|
-
-moz-border-radius: 5px;
|
|
182
|
-
border-radius: 5px;
|
|
183
|
-
overflow-x: auto;
|
|
184
|
-
background: #f8f8f8;
|
|
185
|
-
border: 1px solid #e5e5e5;
|
|
186
|
-
margin-bottom: 1.5em;
|
|
187
|
-
}
|
|
188
|
-
.segment {
|
|
189
|
-
margin-bottom: 60px;
|
|
190
|
-
}
|
|
191
|
-
ul.tags {
|
|
192
|
-
font-size: 12px;
|
|
193
|
-
}
|
|
194
|
-
ul.tags li.tag span {
|
|
195
|
-
margin-right: 5px;
|
|
196
|
-
}
|
|
197
|
-
ul.tags li.tag span.type {
|
|
198
|
-
font-weight: bold;
|
|
199
|
-
}
|
|
200
|
-
ul.tags li.tag span.types {
|
|
201
|
-
font-style: italic;
|
|
202
|
-
}
|
|
203
|
-
.wrapper {
|
|
204
|
-
width: 860px;
|
|
205
|
-
margin: 0px auto;
|
|
206
|
-
}
|
|
207
|
-
header {
|
|
208
|
-
width: 270px;
|
|
209
|
-
float: left;
|
|
210
|
-
position: fixed;
|
|
211
|
-
text-align: right;
|
|
212
|
-
}
|
|
213
|
-
section#content {
|
|
214
|
-
width: 500px;
|
|
215
|
-
float: right;
|
|
216
|
-
}
|
|
217
|
-
nav {
|
|
218
|
-
text-align: right;
|
|
219
|
-
}
|
|
220
|
-
nav .active {
|
|
221
|
-
font-weight: bold;
|
|
222
|
-
}
|
|
223
|
-
nav .section {
|
|
224
|
-
display: none;
|
|
225
|
-
}
|
|
226
|
-
nav .head > a {
|
|
227
|
-
color: #222;
|
|
228
|
-
}
|
|
229
|
-
nav .section > a {
|
|
230
|
-
color: #39c;
|
|
231
|
-
}
|
|
232
|
-
footer {
|
|
233
|
-
width: 270px;
|
|
234
|
-
position: fixed;
|
|
235
|
-
bottom: 50px;
|
|
236
|
-
}
|
|
237
|
-
pre code {
|
|
238
|
-
display: block;
|
|
239
|
-
}
|
|
240
|
-
pre .comment,
|
|
241
|
-
pre .template_comment,
|
|
242
|
-
pre .diff .header,
|
|
243
|
-
pre .javadoc {
|
|
244
|
-
color: #998;
|
|
245
|
-
font-style: italic;
|
|
246
|
-
}
|
|
247
|
-
pre .keyword,
|
|
248
|
-
pre .css .rule .keyword,
|
|
249
|
-
pre .winutils,
|
|
250
|
-
pre .javascript .title,
|
|
251
|
-
pre .lisp .title,
|
|
252
|
-
pre .subst {
|
|
253
|
-
color: #000;
|
|
254
|
-
font-weight: bold;
|
|
255
|
-
}
|
|
256
|
-
pre .number,
|
|
257
|
-
pre .hexcolor {
|
|
258
|
-
color: #40a070;
|
|
259
|
-
}
|
|
260
|
-
pre .string,
|
|
261
|
-
pre .tag .value,
|
|
262
|
-
pre .phpdoc,
|
|
263
|
-
pre .tex .formula {
|
|
264
|
-
color: #d14;
|
|
265
|
-
}
|
|
266
|
-
pre .title,
|
|
267
|
-
pre .id {
|
|
268
|
-
color: #900;
|
|
269
|
-
font-weight: bold;
|
|
270
|
-
}
|
|
271
|
-
pre .javascript .title,
|
|
272
|
-
pre .lisp .title,
|
|
273
|
-
pre .subst {
|
|
274
|
-
font-weight: normal;
|
|
275
|
-
}
|
|
276
|
-
pre .class .title,
|
|
277
|
-
pre .haskell .label,
|
|
278
|
-
pre .tex .command {
|
|
279
|
-
color: #458;
|
|
280
|
-
font-weight: bold;
|
|
281
|
-
}
|
|
282
|
-
pre .tag,
|
|
283
|
-
pre .tag .title,
|
|
284
|
-
pre .rules .property,
|
|
285
|
-
pre .django .tag .keyword {
|
|
286
|
-
color: #000080;
|
|
287
|
-
font-weight: normal;
|
|
288
|
-
}
|
|
289
|
-
pre .attribute,
|
|
290
|
-
pre .variable,
|
|
291
|
-
pre .instancevar,
|
|
292
|
-
pre .lisp .body,
|
|
293
|
-
pre .header {
|
|
294
|
-
color: #008080;
|
|
295
|
-
}
|
|
296
|
-
pre .regexp {
|
|
297
|
-
color: #009926;
|
|
298
|
-
}
|
|
299
|
-
pre .class {
|
|
300
|
-
color: #458;
|
|
301
|
-
font-weight: bold;
|
|
302
|
-
}
|
|
303
|
-
pre .symbol,
|
|
304
|
-
pre .ruby .symbol .string,
|
|
305
|
-
pre .ruby .symbol .keyword,
|
|
306
|
-
pre .ruby .symbol .keymethods,
|
|
307
|
-
pre .lisp .keyword,
|
|
308
|
-
pre .tex .special,
|
|
309
|
-
pre .input_number {
|
|
310
|
-
color: #990073;
|
|
311
|
-
}
|
|
312
|
-
pre .builtin,
|
|
313
|
-
pre .built_in,
|
|
314
|
-
pre .lisp .title {
|
|
315
|
-
color: #0086b3;
|
|
316
|
-
}
|
|
317
|
-
pre .preprocessor,
|
|
318
|
-
pre .pi,
|
|
319
|
-
pre .doctype,
|
|
320
|
-
pre .shebang,
|
|
321
|
-
pre .cdata {
|
|
322
|
-
color: #999;
|
|
323
|
-
font-weight: bold;
|
|
324
|
-
}
|
|
325
|
-
pre .deletion {
|
|
326
|
-
background: #fdd;
|
|
327
|
-
}
|
|
328
|
-
pre .addition {
|
|
329
|
-
background: #dfd;
|
|
330
|
-
}
|
|
331
|
-
pre .diff .change {
|
|
332
|
-
background: #0086b3;
|
|
333
|
-
}
|
|
334
|
-
pre .chunk {
|
|
335
|
-
color: #aaa;
|
|
336
|
-
}
|
|
337
|
-
pre .tex .formula {
|
|
338
|
-
opacity: 0.5;
|
|
339
|
-
filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=50);
|
|
340
|
-
}
|
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
$(document).ready(function() {
|
|
2
|
-
// :D
|
|
3
|
-
|
|
4
|
-
var scrolling = false
|
|
5
|
-
, lastSection = 'installation';
|
|
6
|
-
|
|
7
|
-
$('a.scroll').click(function (e) {
|
|
8
|
-
e.preventDefault();
|
|
9
|
-
|
|
10
|
-
var section = $(this).attr('href')
|
|
11
|
-
, $scrollto = $(section);
|
|
12
|
-
|
|
13
|
-
scrolling = true;
|
|
14
|
-
$('html,body').animate({
|
|
15
|
-
scrollTop: $scrollto.offset().top - 15
|
|
16
|
-
}, function () {
|
|
17
|
-
setTimeout(function () {
|
|
18
|
-
lastSection = section.substr(1);
|
|
19
|
-
setActiveMenu();
|
|
20
|
-
scrolling = false;
|
|
21
|
-
}, 300);
|
|
22
|
-
});
|
|
23
|
-
});
|
|
24
|
-
|
|
25
|
-
var panelTops = {}
|
|
26
|
-
|
|
27
|
-
$('.segment').each(function(index) {
|
|
28
|
-
var id = $(this).attr('id');
|
|
29
|
-
panelTops[id] = $(this).offset().top;
|
|
30
|
-
});
|
|
31
|
-
|
|
32
|
-
console.log(panelTops);
|
|
33
|
-
|
|
34
|
-
function detectActiveMenu() {
|
|
35
|
-
if (scrolling) return;
|
|
36
|
-
var pos = $(document).scrollTop()
|
|
37
|
-
, which = lastSection;
|
|
38
|
-
|
|
39
|
-
for (key in panelTops) {
|
|
40
|
-
if ((pos + 250) >= panelTops[key]) {
|
|
41
|
-
which = key;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
if (!scrolling && which !== lastSection) {
|
|
46
|
-
lastSection = which;
|
|
47
|
-
setActiveMenu();
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
var lastMenu;
|
|
52
|
-
function setActiveMenu() {
|
|
53
|
-
var info = lastSection.split('-')
|
|
54
|
-
, isHeader = (info[0] == 'header') ? true : false
|
|
55
|
-
, primary = (isHeader) ? info[1] : info[0];
|
|
56
|
-
|
|
57
|
-
console.log(isHeader, primary);
|
|
58
|
-
|
|
59
|
-
$('nav > div').removeClass('active');
|
|
60
|
-
if (isHeader) {
|
|
61
|
-
$('nav > #' + primary + '.head')
|
|
62
|
-
.addClass('active');
|
|
63
|
-
} else {
|
|
64
|
-
$('nav > #' + info[1] + '.' + info[0] + '.section')
|
|
65
|
-
.addClass('active');
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
if (primary !== lastMenu) {
|
|
69
|
-
if (lastMenu) {
|
|
70
|
-
$('nav > .' + lastMenu)
|
|
71
|
-
.stop()
|
|
72
|
-
.animate({
|
|
73
|
-
height: 0
|
|
74
|
-
, opacity: 0
|
|
75
|
-
}, 300, function () {
|
|
76
|
-
$(this).hide();
|
|
77
|
-
});
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
$('nav > .' + primary)
|
|
81
|
-
.css({
|
|
82
|
-
display: 'block'
|
|
83
|
-
, opacity: 0
|
|
84
|
-
, height: 0
|
|
85
|
-
});
|
|
86
|
-
|
|
87
|
-
$('nav > .' + primary)
|
|
88
|
-
.stop()
|
|
89
|
-
.animate({
|
|
90
|
-
height: 21
|
|
91
|
-
, opacity: 1
|
|
92
|
-
}, 300);
|
|
93
|
-
|
|
94
|
-
lastMenu = primary;
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
setTimeout(function () {
|
|
99
|
-
detectActiveMenu();
|
|
100
|
-
|
|
101
|
-
// this handles the document scroll event
|
|
102
|
-
$(document).scroll(function(e) {
|
|
103
|
-
if (!scrolling) detectActiveMenu();
|
|
104
|
-
});
|
|
105
|
-
}, 500);
|
|
106
|
-
|
|
107
|
-
});
|
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
$(document).ready(function() {
|
|
2
|
-
// :D
|
|
3
|
-
|
|
4
|
-
var scrolling = false
|
|
5
|
-
, lastSection = 'installation';
|
|
6
|
-
|
|
7
|
-
$('a.scroll').click(function (e) {
|
|
8
|
-
e.preventDefault();
|
|
9
|
-
|
|
10
|
-
var section = $(this).attr('href')
|
|
11
|
-
, $scrollto = $(section);
|
|
12
|
-
|
|
13
|
-
scrolling = true;
|
|
14
|
-
$('html,body').animate({
|
|
15
|
-
scrollTop: $scrollto.offset().top - 15
|
|
16
|
-
}, function () {
|
|
17
|
-
setTimeout(function () {
|
|
18
|
-
lastSection = section.substr(1);
|
|
19
|
-
setActiveMenu();
|
|
20
|
-
scrolling = false;
|
|
21
|
-
}, 300);
|
|
22
|
-
});
|
|
23
|
-
});
|
|
24
|
-
|
|
25
|
-
var panelTops = {}
|
|
26
|
-
|
|
27
|
-
$('.segment').each(function(index) {
|
|
28
|
-
var id = $(this).attr('id');
|
|
29
|
-
panelTops[id] = $(this).offset().top;
|
|
30
|
-
});
|
|
31
|
-
|
|
32
|
-
console.log(panelTops);
|
|
33
|
-
|
|
34
|
-
function detectActiveMenu() {
|
|
35
|
-
if (scrolling) return;
|
|
36
|
-
var pos = $(document).scrollTop()
|
|
37
|
-
, which = lastSection;
|
|
38
|
-
|
|
39
|
-
for (key in panelTops) {
|
|
40
|
-
if ((pos + 250) >= panelTops[key]) {
|
|
41
|
-
which = key;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
if (!scrolling && which !== lastSection) {
|
|
46
|
-
lastSection = which;
|
|
47
|
-
setActiveMenu();
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
var lastMenu;
|
|
52
|
-
function setActiveMenu() {
|
|
53
|
-
var info = lastSection.split('-')
|
|
54
|
-
, isHeader = (info[0] == 'header') ? true : false
|
|
55
|
-
, primary = (isHeader) ? info[1] : info[0];
|
|
56
|
-
|
|
57
|
-
console.log(isHeader, primary);
|
|
58
|
-
|
|
59
|
-
$('nav > div').removeClass('active');
|
|
60
|
-
if (isHeader) {
|
|
61
|
-
$('nav > #' + primary + '.head')
|
|
62
|
-
.addClass('active');
|
|
63
|
-
} else {
|
|
64
|
-
$('nav > #' + info[1] + '.' + info[0] + '.section')
|
|
65
|
-
.addClass('active');
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
if (primary !== lastMenu) {
|
|
69
|
-
if (lastMenu) {
|
|
70
|
-
$('nav > .' + lastMenu)
|
|
71
|
-
.stop()
|
|
72
|
-
.animate({
|
|
73
|
-
height: 0
|
|
74
|
-
, opacity: 0
|
|
75
|
-
}, 300, function () {
|
|
76
|
-
$(this).hide();
|
|
77
|
-
});
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
$('nav > .' + primary)
|
|
81
|
-
.css({
|
|
82
|
-
display: 'block'
|
|
83
|
-
, opacity: 0
|
|
84
|
-
, height: 0
|
|
85
|
-
});
|
|
86
|
-
|
|
87
|
-
$('nav > .' + primary)
|
|
88
|
-
.stop()
|
|
89
|
-
.animate({
|
|
90
|
-
height: 21
|
|
91
|
-
, opacity: 1
|
|
92
|
-
}, 300);
|
|
93
|
-
|
|
94
|
-
lastMenu = primary;
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
setTimeout(function () {
|
|
99
|
-
detectActiveMenu();
|
|
100
|
-
|
|
101
|
-
// this handles the document scroll event
|
|
102
|
-
$(document).scroll(function(e) {
|
|
103
|
-
if (!scrolling) detectActiveMenu();
|
|
104
|
-
});
|
|
105
|
-
}, 500);
|
|
106
|
-
|
|
107
|
-
});
|
package/docs/template/index.jade
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
extends layout
|
|
2
|
-
|
|
3
|
-
block header
|
|
4
|
-
h1= file.title
|
|
5
|
-
|
|
6
|
-
block nav
|
|
7
|
-
div(id='installation', class='head')
|
|
8
|
-
a.scroll(href='#header-installation') Installation
|
|
9
|
-
for codeFile in files.code
|
|
10
|
-
- var lastHeader = ''
|
|
11
|
-
for comment in codeFile.prepared
|
|
12
|
-
for tag in comment.tags
|
|
13
|
-
- if (tag.type === 'header')
|
|
14
|
-
- lastHeader = tag.string.toLowerCase().replace(/\s/g, '_')
|
|
15
|
-
div(id=lastHeader, class='head'): a.scroll(href='#header-' + lastHeader)= tag.string
|
|
16
|
-
- else if (tag.type === 'name')
|
|
17
|
-
div(id=tag.string, class='section ' + lastHeader): a.scroll(href='#' + lastHeader + '-' + tag.string)= tag.string
|
|
18
|
-
|
|
19
|
-
block content
|
|
20
|
-
#header-installation.segment
|
|
21
|
-
.description!= file.prepared
|
|
22
|
-
for codeFile in files.code
|
|
23
|
-
- var lastPrimary = ''
|
|
24
|
-
for comment in codeFile.prepared
|
|
25
|
-
- if (!comment.ignore)
|
|
26
|
-
- var id = 'default'
|
|
27
|
-
for tag in comment.tags
|
|
28
|
-
- if (tag.type === 'header')
|
|
29
|
-
- lastPrimary = tag.string.toLowerCase().replace(/\s/g, '_')
|
|
30
|
-
- id = 'header-' + lastPrimary
|
|
31
|
-
- if (tag.type === 'name')
|
|
32
|
-
- id = lastPrimary + '-' + tag.string
|
|
33
|
-
.segment(id=id)
|
|
34
|
-
.summary!= comment.description.summary
|
|
35
|
-
ul.tags
|
|
36
|
-
each tag in comment.tags
|
|
37
|
-
- if (tag.type == 'param')
|
|
38
|
-
-var types = tag.types.join(' | ')
|
|
39
|
-
li.tag
|
|
40
|
-
span.type @#{tag.type}
|
|
41
|
-
span.types { #{types} }
|
|
42
|
-
span.name #{tag.name}
|
|
43
|
-
span.desc #{tag.description}
|
|
44
|
-
- else if (tag.type == 'see')
|
|
45
|
-
li.tag
|
|
46
|
-
span.type @#{tag.type}
|
|
47
|
-
if tag.url
|
|
48
|
-
span.type: a(href=tag.title, target='_blank')= tag.url
|
|
49
|
-
else
|
|
50
|
-
span.name #{tag.local}
|
|
51
|
-
.description!= comment.description.body
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
!!!5
|
|
2
|
-
html(lang='en')
|
|
3
|
-
head
|
|
4
|
-
title= file.title
|
|
5
|
-
script(src='https://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js')
|
|
6
|
-
script(src='/public/js/main.js')
|
|
7
|
-
link(rel='stylesheet', href='/public/css/main.css', type='text/css', media='all')
|
|
8
|
-
body
|
|
9
|
-
.wrapper
|
|
10
|
-
header
|
|
11
|
-
block header
|
|
12
|
-
nav
|
|
13
|
-
block nav
|
|
14
|
-
ul.pages
|
|
15
|
-
li: a(href="/") Home
|
|
16
|
-
- if (files.pages)
|
|
17
|
-
for page in files.pages
|
|
18
|
-
li: a(href=page.href)= page.title
|
|
19
|
-
section#content
|
|
20
|
-
block content
|
|
21
|
-
.wrap!= file.prepared
|
|
22
|
-
footer
|
|
23
|
-
block footer
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
pre code
|
|
2
|
-
display block
|
|
3
|
-
|
|
4
|
-
pre .comment,
|
|
5
|
-
pre .template_comment,
|
|
6
|
-
pre .diff .header,
|
|
7
|
-
pre .javadoc
|
|
8
|
-
color #998
|
|
9
|
-
font-style italic
|
|
10
|
-
|
|
11
|
-
pre .keyword,
|
|
12
|
-
pre .css .rule .keyword,
|
|
13
|
-
pre .winutils,
|
|
14
|
-
pre .javascript .title,
|
|
15
|
-
pre .lisp .title,
|
|
16
|
-
pre .subst
|
|
17
|
-
color #000
|
|
18
|
-
font-weight bold
|
|
19
|
-
|
|
20
|
-
pre .number,
|
|
21
|
-
pre .hexcolor
|
|
22
|
-
color #40a070
|
|
23
|
-
|
|
24
|
-
pre .string,
|
|
25
|
-
pre .tag .value,
|
|
26
|
-
pre .phpdoc,
|
|
27
|
-
pre .tex .formula
|
|
28
|
-
color #d14
|
|
29
|
-
|
|
30
|
-
pre .title,
|
|
31
|
-
pre .id
|
|
32
|
-
color #900
|
|
33
|
-
font-weight bold
|
|
34
|
-
|
|
35
|
-
pre .javascript .title,
|
|
36
|
-
pre .lisp .title,
|
|
37
|
-
pre .subst
|
|
38
|
-
font-weight normal
|
|
39
|
-
|
|
40
|
-
pre .class .title,
|
|
41
|
-
pre .haskell .label,
|
|
42
|
-
pre .tex .command
|
|
43
|
-
color #458
|
|
44
|
-
font-weight bold
|
|
45
|
-
|
|
46
|
-
pre .tag,
|
|
47
|
-
pre .tag .title,
|
|
48
|
-
pre .rules .property,
|
|
49
|
-
pre .django .tag .keyword
|
|
50
|
-
color #000080
|
|
51
|
-
font-weight normal
|
|
52
|
-
|
|
53
|
-
pre .attribute,
|
|
54
|
-
pre .variable,
|
|
55
|
-
pre .instancevar,
|
|
56
|
-
pre .lisp .body,
|
|
57
|
-
pre .header
|
|
58
|
-
color #008080
|
|
59
|
-
|
|
60
|
-
pre .regexp
|
|
61
|
-
color #009926
|
|
62
|
-
|
|
63
|
-
pre .class
|
|
64
|
-
color #458
|
|
65
|
-
font-weight bold
|
|
66
|
-
|
|
67
|
-
pre .symbol,
|
|
68
|
-
pre .ruby .symbol .string,
|
|
69
|
-
pre .ruby .symbol .keyword,
|
|
70
|
-
pre .ruby .symbol .keymethods,
|
|
71
|
-
pre .lisp .keyword,
|
|
72
|
-
pre .tex .special,
|
|
73
|
-
pre .input_number
|
|
74
|
-
color #990073
|
|
75
|
-
|
|
76
|
-
pre .builtin,
|
|
77
|
-
pre .built_in,
|
|
78
|
-
pre .lisp .title
|
|
79
|
-
color #0086b3
|
|
80
|
-
|
|
81
|
-
pre .preprocessor,
|
|
82
|
-
pre .pi,
|
|
83
|
-
pre .doctype,
|
|
84
|
-
pre .shebang,
|
|
85
|
-
pre .cdata
|
|
86
|
-
color #999
|
|
87
|
-
font-weight bold
|
|
88
|
-
|
|
89
|
-
pre .deletion
|
|
90
|
-
background #fdd
|
|
91
|
-
|
|
92
|
-
pre .addition
|
|
93
|
-
background #dfd
|
|
94
|
-
|
|
95
|
-
pre .diff .change
|
|
96
|
-
background #0086b3
|
|
97
|
-
|
|
98
|
-
pre .chunk
|
|
99
|
-
color #aaa
|
|
100
|
-
|
|
101
|
-
pre .tex .formula
|
|
102
|
-
opacity 0.5
|