@t8/docsgen 0.2.31 → 0.2.32
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/dist/bin.js +2 -14
- package/dist/css/base.css +3 -0
- package/dist/css/index.css +3 -1
- package/package.json +1 -1
- package/src/bin/parsing/getParsedContent.ts +0 -2
- package/src/bin/setContent.ts +3 -12
- package/src/css/base.css +3 -0
- package/src/css/index.css +3 -1
package/dist/bin.js
CHANGED
|
@@ -590,7 +590,6 @@ async function getParsedContent(ctx) {
|
|
|
590
590
|
let badges = "";
|
|
591
591
|
let title = "";
|
|
592
592
|
let description = [];
|
|
593
|
-
let descriptionNote = [];
|
|
594
593
|
let intro = [];
|
|
595
594
|
let features = [];
|
|
596
595
|
let note = [];
|
|
@@ -663,7 +662,6 @@ async function getParsedContent(ctx) {
|
|
|
663
662
|
// postprocessBadges(joinLines(badges)),
|
|
664
663
|
title,
|
|
665
664
|
description: joinLines(description),
|
|
666
|
-
descriptionNote: joinLines(descriptionNote),
|
|
667
665
|
intro: joinLines(intro),
|
|
668
666
|
features: joinLines(features),
|
|
669
667
|
note: joinLines(note),
|
|
@@ -770,17 +768,8 @@ ${getInjectedContent(ctx, "redirect", "body")}
|
|
|
770
768
|
);
|
|
771
769
|
return;
|
|
772
770
|
}
|
|
773
|
-
let {
|
|
774
|
-
|
|
775
|
-
descriptionNote,
|
|
776
|
-
intro,
|
|
777
|
-
features,
|
|
778
|
-
note,
|
|
779
|
-
installation,
|
|
780
|
-
sections,
|
|
781
|
-
nav
|
|
782
|
-
} = await getParsedContent(ctx);
|
|
783
|
-
let descriptionContent = tweakTypography(description) || (escapedPackageDescription ? `<p><em>${tweakTypography(escapedPackageDescription)}</em><p>` : "");
|
|
771
|
+
let { description, intro, features, note, installation, sections, nav } = await getParsedContent(ctx);
|
|
772
|
+
let descriptionContent = tweakTypography(description) || (escapedPackageDescription ? `<p>${tweakTypography(escapedPackageDescription)}<p>` : "");
|
|
784
773
|
let navContent = await getNav(ctx, nav);
|
|
785
774
|
let dirs = [contentDir];
|
|
786
775
|
await Promise.all(
|
|
@@ -871,7 +860,6 @@ ${getInjectedContent(ctx, "section", "body")}
|
|
|
871
860
|
<h1>${getTitle(ctx, { cover: true })}</h1>
|
|
872
861
|
<div class="description">
|
|
873
862
|
${descriptionContent}
|
|
874
|
-
${descriptionNote}
|
|
875
863
|
</div>
|
|
876
864
|
<p class="actions">
|
|
877
865
|
<a href="${root}start" class="primary">Docs</a>
|
package/dist/css/base.css
CHANGED
|
@@ -36,6 +36,9 @@
|
|
|
36
36
|
--overlay-border-color: hsl(from var(--b1) h s 60% / 0.7);
|
|
37
37
|
|
|
38
38
|
font: normal 100% / 1.45 sans-serif;
|
|
39
|
+
font-family:
|
|
40
|
+
-apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu",
|
|
41
|
+
"Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
|
|
39
42
|
}
|
|
40
43
|
html {
|
|
41
44
|
color: var(--c0);
|
package/dist/css/index.css
CHANGED
|
@@ -64,7 +64,6 @@ header {
|
|
|
64
64
|
padding: 0 var(--content-padding-x);
|
|
65
65
|
}
|
|
66
66
|
.description {
|
|
67
|
-
font-size: 1.15em;
|
|
68
67
|
margin: 0;
|
|
69
68
|
}
|
|
70
69
|
.description p {
|
|
@@ -73,6 +72,9 @@ header {
|
|
|
73
72
|
.description p + p {
|
|
74
73
|
margin-top: 0.75em;
|
|
75
74
|
}
|
|
75
|
+
.description em {
|
|
76
|
+
font-style: normal;
|
|
77
|
+
}
|
|
76
78
|
.actions {
|
|
77
79
|
--r: 1em;
|
|
78
80
|
|
package/package.json
CHANGED
|
@@ -27,7 +27,6 @@ export async function getParsedContent(ctx: Context) {
|
|
|
27
27
|
let badges = "";
|
|
28
28
|
let title = "";
|
|
29
29
|
let description: string[] = [];
|
|
30
|
-
let descriptionNote: string[] = [];
|
|
31
30
|
let intro: string[] = [];
|
|
32
31
|
let features: string[] = [];
|
|
33
32
|
let note: string[] = [];
|
|
@@ -132,7 +131,6 @@ export async function getParsedContent(ctx: Context) {
|
|
|
132
131
|
badges, // postprocessBadges(joinLines(badges)),
|
|
133
132
|
title,
|
|
134
133
|
description: joinLines(description),
|
|
135
|
-
descriptionNote: joinLines(descriptionNote),
|
|
136
134
|
intro: joinLines(intro),
|
|
137
135
|
features: joinLines(features),
|
|
138
136
|
note: joinLines(note),
|
package/src/bin/setContent.ts
CHANGED
|
@@ -125,21 +125,13 @@ ${getInjectedContent(ctx, "redirect", "body")}
|
|
|
125
125
|
return;
|
|
126
126
|
}
|
|
127
127
|
|
|
128
|
-
let {
|
|
129
|
-
|
|
130
|
-
descriptionNote,
|
|
131
|
-
intro,
|
|
132
|
-
features,
|
|
133
|
-
note,
|
|
134
|
-
installation,
|
|
135
|
-
sections,
|
|
136
|
-
nav,
|
|
137
|
-
} = await getParsedContent(ctx);
|
|
128
|
+
let { description, intro, features, note, installation, sections, nav } =
|
|
129
|
+
await getParsedContent(ctx);
|
|
138
130
|
|
|
139
131
|
let descriptionContent =
|
|
140
132
|
tweakTypography(description) ||
|
|
141
133
|
(escapedPackageDescription
|
|
142
|
-
? `<p
|
|
134
|
+
? `<p>${tweakTypography(escapedPackageDescription)}<p>`
|
|
143
135
|
: "");
|
|
144
136
|
|
|
145
137
|
let navContent = await getNav(ctx, nav);
|
|
@@ -240,7 +232,6 @@ ${getInjectedContent(ctx, "section", "body")}
|
|
|
240
232
|
<h1>${getTitle(ctx, { cover: true })}</h1>
|
|
241
233
|
<div class="description">
|
|
242
234
|
${descriptionContent}
|
|
243
|
-
${descriptionNote}
|
|
244
235
|
</div>
|
|
245
236
|
<p class="actions">
|
|
246
237
|
<a href="${root}start" class="primary">Docs</a>
|
package/src/css/base.css
CHANGED
|
@@ -36,6 +36,9 @@
|
|
|
36
36
|
--overlay-border-color: hsl(from var(--b1) h s 60% / 0.7);
|
|
37
37
|
|
|
38
38
|
font: normal 100% / 1.45 sans-serif;
|
|
39
|
+
font-family:
|
|
40
|
+
-apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu",
|
|
41
|
+
"Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
|
|
39
42
|
}
|
|
40
43
|
html {
|
|
41
44
|
color: var(--c0);
|
package/src/css/index.css
CHANGED
|
@@ -64,7 +64,6 @@ header {
|
|
|
64
64
|
padding: 0 var(--content-padding-x);
|
|
65
65
|
}
|
|
66
66
|
.description {
|
|
67
|
-
font-size: 1.15em;
|
|
68
67
|
margin: 0;
|
|
69
68
|
}
|
|
70
69
|
.description p {
|
|
@@ -73,6 +72,9 @@ header {
|
|
|
73
72
|
.description p + p {
|
|
74
73
|
margin-top: 0.75em;
|
|
75
74
|
}
|
|
75
|
+
.description em {
|
|
76
|
+
font-style: normal;
|
|
77
|
+
}
|
|
76
78
|
.actions {
|
|
77
79
|
--r: 1em;
|
|
78
80
|
|