@t8/docsgen 0.2.10 → 0.2.12

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
@@ -689,7 +689,7 @@ function getDefaultCodeStyleContent(cssRoot) {
689
689
  `.trim();
690
690
  }
691
691
  function tweakTypography(s = "") {
692
- return s.replace(/\b(for|in|on|at|with|a|an|the)\s+/gi, "$1\xA0");
692
+ return s.replace(/\b(for|in|on|at|with|a|an|the)\s+/gi, "$1\xA0").replace(/\b(React)\s+(apps?)\b/gi, "$1\xA0$2");
693
693
  }
694
694
  async function setContent(ctx) {
695
695
  let {
@@ -45,10 +45,10 @@ footer {
45
45
  box-sizing: border-box;
46
46
  }
47
47
  .body > nav section + section {
48
- border-top: 0.05rem solid var(--overlay-border-color);
48
+ border-top: 0.05rem solid;
49
49
  }
50
50
  .body > nav section.related {
51
- border-top: 0.15rem double var(--overlay-border-color);
51
+ border-top: 0.15rem double;
52
52
  }
53
53
  .body > nav h2,
54
54
  .body > nav p.title {
@@ -70,7 +70,7 @@ footer {
70
70
  box-sizing: border-box;
71
71
  }
72
72
  .body > nav > ul + ul {
73
- border-top: 0.05rem solid var(--overlay-border-color);
73
+ border-top: 0.05rem solid;
74
74
  padding-top: 1.2em;
75
75
  margin-top: 1.5em;
76
76
  }
@@ -203,7 +203,7 @@ main h2:first-child {
203
203
  display: flex;
204
204
  justify-content: space-between;
205
205
  gap: 1em;
206
- border-top: 0.15rem solid var(--overlay-border-color);
206
+ border-top: 0.15rem solid;
207
207
  padding: 0.6em 0.75em 0.75em;
208
208
  margin: 1.5em 0 0;
209
209
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@t8/docsgen",
3
- "version": "0.2.10",
3
+ "version": "0.2.12",
4
4
  "description": "",
5
5
  "main": "dist/bin.js",
6
6
  "bin": {
@@ -28,7 +28,9 @@ function getDefaultCodeStyleContent(cssRoot: string) {
28
28
  }
29
29
 
30
30
  function tweakTypography(s = "") {
31
- return s.replace(/\b(for|in|on|at|with|a|an|the)\s+/gi, "$1\xa0");
31
+ return s
32
+ .replace(/\b(for|in|on|at|with|a|an|the)\s+/gi, "$1\xa0")
33
+ .replace(/\b(React)\s+(apps?)\b/gi, "$1\xa0$2");
32
34
  }
33
35
 
34
36
  export async function setContent(ctx: Context) {
@@ -45,10 +45,10 @@ footer {
45
45
  box-sizing: border-box;
46
46
  }
47
47
  .body > nav section + section {
48
- border-top: 0.05rem solid var(--overlay-border-color);
48
+ border-top: 0.05rem solid;
49
49
  }
50
50
  .body > nav section.related {
51
- border-top: 0.15rem double var(--overlay-border-color);
51
+ border-top: 0.15rem double;
52
52
  }
53
53
  .body > nav h2,
54
54
  .body > nav p.title {
@@ -70,7 +70,7 @@ footer {
70
70
  box-sizing: border-box;
71
71
  }
72
72
  .body > nav > ul + ul {
73
- border-top: 0.05rem solid var(--overlay-border-color);
73
+ border-top: 0.05rem solid;
74
74
  padding-top: 1.2em;
75
75
  margin-top: 1.5em;
76
76
  }
@@ -203,7 +203,7 @@ main h2:first-child {
203
203
  display: flex;
204
204
  justify-content: space-between;
205
205
  gap: 1em;
206
- border-top: 0.15rem solid var(--overlay-border-color);
206
+ border-top: 0.15rem solid;
207
207
  padding: 0.6em 0.75em 0.75em;
208
208
  margin: 1.5em 0 0;
209
209
  }