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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "docula",
3
- "version": "0.7.1",
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.2",
44
- "ecto": "^3.0.6",
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.1.0"
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": "^20.14.11",
55
+ "@types/node": "^22.0.2",
56
56
  "@types/update-notifier": "^6.0.8",
57
- "@vitest/coverage-v8": "^2.0.3",
57
+ "@vitest/coverage-v8": "^2.0.5",
58
58
  "rimraf": "^5.0.7",
59
- "typescript": "^5.5.3",
60
- "vitest": "^2.0.3",
59
+ "typescript": "^5.5.4",
60
+ "vitest": "^2.0.5",
61
61
  "webpack": "^5.93.0",
62
- "xo": "^0.59.0"
62
+ "xo": "^0.59.3"
63
63
  },
64
64
  "xo": {
65
65
  "ignores": [
@@ -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: 6rem 0;
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: 3rem;
233
+ line-height: 2rem;
234
234
  }
235
235
 
236
236
  .content h2 {
237
- font-size: 1.25rem;
237
+ font-size: 1.375rem;
238
238
  line-height: 2rem;
239
- padding-top: 4.25rem;
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.125rem;
245
+ font-size: 1.25rem;
246
246
  line-height: 1.5rem;
247
- padding-top: 3rem;
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 h4, .content h5, .content h6 {
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 0;
385
+ margin-bottom: 4.5rem;
370
386
  }
371
387
  .content-container {
372
- margin: 6rem 0;
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: 10rem 0;
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: 7.5rem 0;
456
+ margin-bottom: 7rem;
433
457
  }
434
458
  }
435
459
 
@@ -1,15 +1,20 @@
1
1
  /* Home */
2
2
  .home-hero {
3
- padding: 3.5rem 0 4.5rem;
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: 2rem 2rem 3rem;
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.75rem;
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 2.5rem 1.5rem;
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 4.5rem;
299
+ padding: 4rem 0;
299
300
  }
300
301
  }
301
302
 
302
303
  @media screen and (min-width: 768px) {
303
- .home-hero {
304
- padding: 4.5rem 0;
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: 4.5rem auto 3.5rem;
322
+ margin: 0 auto 3.5rem;
322
323
  }
323
- .home-hero {
324
- padding: 7.5rem 0;
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: 3.25rem;
460
- padding-right: 3.25rem;
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: 5.5rem;
480
- padding-right: 5.5rem;
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: 7.5rem;
494
- padding-right: 7.5rem;
494
+ padding-left: 6rem;
495
+ padding-right: 6rem;
495
496
  }
496
497
  }
package/template/docs.hbs CHANGED
@@ -10,13 +10,12 @@
10
10
  <main class="layout">
11
11
  {{> multipage/header }}
12
12
  {{> multipage/sidebar }}
13
- {{> multipage/doc }}
13
+ {{> multipage/doc }}
14
14
  </main>
15
15
  {{> footer}}
16
16
 
17
17
  {{> scripts }}
18
18
  {{> multipage/scripts }}
19
19
 
20
-
21
20
  </body>
22
21
  </html>
@@ -3,7 +3,7 @@
3
3
  <article class="content">
4
4
  <div class="items-start">
5
5
  </div>
6
- {{generatedHtml}}
6
+ {{generatedHtml}}
7
7
  </article>
8
8
  </div>
9
9
 
@@ -1,6 +1,6 @@
1
1
  <section class="home-hero">
2
2
  <img src="/logo.svg" alt="logo"/>
3
- <div class="home-container">
3
+ <div class="hero-container">
4
4
  <h1>{{ siteDescription }}</h1>
5
5
  </div>
6
6
  <a href="/docs" class="home-docs-button">Documentation</a>
@@ -39,9 +39,9 @@
39
39
  </span>
40
40
  </div>
41
41
  <div class="release-body">
42
- {{#if release.body}}
43
- {{#markdown}}{{release.body}}{{/markdown}}
44
- {{/if}}
42
+ {{#if release.body}}
43
+ {{#markdown}}{{release.body}}{{/markdown}}
44
+ {{/if}}
45
45
  </div>
46
46
  </div>
47
47
  {{/if}}
@@ -1,26 +1,26 @@
1
1
  <article class="home-container">
2
- <div class="content">{{{content}}}</div>
2
+ <div class="content">{{{content}}}</div>
3
3
 
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}}
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
- {{/if}}
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
- {{#if release.body}}
45
- {{#markdown}}{{release.body}}{{/markdown}}
46
- {{/if}}
44
+ {{#if release.body}}
45
+ {{#markdown}}{{release.body}}{{/markdown}}
46
+ {{/if}}
47
47
  </div>
48
48
  </div>
49
49
  {{/if}}
@@ -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
- {{#if content}}
11
- {{> singlepage/hero }}
12
- {{> singlepage/content }}
13
- {{else}}
14
- <main class="home">
15
- {{> multipage/hero }}
16
- {{> multipage/home }}
17
- </main>
18
- {{/if}}
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
- {{> footer}}
21
- {{> scripts }}
20
+ {{> footer}}
21
+ {{> scripts }}
22
22
 
23
- {{#unless content}}
24
- {{> multipage/scripts }}
25
- {{/unless}}
23
+ {{#unless content}}
24
+ {{> multipage/scripts }}
25
+ {{/unless}}
26
26
  </body>
27
27
  </html>
@@ -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="home-container">
12
- <div class="content-container versions-container">
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
- {{#if release.body}}
32
- {{#markdown}}{{release.body}}{{/markdown}}
33
- {{/if}}
31
+ {{#if release.body}}
32
+ {{#markdown}}{{release.body}}{{/markdown}}
33
+ {{/if}}
34
34
  </div>
35
35
  </div>
36
36
  {{/each}}