@t8/docsgen 0.2.31 → 0.2.33

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 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
- description,
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);
@@ -40,7 +40,6 @@ main {
40
40
  h1 {
41
41
  max-width: 16rem;
42
42
  font-size: 2.5em;
43
- font-family: "Helvetica Neue", Arial, sans-serif;
44
43
  font-weight: 900;
45
44
  color: color(from var(--c1) srgb r g b / 0.75);
46
45
  margin: 1rem 0;
@@ -64,7 +63,6 @@ header {
64
63
  padding: 0 var(--content-padding-x);
65
64
  }
66
65
  .description {
67
- font-size: 1.15em;
68
66
  margin: 0;
69
67
  }
70
68
  .description p {
@@ -73,6 +71,9 @@ header {
73
71
  .description p + p {
74
72
  margin-top: 0.75em;
75
73
  }
74
+ .description em {
75
+ font-style: normal;
76
+ }
76
77
  .actions {
77
78
  --r: 1em;
78
79
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@t8/docsgen",
3
- "version": "0.2.31",
3
+ "version": "0.2.33",
4
4
  "description": "",
5
5
  "main": "dist/bin.js",
6
6
  "bin": {
@@ -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),
@@ -125,21 +125,13 @@ ${getInjectedContent(ctx, "redirect", "body")}
125
125
  return;
126
126
  }
127
127
 
128
- let {
129
- description,
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><em>${tweakTypography(escapedPackageDescription)}</em><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
@@ -40,7 +40,6 @@ main {
40
40
  h1 {
41
41
  max-width: 16rem;
42
42
  font-size: 2.5em;
43
- font-family: "Helvetica Neue", Arial, sans-serif;
44
43
  font-weight: 900;
45
44
  color: color(from var(--c1) srgb r g b / 0.75);
46
45
  margin: 1rem 0;
@@ -64,7 +63,6 @@ header {
64
63
  padding: 0 var(--content-padding-x);
65
64
  }
66
65
  .description {
67
- font-size: 1.15em;
68
66
  margin: 0;
69
67
  }
70
68
  .description p {
@@ -73,6 +71,9 @@ header {
73
71
  .description p + p {
74
72
  margin-top: 0.75em;
75
73
  }
74
+ .description em {
75
+ font-style: normal;
76
+ }
76
77
  .actions {
77
78
  --r: 1em;
78
79