pretty_doc 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +37 -0
- data/CHANGES.md +3 -0
- data/Gemfile +2 -0
- data/Gemfile.lock +88 -0
- data/LICENSE +21 -0
- data/README.md +56 -0
- data/Rakefile +1 -0
- data/bin/pretty_doc +8 -0
- data/build.sh +7 -0
- data/lib/pretty_doc/cli.rb +64 -0
- data/lib/pretty_doc/converter.rb +25 -0
- data/lib/pretty_doc/converters/markdown.rb +108 -0
- data/lib/pretty_doc/resource.rb +11 -0
- data/lib/pretty_doc/resources/scss.rb +37 -0
- data/lib/pretty_doc/resources/source.rb +46 -0
- data/lib/pretty_doc/template.rb +44 -0
- data/lib/pretty_doc/version.rb +3 -0
- data/lib/pretty_doc.rb +75 -0
- data/pretty_doc.gemspec +33 -0
- data/templates/bootstrap/init.rb +10 -0
- data/templates/bootstrap/style.scss +252 -0
- data/templates/bootstrap/template.html.erb +13 -0
- data/templates/default/_mixin.scss +63 -0
- data/templates/default/_normalize.scss +670 -0
- data/templates/default/init.rb +8 -0
- data/templates/default/style.scss +346 -0
- data/templates/default/template.html.erb +13 -0
- data/templates/parallel/_normalize.scss +670 -0
- data/templates/parallel/init.rb +8 -0
- data/templates/parallel/style.scss +503 -0
- data/templates/parallel/template.html.erb +36 -0
- metadata +220 -0
@@ -0,0 +1,503 @@
|
|
1
|
+
@import "compass";
|
2
|
+
@import "normalize";
|
3
|
+
|
4
|
+
html { height: 100%; }
|
5
|
+
body {
|
6
|
+
font-family: Menlo, Consolas, Monaco, monospace;
|
7
|
+
font-size: 14px;
|
8
|
+
line-height: 18px;
|
9
|
+
color: #30404f;
|
10
|
+
margin: 0; padding: 0;
|
11
|
+
height:100%;
|
12
|
+
overflow: hidden;
|
13
|
+
}
|
14
|
+
|
15
|
+
#container {
|
16
|
+
position: absolute;
|
17
|
+
display: block;
|
18
|
+
height: 100%;
|
19
|
+
overflow-y: auto;
|
20
|
+
}
|
21
|
+
|
22
|
+
.highlight {
|
23
|
+
width: 96%;
|
24
|
+
padding-top: 10px;
|
25
|
+
padding-bottom: 10px;
|
26
|
+
display: inline-block;
|
27
|
+
overflow: hidden;
|
28
|
+
|
29
|
+
table {
|
30
|
+
width: 100%;
|
31
|
+
overflow-x: auto;
|
32
|
+
display: block;
|
33
|
+
table-layout: fixed;
|
34
|
+
|
35
|
+
tbody {
|
36
|
+
width: 100%;
|
37
|
+
|
38
|
+
tr {
|
39
|
+
width: 100%;
|
40
|
+
|
41
|
+
td {
|
42
|
+
-moz-box-shadow: inset 0 0 10px rgba(0,0,0,0.1);
|
43
|
+
-webkit-box-shadow: inset 0 0 10px rgba(0,0,0,0.1);
|
44
|
+
box-shadow: inset 0 0 10px rgba(0,0,0,0.1);
|
45
|
+
padding: 7px 10px;
|
46
|
+
background: #fcfcfc;
|
47
|
+
}
|
48
|
+
|
49
|
+
.lines {
|
50
|
+
width: 5%;
|
51
|
+
text-align: right;
|
52
|
+
// padding-right: 2px;
|
53
|
+
}
|
54
|
+
|
55
|
+
pre {
|
56
|
+
width: 100%;
|
57
|
+
|
58
|
+
code {
|
59
|
+
width: 100%;
|
60
|
+
}
|
61
|
+
}
|
62
|
+
}
|
63
|
+
}
|
64
|
+
|
65
|
+
}
|
66
|
+
}
|
67
|
+
|
68
|
+
li {
|
69
|
+
list-style: none;
|
70
|
+
}
|
71
|
+
|
72
|
+
a {
|
73
|
+
text-decoration: none;
|
74
|
+
color: #4484C2;
|
75
|
+
|
76
|
+
&:hover {
|
77
|
+
color: #48D848;
|
78
|
+
}
|
79
|
+
}
|
80
|
+
|
81
|
+
b, strong {
|
82
|
+
font-weight: normal;
|
83
|
+
}
|
84
|
+
|
85
|
+
p {
|
86
|
+
margin: 15px 0 0px;
|
87
|
+
}
|
88
|
+
.annotation ul, .annotation ol {
|
89
|
+
margin: 25px 0;
|
90
|
+
}
|
91
|
+
.annotation ul li, .annotation ol li {
|
92
|
+
font-size: 14px;
|
93
|
+
line-height: 18px;
|
94
|
+
margin: 10px 0;
|
95
|
+
}
|
96
|
+
|
97
|
+
h1, h2, h3, h4, h5, h6 {
|
98
|
+
padding-top: 10px;
|
99
|
+
color: #112233;
|
100
|
+
line-height: 1em;
|
101
|
+
font-weight: bold;
|
102
|
+
text-transform: uppercase;
|
103
|
+
margin: 30px 0 15px 0;
|
104
|
+
}
|
105
|
+
|
106
|
+
|
107
|
+
$header-font-size: 1.4em;
|
108
|
+
h1 {
|
109
|
+
margin-top: 40px;
|
110
|
+
margin-bottom: 40px;
|
111
|
+
font-size: $header-font-size * 1.1;
|
112
|
+
}
|
113
|
+
|
114
|
+
h2 {
|
115
|
+
font-size: $header-font-size * 1.0;
|
116
|
+
}
|
117
|
+
|
118
|
+
h3 {
|
119
|
+
font-size: $header-font-size * 0.9;
|
120
|
+
}
|
121
|
+
|
122
|
+
h4 {
|
123
|
+
font-size: $header-font-size * 0.8;
|
124
|
+
}
|
125
|
+
|
126
|
+
h5 {
|
127
|
+
font-size: $header-font-size * 0.7;
|
128
|
+
}
|
129
|
+
|
130
|
+
h6 {
|
131
|
+
font-size: $header-font-size * 0.6;
|
132
|
+
}
|
133
|
+
|
134
|
+
hr {
|
135
|
+
border: 0;
|
136
|
+
background: 1px #ddd;
|
137
|
+
height: 1px;
|
138
|
+
margin: 20px 0;
|
139
|
+
}
|
140
|
+
|
141
|
+
pre, tt, code {
|
142
|
+
font-size: 12px; line-height: 16px;
|
143
|
+
margin: 0; padding: 0;
|
144
|
+
}
|
145
|
+
|
146
|
+
pre {
|
147
|
+
display: block;
|
148
|
+
margin: 0;
|
149
|
+
padding: 4px;
|
150
|
+
|
151
|
+
code {
|
152
|
+
border: 0;
|
153
|
+
padding: 0;
|
154
|
+
background: transparent;
|
155
|
+
display: block;
|
156
|
+
color: #000;
|
157
|
+
}
|
158
|
+
}
|
159
|
+
|
160
|
+
blockquote {
|
161
|
+
border-left: 5px solid #ccc;
|
162
|
+
margin: 0;
|
163
|
+
padding: 1px 0 1px 1em;
|
164
|
+
}
|
165
|
+
.sections blockquote p {
|
166
|
+
font-family: Menlo, Consolas, Monaco, monospace;
|
167
|
+
font-size: 12px; line-height: 16px;
|
168
|
+
color: #999;
|
169
|
+
margin: 10px 0 0;
|
170
|
+
white-space: pre-wrap;
|
171
|
+
}
|
172
|
+
|
173
|
+
ul.sections {
|
174
|
+
list-style: none;
|
175
|
+
padding: 0 0 5px 0;;
|
176
|
+
margin:0;
|
177
|
+
}
|
178
|
+
|
179
|
+
/*
|
180
|
+
Force border-box so that % widths fit the parent
|
181
|
+
container without overlap because of margin/padding.
|
182
|
+
|
183
|
+
More Info : http://www.quirksmode.org/css/box.html
|
184
|
+
*/
|
185
|
+
ul.sections > li > div {
|
186
|
+
-moz-box-sizing: border-box; /* firefox */
|
187
|
+
-ms-box-sizing: border-box; /* ie */
|
188
|
+
-webkit-box-sizing: border-box; /* webkit */
|
189
|
+
-khtml-box-sizing: border-box; /* konqueror */
|
190
|
+
box-sizing: border-box; /* css3 */
|
191
|
+
}
|
192
|
+
|
193
|
+
#markdown-toc {
|
194
|
+
z-index: 1000;
|
195
|
+
position: fixed;
|
196
|
+
left: 0;
|
197
|
+
top: 0;
|
198
|
+
bottom: 0;
|
199
|
+
overflow-y: scroll;
|
200
|
+
font-size: 0.8em;
|
201
|
+
margin: 0;
|
202
|
+
background: white;
|
203
|
+
-webkit-box-shadow: 0 0 25px #777;
|
204
|
+
-moz-box-shadow: 0 0 25px #777;
|
205
|
+
-webkit-border-bottom-left-radius: 5px;
|
206
|
+
-moz-border-radius-bottomleft: 5px;
|
207
|
+
|
208
|
+
li {
|
209
|
+
list-style: none;
|
210
|
+
}
|
211
|
+
|
212
|
+
a {
|
213
|
+
color: #333;
|
214
|
+
text-decoration: none;
|
215
|
+
&:hover {
|
216
|
+
font-weight: 900;
|
217
|
+
color: darken(#333, 30%);
|
218
|
+
}
|
219
|
+
}
|
220
|
+
|
221
|
+
a.large {
|
222
|
+
display: none;
|
223
|
+
}
|
224
|
+
|
225
|
+
a.active {
|
226
|
+
font-weight: 900;
|
227
|
+
color: darken(#333, 30%);
|
228
|
+
}
|
229
|
+
|
230
|
+
a.small {
|
231
|
+
font-size: 22px;
|
232
|
+
font-weight: bold;
|
233
|
+
color: #676767;
|
234
|
+
}
|
235
|
+
}
|
236
|
+
|
237
|
+
@media only screen and (max-width: 320px) {
|
238
|
+
#container {
|
239
|
+
position: relative;
|
240
|
+
width: 100%;
|
241
|
+
left: 0;
|
242
|
+
}
|
243
|
+
|
244
|
+
#markdown-toc {
|
245
|
+
position: relative;
|
246
|
+
top: 0;
|
247
|
+
}
|
248
|
+
}
|
249
|
+
|
250
|
+
|
251
|
+
/*---------------------- Low resolutions (> 320px) ---------------------*/
|
252
|
+
@media only screen and (min-width: 320px) {
|
253
|
+
#container {
|
254
|
+
width: 100%;
|
255
|
+
}
|
256
|
+
|
257
|
+
.pilwrap { display: none; }
|
258
|
+
|
259
|
+
ul.sections > li > div {
|
260
|
+
display: block;
|
261
|
+
padding:5px 10px 0 10px;
|
262
|
+
}
|
263
|
+
|
264
|
+
ul.sections > li > div.annotation ul, ul.sections > li > div.annotation ol {
|
265
|
+
padding-left: 30px;
|
266
|
+
}
|
267
|
+
|
268
|
+
ul.sections > li > div.content {
|
269
|
+
overflow-x:auto;
|
270
|
+
-webkit-box-shadow: inset 0 0 5px #e5e5ee;
|
271
|
+
box-shadow: inset 0 0 5px #e5e5ee;
|
272
|
+
border: 1px solid #dedede;
|
273
|
+
margin:5px 10px 5px 10px;
|
274
|
+
padding-bottom: 5px;
|
275
|
+
}
|
276
|
+
|
277
|
+
ul.sections > li > div.annotation pre {
|
278
|
+
margin: 7px 0 7px;
|
279
|
+
padding-left: 15px;
|
280
|
+
}
|
281
|
+
|
282
|
+
ul.sections > li > div.annotation p tt, .annotation code {
|
283
|
+
background: #f8f8ff;
|
284
|
+
border: 1px solid #dedede;
|
285
|
+
font-size: 12px;
|
286
|
+
padding: 0 0.2em;
|
287
|
+
}
|
288
|
+
}
|
289
|
+
|
290
|
+
/*---------------------- (> 481px) ---------------------*/
|
291
|
+
@media only screen and (min-width: 481px) {
|
292
|
+
#container {
|
293
|
+
position: relative;
|
294
|
+
width: 100%;
|
295
|
+
left: 200px;
|
296
|
+
}
|
297
|
+
body {
|
298
|
+
background-color: #F5F5FF;
|
299
|
+
font-size: 15px;
|
300
|
+
line-height: 21px;
|
301
|
+
}
|
302
|
+
pre, tt, code {
|
303
|
+
line-height: 18px;
|
304
|
+
}
|
305
|
+
p, ul, ol {
|
306
|
+
margin: 0 0 15px;
|
307
|
+
}
|
308
|
+
|
309
|
+
|
310
|
+
#markdown-toc {
|
311
|
+
padding: 5px 10px;
|
312
|
+
width: 150px;
|
313
|
+
}
|
314
|
+
#markdown-toc a.large {
|
315
|
+
display: inline-block;
|
316
|
+
}
|
317
|
+
#markdown-toc a.small {
|
318
|
+
display: none;
|
319
|
+
}
|
320
|
+
|
321
|
+
#background {
|
322
|
+
position: absolute;
|
323
|
+
top: 0; bottom: 0;
|
324
|
+
width: 350px;
|
325
|
+
background: #fff;
|
326
|
+
border-right: 1px solid #e5e5ee;
|
327
|
+
z-index: -1;
|
328
|
+
}
|
329
|
+
|
330
|
+
ul.sections > li > div.annotation ul, ul.sections > li > div.annotation ol {
|
331
|
+
padding-left: 40px;
|
332
|
+
}
|
333
|
+
|
334
|
+
ul.sections > li {
|
335
|
+
white-space: nowrap;
|
336
|
+
}
|
337
|
+
|
338
|
+
ul.sections > li > div {
|
339
|
+
display: inline-block;
|
340
|
+
}
|
341
|
+
|
342
|
+
ul.sections > li > div.annotation {
|
343
|
+
max-width: 350px;
|
344
|
+
min-width: 350px;
|
345
|
+
min-height: 5px;
|
346
|
+
padding: 13px;
|
347
|
+
overflow-x: hidden;
|
348
|
+
white-space: normal;
|
349
|
+
vertical-align: top;
|
350
|
+
text-align: left;
|
351
|
+
}
|
352
|
+
ul.sections > li > div.annotation pre {
|
353
|
+
margin: 15px 0 15px;
|
354
|
+
padding-left: 15px;
|
355
|
+
}
|
356
|
+
|
357
|
+
ul.sections > li > div.content {
|
358
|
+
padding: 13px;
|
359
|
+
vertical-align: top;
|
360
|
+
border: none;
|
361
|
+
-webkit-box-shadow: none;
|
362
|
+
box-shadow: none;
|
363
|
+
}
|
364
|
+
|
365
|
+
.pilwrap {
|
366
|
+
position: relative;
|
367
|
+
display: inline;
|
368
|
+
}
|
369
|
+
|
370
|
+
.pilcrow {
|
371
|
+
font: 12px Arial;
|
372
|
+
text-decoration: none;
|
373
|
+
color: #454545;
|
374
|
+
position: absolute;
|
375
|
+
top: 3px; left: -20px;
|
376
|
+
padding: 1px 2px;
|
377
|
+
opacity: 0;
|
378
|
+
-webkit-transition: opacity 0.2s linear;
|
379
|
+
}
|
380
|
+
.for-h1 .pilcrow {
|
381
|
+
top: 47px;
|
382
|
+
}
|
383
|
+
.for-h2 .pilcrow, .for-h3 .pilcrow, .for-h4 .pilcrow {
|
384
|
+
top: 35px;
|
385
|
+
}
|
386
|
+
|
387
|
+
ul.sections > li > div.annotation:hover .pilcrow {
|
388
|
+
opacity: 1;
|
389
|
+
}
|
390
|
+
|
391
|
+
}
|
392
|
+
|
393
|
+
/*---------------------- (> 1025px) ---------------------*/
|
394
|
+
@media only screen and (min-width: 1025px) {
|
395
|
+
|
396
|
+
body {
|
397
|
+
font-size: 16px;
|
398
|
+
line-height: 24px;
|
399
|
+
}
|
400
|
+
|
401
|
+
#container {
|
402
|
+
left: 28%;
|
403
|
+
width: 72%;
|
404
|
+
}
|
405
|
+
|
406
|
+
#markdown-toc {
|
407
|
+
width: 24%;
|
408
|
+
}
|
409
|
+
|
410
|
+
#background {
|
411
|
+
width: 525px;
|
412
|
+
}
|
413
|
+
|
414
|
+
ul.sections > li > div.annotation {
|
415
|
+
max-width: 525px;
|
416
|
+
min-width: 525px;
|
417
|
+
padding: 10px 25px 1px 50px;
|
418
|
+
}
|
419
|
+
ul.sections > li > div.content {
|
420
|
+
padding: 9px 15px 16px 25px;
|
421
|
+
}
|
422
|
+
}
|
423
|
+
|
424
|
+
/*---------------------- Syntax Highlighting -----------------------------*/
|
425
|
+
|
426
|
+
.lines {
|
427
|
+
td {
|
428
|
+
background-color: #f0f0f0;
|
429
|
+
padding-right: 10px;
|
430
|
+
}
|
431
|
+
span {
|
432
|
+
padding: 0 5px 0 5px;
|
433
|
+
}
|
434
|
+
}
|
435
|
+
|
436
|
+
|
437
|
+
/*
|
438
|
+
|
439
|
+
github.com style (c) Vasily Polovnyov <vast@whiteants.net>
|
440
|
+
|
441
|
+
*/
|
442
|
+
|
443
|
+
.highlight .hll { background-color: #ffffcc }
|
444
|
+
.highlight .c { color: #60a0b0; font-style: italic } /* Comment */
|
445
|
+
.highlight .err { border: 1px solid #FF0000 } /* Error */
|
446
|
+
.highlight .k { color: #007020; font-weight: bold } /* Keyword */
|
447
|
+
.highlight .o { color: #666666 } /* Operator */
|
448
|
+
.highlight .cm { color: #60a0b0; font-style: italic } /* Comment.Multiline */
|
449
|
+
.highlight .cp { color: #007020 } /* Comment.Preproc */
|
450
|
+
.highlight .c1 { color: #60a0b0; font-style: italic } /* Comment.Single */
|
451
|
+
.highlight .cs { color: #60a0b0; background-color: #fff0f0 } /* Comment.Special */
|
452
|
+
.highlight .gd { color: #A00000 } /* Generic.Deleted */
|
453
|
+
.highlight .ge { font-style: italic } /* Generic.Emph */
|
454
|
+
.highlight .gr { color: #FF0000 } /* Generic.Error */
|
455
|
+
.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
|
456
|
+
.highlight .gi { color: #00A000 } /* Generic.Inserted */
|
457
|
+
.highlight .go { color: #808080 } /* Generic.Output */
|
458
|
+
.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */
|
459
|
+
.highlight .gs { font-weight: bold } /* Generic.Strong */
|
460
|
+
.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
|
461
|
+
.highlight .gt { color: #0040D0 } /* Generic.Traceback */
|
462
|
+
.highlight .kc { color: #007020; font-weight: bold } /* Keyword.Constant */
|
463
|
+
.highlight .kd { color: #007020; font-weight: bold } /* Keyword.Declaration */
|
464
|
+
.highlight .kn { color: #007020; font-weight: bold } /* Keyword.Namespace */
|
465
|
+
.highlight .kp { color: #007020 } /* Keyword.Pseudo */
|
466
|
+
.highlight .kr { color: #007020; font-weight: bold } /* Keyword.Reserved */
|
467
|
+
.highlight .kt { color: #902000 } /* Keyword.Type */
|
468
|
+
.highlight .m { color: #40a070 } /* Literal.Number */
|
469
|
+
.highlight .s { color: #4070a0 } /* Literal.String */
|
470
|
+
.highlight .na { color: #4070a0 } /* Name.Attribute */
|
471
|
+
.highlight .nb { color: #007020 } /* Name.Builtin */
|
472
|
+
.highlight .nc { color: #0e84b5; font-weight: bold } /* Name.Class */
|
473
|
+
.highlight .no { color: #60add5 } /* Name.Constant */
|
474
|
+
.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */
|
475
|
+
.highlight .ni { color: #d55537; font-weight: bold } /* Name.Entity */
|
476
|
+
.highlight .ne { color: #007020 } /* Name.Exception */
|
477
|
+
.highlight .nf { color: #06287e } /* Name.Function */
|
478
|
+
.highlight .nl { color: #002070; font-weight: bold } /* Name.Label */
|
479
|
+
.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */
|
480
|
+
.highlight .nt { color: #062873; font-weight: bold } /* Name.Tag */
|
481
|
+
.highlight .nv { color: #bb60d5 } /* Name.Variable */
|
482
|
+
.highlight .ow { color: #007020; font-weight: bold } /* Operator.Word */
|
483
|
+
.highlight .w { color: #bbbbbb } /* Text.Whitespace */
|
484
|
+
.highlight .mf { color: #40a070 } /* Literal.Number.Float */
|
485
|
+
.highlight .mh { color: #40a070 } /* Literal.Number.Hex */
|
486
|
+
.highlight .mi { color: #40a070 } /* Literal.Number.Integer */
|
487
|
+
.highlight .mo { color: #40a070 } /* Literal.Number.Oct */
|
488
|
+
.highlight .sb { color: #4070a0 } /* Literal.String.Backtick */
|
489
|
+
.highlight .sc { color: #4070a0 } /* Literal.String.Char */
|
490
|
+
.highlight .sd { color: #4070a0; font-style: italic } /* Literal.String.Doc */
|
491
|
+
.highlight .s2 { color: #4070a0 } /* Literal.String.Double */
|
492
|
+
.highlight .se { color: #4070a0; font-weight: bold } /* Literal.String.Escape */
|
493
|
+
.highlight .sh { color: #4070a0 } /* Literal.String.Heredoc */
|
494
|
+
.highlight .si { color: #70a0d0; font-style: italic } /* Literal.String.Interpol */
|
495
|
+
.highlight .sx { color: #c65d09 } /* Literal.String.Other */
|
496
|
+
.highlight .sr { color: #235388 } /* Literal.String.Regex */
|
497
|
+
.highlight .s1 { color: #4070a0 } /* Literal.String.Single */
|
498
|
+
.highlight .ss { color: #517918 } /* Literal.String.Symbol */
|
499
|
+
.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */
|
500
|
+
.highlight .vc { color: #bb60d5 } /* Name.Variable.Class */
|
501
|
+
.highlight .vg { color: #bb60d5 } /* Name.Variable.Global */
|
502
|
+
.highlight .vi { color: #bb60d5 } /* Name.Variable.Instance */
|
503
|
+
.highlight .il { color: #40a070 } /* Literal.Number.Integer.Long */
|
@@ -0,0 +1,36 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<meta charset="utf-8">
|
5
|
+
<title><%= @title %></title>
|
6
|
+
<link rel="stylesheet" type="text/css" href="style.css" />
|
7
|
+
</head>
|
8
|
+
<body>
|
9
|
+
<article id='container'>
|
10
|
+
<%= @content %>
|
11
|
+
</article>
|
12
|
+
</body>
|
13
|
+
<script type="text/javascript">
|
14
|
+
var bodyEl = document.getElementsByTagName('body')[0];
|
15
|
+
var markdownToc = document.getElementById('markdown-toc');
|
16
|
+
bodyEl.appendChild(markdownToc);
|
17
|
+
|
18
|
+
var hash = location.hash.replace('#', '');
|
19
|
+
|
20
|
+
// Set init highlight anchor
|
21
|
+
if (hash) {
|
22
|
+
var activeAnchor = document.getElementById('markdown-toc-' + hash);
|
23
|
+
if (activeAnchor) {
|
24
|
+
activeAnchor.classList.add('active');
|
25
|
+
}
|
26
|
+
}
|
27
|
+
|
28
|
+
markdownToc.onclick = function(e) {
|
29
|
+
var activeAnchor = document.querySelector('a.active');
|
30
|
+
if (activeAnchor) {
|
31
|
+
activeAnchor.classList.remove('active');
|
32
|
+
}
|
33
|
+
e.target.classList.add('active')
|
34
|
+
}
|
35
|
+
</script>
|
36
|
+
</html>
|