docula 0.7.1 → 0.7.2
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/package.json +9 -9
- package/template/css/base.css +40 -16
- package/template/css/multipage.css +23 -22
- package/template/docs.hbs +1 -2
- package/template/includes/multipage/doc.hbs +1 -1
- package/template/includes/multipage/hero.hbs +1 -1
- package/template/includes/multipage/home.hbs +3 -3
- package/template/includes/singlepage/content.hbs +22 -22
- package/template/index.hbs +14 -14
- package/template/releases.hbs +5 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "docula",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.2",
|
|
4
4
|
"description": "Beautiful Website for Your Projects",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": "./dist/index.js",
|
|
@@ -40,26 +40,26 @@
|
|
|
40
40
|
"docula": "./bin/docula.mjs"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"axios": "^1.7.
|
|
44
|
-
"ecto": "^3.0.
|
|
43
|
+
"axios": "^1.7.3",
|
|
44
|
+
"ecto": "^3.0.8",
|
|
45
45
|
"express": "^4.19.2",
|
|
46
46
|
"feed": "^4.2.2",
|
|
47
47
|
"gray-matter": "^4.0.3",
|
|
48
48
|
"js-yaml": "^4.1.0",
|
|
49
49
|
"keyv": "^4.5.4",
|
|
50
|
-
"update-notifier": "^7.
|
|
50
|
+
"update-notifier": "^7.2.0"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@types/express": "^4.17.21",
|
|
54
54
|
"@types/js-yaml": "^4.0.9",
|
|
55
|
-
"@types/node": "^
|
|
55
|
+
"@types/node": "^22.0.2",
|
|
56
56
|
"@types/update-notifier": "^6.0.8",
|
|
57
|
-
"@vitest/coverage-v8": "^2.0.
|
|
57
|
+
"@vitest/coverage-v8": "^2.0.5",
|
|
58
58
|
"rimraf": "^5.0.7",
|
|
59
|
-
"typescript": "^5.5.
|
|
60
|
-
"vitest": "^2.0.
|
|
59
|
+
"typescript": "^5.5.4",
|
|
60
|
+
"vitest": "^2.0.5",
|
|
61
61
|
"webpack": "^5.93.0",
|
|
62
|
-
"xo": "^0.59.
|
|
62
|
+
"xo": "^0.59.3"
|
|
63
63
|
},
|
|
64
64
|
"xo": {
|
|
65
65
|
"ignores": [
|
package/template/css/base.css
CHANGED
|
@@ -54,7 +54,7 @@ hr {
|
|
|
54
54
|
max-width: 12.5rem;
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
.home-container {
|
|
57
|
+
.home-container, .versions-container {
|
|
58
58
|
max-width: 90%;
|
|
59
59
|
margin: 0 auto;
|
|
60
60
|
color: var(--color-text);
|
|
@@ -71,7 +71,7 @@ hr {
|
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
.content-container {
|
|
74
|
-
margin:
|
|
74
|
+
margin: 3rem 0;
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
.facepile-container {
|
|
@@ -230,31 +230,37 @@ footer img {
|
|
|
230
230
|
letter-spacing: -.5px;
|
|
231
231
|
font-weight: 700;
|
|
232
232
|
font-size: 1.5rem;
|
|
233
|
-
line-height:
|
|
233
|
+
line-height: 2rem;
|
|
234
234
|
}
|
|
235
235
|
|
|
236
236
|
.content h2 {
|
|
237
|
-
font-size: 1.
|
|
237
|
+
font-size: 1.375rem;
|
|
238
238
|
line-height: 2rem;
|
|
239
|
-
padding-top:
|
|
239
|
+
padding-top: 2rem;
|
|
240
240
|
margin-bottom: 0;
|
|
241
241
|
font-weight: 600;
|
|
242
242
|
}
|
|
243
243
|
|
|
244
244
|
.content h3 {
|
|
245
|
-
font-size: 1.
|
|
245
|
+
font-size: 1.25rem;
|
|
246
246
|
line-height: 1.5rem;
|
|
247
|
-
padding-top:
|
|
247
|
+
padding-top: 1.8rem;
|
|
248
248
|
margin-bottom: 0;
|
|
249
249
|
font-weight: 600;
|
|
250
250
|
}
|
|
251
251
|
|
|
252
|
+
.content h4 {
|
|
253
|
+
font-size: 1.125rem;
|
|
254
|
+
font-weight: 600;
|
|
255
|
+
}
|
|
256
|
+
|
|
252
257
|
.content h4, .content h5, .content h6 {
|
|
253
258
|
padding-top: 1.875rem;
|
|
254
259
|
}
|
|
255
260
|
|
|
256
|
-
.content
|
|
261
|
+
.content h5, .content h6 {
|
|
257
262
|
font-weight: 600;
|
|
263
|
+
font-size: 1rem;
|
|
258
264
|
}
|
|
259
265
|
|
|
260
266
|
.content p {
|
|
@@ -262,7 +268,6 @@ footer img {
|
|
|
262
268
|
line-height: 1.5rem;
|
|
263
269
|
}
|
|
264
270
|
|
|
265
|
-
|
|
266
271
|
.content > ul, .content > ol {
|
|
267
272
|
margin-top: 0.75rem;
|
|
268
273
|
padding-left: 1rem;
|
|
@@ -288,6 +293,15 @@ footer img {
|
|
|
288
293
|
line-height: 1.5;
|
|
289
294
|
}
|
|
290
295
|
|
|
296
|
+
.content li > a {
|
|
297
|
+
transition: all .2s ease-out;
|
|
298
|
+
cursor: pointer;
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
.content li > a:hover {
|
|
302
|
+
text-decoration: underline;
|
|
303
|
+
}
|
|
304
|
+
|
|
291
305
|
.content pre {
|
|
292
306
|
margin-top: 1.375rem;
|
|
293
307
|
margin-bottom: 2rem;
|
|
@@ -353,8 +367,10 @@ footer img {
|
|
|
353
367
|
}
|
|
354
368
|
|
|
355
369
|
@media screen and (min-width: 640px) {
|
|
356
|
-
.home-container {
|
|
370
|
+
.home-container, .versions-container {
|
|
357
371
|
max-width: 82%;
|
|
372
|
+
margin-left: auto;
|
|
373
|
+
margin-right: auto;
|
|
358
374
|
}
|
|
359
375
|
}
|
|
360
376
|
|
|
@@ -366,14 +382,20 @@ footer img {
|
|
|
366
382
|
margin-bottom: 4rem;
|
|
367
383
|
}
|
|
368
384
|
.versions-container {
|
|
369
|
-
margin: 4.5rem
|
|
385
|
+
margin-bottom: 4.5rem;
|
|
370
386
|
}
|
|
371
387
|
.content-container {
|
|
372
|
-
margin:
|
|
388
|
+
margin: 4rem 0;
|
|
373
389
|
}
|
|
374
390
|
.content h1 {
|
|
375
391
|
font-size: 1.875rem;
|
|
376
392
|
}
|
|
393
|
+
.content h2 {
|
|
394
|
+
padding-top: 3rem;
|
|
395
|
+
}
|
|
396
|
+
.content h3 {
|
|
397
|
+
padding-top: 2.5rem;
|
|
398
|
+
}
|
|
377
399
|
}
|
|
378
400
|
|
|
379
401
|
@media screen and (min-width: 992px) {
|
|
@@ -383,8 +405,10 @@ footer img {
|
|
|
383
405
|
.home-hero img {
|
|
384
406
|
max-width: 37.5rem;
|
|
385
407
|
}
|
|
386
|
-
.home-container {
|
|
408
|
+
.home-container, .versions-container {
|
|
387
409
|
max-width: 70%;
|
|
410
|
+
margin-left: auto;
|
|
411
|
+
margin-right: auto;
|
|
388
412
|
}
|
|
389
413
|
.home-title {
|
|
390
414
|
margin-bottom: 4rem;
|
|
@@ -415,11 +439,11 @@ footer img {
|
|
|
415
439
|
}
|
|
416
440
|
|
|
417
441
|
@media screen and (min-width: 1200px) {
|
|
418
|
-
.home-container {
|
|
442
|
+
.home-container, .versions-container {
|
|
419
443
|
max-width: 59.25rem;
|
|
420
444
|
}
|
|
421
445
|
.content-container {
|
|
422
|
-
margin:
|
|
446
|
+
margin: 7rem 0;
|
|
423
447
|
}
|
|
424
448
|
.facepile > a {
|
|
425
449
|
margin-left: -1.9rem;
|
|
@@ -429,7 +453,7 @@ footer img {
|
|
|
429
453
|
max-height: 4.4rem;
|
|
430
454
|
}
|
|
431
455
|
.versions-container {
|
|
432
|
-
margin:
|
|
456
|
+
margin-bottom: 7rem;
|
|
433
457
|
}
|
|
434
458
|
}
|
|
435
459
|
|
|
@@ -1,15 +1,20 @@
|
|
|
1
1
|
/* Home */
|
|
2
2
|
.home-hero {
|
|
3
|
-
padding:
|
|
3
|
+
padding: 3rem 0 2.5rem;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.hero-container {
|
|
7
|
+
margin: 2rem auto 3rem;
|
|
8
|
+
max-width: 90%;
|
|
4
9
|
}
|
|
5
10
|
|
|
6
11
|
.home-container {
|
|
7
|
-
margin:
|
|
12
|
+
margin: 0 auto 3rem;
|
|
8
13
|
}
|
|
9
14
|
|
|
10
|
-
.home-container h1 {
|
|
15
|
+
.home-container h1, .hero-container h1 {
|
|
11
16
|
font-weight: 500;
|
|
12
|
-
font-size: 1.
|
|
17
|
+
font-size: 1.5rem;
|
|
13
18
|
}
|
|
14
19
|
|
|
15
20
|
.home-docs-button {
|
|
@@ -123,7 +128,7 @@ details > summary {
|
|
|
123
128
|
}
|
|
124
129
|
|
|
125
130
|
.sidebar-content {
|
|
126
|
-
padding: 3rem
|
|
131
|
+
padding: 3rem 2rem 1.5rem;
|
|
127
132
|
overflow-y: auto;
|
|
128
133
|
font-size: 0.875rem;
|
|
129
134
|
height: 90vh;
|
|
@@ -290,18 +295,14 @@ details > summary {
|
|
|
290
295
|
|
|
291
296
|
|
|
292
297
|
@media screen and (min-width: 640px) {
|
|
293
|
-
.home-container {
|
|
294
|
-
margin-left: 4rem;
|
|
295
|
-
margin-right: 4rem;
|
|
296
|
-
}
|
|
297
298
|
.home-hero {
|
|
298
|
-
padding: 4rem 0
|
|
299
|
+
padding: 4rem 0;
|
|
299
300
|
}
|
|
300
301
|
}
|
|
301
302
|
|
|
302
303
|
@media screen and (min-width: 768px) {
|
|
303
|
-
.home-hero {
|
|
304
|
-
|
|
304
|
+
.home-container h1, .hero-container h1 {
|
|
305
|
+
font-size: 1.75rem;
|
|
305
306
|
}
|
|
306
307
|
|
|
307
308
|
.main-content {
|
|
@@ -318,15 +319,15 @@ details > summary {
|
|
|
318
319
|
|
|
319
320
|
@media screen and (min-width: 992px) {
|
|
320
321
|
.home-container {
|
|
321
|
-
margin:
|
|
322
|
+
margin: 0 auto 3.5rem;
|
|
322
323
|
}
|
|
323
|
-
.
|
|
324
|
-
|
|
324
|
+
.hero-container {
|
|
325
|
+
margin-bottom: 3.5rem;
|
|
325
326
|
}
|
|
326
327
|
.home-hero img {
|
|
327
328
|
max-width: 28rem;
|
|
328
329
|
}
|
|
329
|
-
.home-container h1 {
|
|
330
|
+
.home-container h1, .hero-container h1 {
|
|
330
331
|
font-size: 2rem;
|
|
331
332
|
}
|
|
332
333
|
.home-docs-button {
|
|
@@ -456,8 +457,8 @@ details > summary {
|
|
|
456
457
|
width: 23.75rem;
|
|
457
458
|
}
|
|
458
459
|
.sidebar-logo, .sidebar-content, .sidebar-footer {
|
|
459
|
-
padding-left:
|
|
460
|
-
padding-right:
|
|
460
|
+
padding-left: 2.5rem;
|
|
461
|
+
padding-right: 2.5rem;
|
|
461
462
|
}
|
|
462
463
|
.main-content {
|
|
463
464
|
padding-left: 4.5rem;
|
|
@@ -476,8 +477,8 @@ details > summary {
|
|
|
476
477
|
width: 28.75rem;
|
|
477
478
|
}
|
|
478
479
|
.sidebar-logo, .sidebar-content, .sidebar-footer {
|
|
479
|
-
padding-left:
|
|
480
|
-
padding-right:
|
|
480
|
+
padding-left: 4rem;
|
|
481
|
+
padding-right: 4rem;
|
|
481
482
|
}
|
|
482
483
|
}
|
|
483
484
|
|
|
@@ -490,7 +491,7 @@ details > summary {
|
|
|
490
491
|
width: 37.5rem;
|
|
491
492
|
}
|
|
492
493
|
.sidebar-logo, .sidebar-content, .sidebar-footer {
|
|
493
|
-
padding-left:
|
|
494
|
-
padding-right:
|
|
494
|
+
padding-left: 6rem;
|
|
495
|
+
padding-right: 6rem;
|
|
495
496
|
}
|
|
496
497
|
}
|
package/template/docs.hbs
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
<article class="home-container">
|
|
2
|
-
|
|
2
|
+
<div class="content">{{{content}}}</div>
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
</div>
|
|
4
|
+
{{#if github}}
|
|
5
|
+
{{#if github.contributors}}
|
|
6
|
+
<div class="content-container">
|
|
7
|
+
<h2 class="home-title">Contributors</h2>
|
|
8
|
+
<div class="facepile-container">
|
|
9
|
+
<div class="facepile">
|
|
10
|
+
{{#each github.contributors}}
|
|
11
|
+
<a
|
|
12
|
+
href="{{html_url}}"
|
|
13
|
+
target="_blank"
|
|
14
|
+
title="{{login}}"
|
|
15
|
+
rel="noopener noreferrer"
|
|
16
|
+
>
|
|
17
|
+
<img src="{{avatar_url}}" alt="{{login}}" />
|
|
18
|
+
</a>
|
|
19
|
+
{{/each}}
|
|
21
20
|
</div>
|
|
22
21
|
</div>
|
|
23
|
-
|
|
22
|
+
</div>
|
|
23
|
+
{{/if}}
|
|
24
24
|
|
|
25
25
|
{{#if github.releases}}
|
|
26
26
|
<div class="content-container">
|
|
@@ -41,9 +41,9 @@
|
|
|
41
41
|
</span>
|
|
42
42
|
</div>
|
|
43
43
|
<div class="release-body">
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
44
|
+
{{#if release.body}}
|
|
45
|
+
{{#markdown}}{{release.body}}{{/markdown}}
|
|
46
|
+
{{/if}}
|
|
47
47
|
</div>
|
|
48
48
|
</div>
|
|
49
49
|
{{/if}}
|
package/template/index.hbs
CHANGED
|
@@ -7,21 +7,21 @@
|
|
|
7
7
|
<body>
|
|
8
8
|
<a class="github-fork-ribbon" href="https://github.com/{{ githubPath }}" data-ribbon="Fork me on GitHub" title="Fork me on GitHub">Fork me on GitHub</a>
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
10
|
+
{{#if content}}
|
|
11
|
+
{{> singlepage/hero }}
|
|
12
|
+
{{> singlepage/content }}
|
|
13
|
+
{{else}}
|
|
14
|
+
<main class="home">
|
|
15
|
+
{{> multipage/hero }}
|
|
16
|
+
{{> multipage/home }}
|
|
17
|
+
</main>
|
|
18
|
+
{{/if}}
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
{{> footer}}
|
|
21
|
+
{{> scripts }}
|
|
22
22
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
{{#unless content}}
|
|
24
|
+
{{> multipage/scripts }}
|
|
25
|
+
{{/unless}}
|
|
26
26
|
</body>
|
|
27
27
|
</html>
|
package/template/releases.hbs
CHANGED
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
<body>
|
|
9
9
|
{{> singlepage/hero }}
|
|
10
10
|
<a class="github-fork-ribbon" href="https://github.com/jaredwray/docula" data-ribbon="Fork me on GitHub" title="Fork me on GitHub">Fork me on GitHub</a>
|
|
11
|
-
<main class="
|
|
12
|
-
<div class="
|
|
11
|
+
<main class="versions-container">
|
|
12
|
+
<div class="versions-content">
|
|
13
13
|
<h2 class="home-title">Releases</h2>
|
|
14
14
|
{{#if github}}
|
|
15
15
|
{{#if github.releases}}
|
|
@@ -28,9 +28,9 @@
|
|
|
28
28
|
</span>
|
|
29
29
|
</div>
|
|
30
30
|
<div class="release-body">
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
31
|
+
{{#if release.body}}
|
|
32
|
+
{{#markdown}}{{release.body}}{{/markdown}}
|
|
33
|
+
{{/if}}
|
|
34
34
|
</div>
|
|
35
35
|
</div>
|
|
36
36
|
{{/each}}
|