@t8/docsgen 0.3.16 → 0.3.18

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
@@ -675,7 +675,7 @@ var __filename = fileURLToPath(import.meta.url);
675
675
  var __dirname = dirname(__filename);
676
676
  function getDefaultCodeStyleContent(cssRoot) {
677
677
  return `
678
- <link rel="stylesheet" href="https://unpkg.com/@highlightjs/cdn-assets@11.11.1/styles/stackoverflow-light.min.css" media="(prefers-color-scheme: light)">
678
+ <link rel="stylesheet" href="https://unpkg.com/@highlightjs/cdn-assets@11.11.1/styles/dark.min.css" media="(prefers-color-scheme: light)">
679
679
  <link rel="stylesheet" href="https://unpkg.com/@highlightjs/cdn-assets@11.11.1/styles/base16/material.min.css" media="(prefers-color-scheme: dark)">
680
680
  <link rel="stylesheet" href="${cssRoot}/code.css">
681
681
  <script src="https://unpkg.com/@highlightjs/cdn-assets@11.11.1/highlight.min.js"></script>
package/dist/css/code.css CHANGED
@@ -13,6 +13,21 @@
13
13
  }
14
14
  .hljs-comment {
15
15
  color: #898e93;
16
+ font-style: italic;
17
+ }
18
+ .hljs-name,
19
+ .hljs-quote,
20
+ .hljs-selector-id,
21
+ .hljs-template-tag,
22
+ .hljs-type {
23
+ color: #86329d;
24
+ font-weight: bold;
25
+ }
26
+ .hljs-built_in,
27
+ .hljs-literal,
28
+ .hljs-title {
29
+ color: #7460ac;
30
+ font-weight: bold;
16
31
  }
17
32
  }
18
33
  @media (prefers-color-scheme: dark) {
@@ -4,7 +4,6 @@
4
4
  body {
5
5
  min-height: 100vh;
6
6
  }
7
-
8
7
  .layout {
9
8
  display: flex;
10
9
  flex-direction: column;
@@ -13,6 +12,9 @@ body {
13
12
  justify-content: center;
14
13
  }
15
14
  @media (max-width: 840px) {
15
+ :root {
16
+ --content-padding-x: 1.75rem;
17
+ }
16
18
  .layout {
17
19
  min-height: 100vh;
18
20
  }
@@ -183,7 +185,10 @@ section.intro .section-content {
183
185
  align-items: center;
184
186
  }
185
187
  section.intro .section-content {
186
- padding-top: 0.5rem;
188
+ padding-top: 0.75rem;
189
+ }
190
+ section.intro pre {
191
+ margin: 1.75em 0;
187
192
  }
188
193
  }
189
194
  .features {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@t8/docsgen",
3
- "version": "0.3.16",
3
+ "version": "0.3.18",
4
4
  "description": "",
5
5
  "main": "dist/bin.js",
6
6
  "type": "module",
@@ -23,7 +23,7 @@ const __dirname = dirname(__filename);
23
23
 
24
24
  function getDefaultCodeStyleContent(cssRoot: string) {
25
25
  return `
26
- <link rel="stylesheet" href="https://unpkg.com/@highlightjs/cdn-assets@11.11.1/styles/stackoverflow-light.min.css" media="(prefers-color-scheme: light)">
26
+ <link rel="stylesheet" href="https://unpkg.com/@highlightjs/cdn-assets@11.11.1/styles/dark.min.css" media="(prefers-color-scheme: light)">
27
27
  <link rel="stylesheet" href="https://unpkg.com/@highlightjs/cdn-assets@11.11.1/styles/base16/material.min.css" media="(prefers-color-scheme: dark)">
28
28
  <link rel="stylesheet" href="${cssRoot}/code.css">
29
29
  <script src="https://unpkg.com/@highlightjs/cdn-assets@11.11.1/highlight.min.js"></script>
package/src/css/code.css CHANGED
@@ -13,6 +13,21 @@
13
13
  }
14
14
  .hljs-comment {
15
15
  color: #898e93;
16
+ font-style: italic;
17
+ }
18
+ .hljs-name,
19
+ .hljs-quote,
20
+ .hljs-selector-id,
21
+ .hljs-template-tag,
22
+ .hljs-type {
23
+ color: #86329d;
24
+ font-weight: bold;
25
+ }
26
+ .hljs-built_in,
27
+ .hljs-literal,
28
+ .hljs-title {
29
+ color: #7460ac;
30
+ font-weight: bold;
16
31
  }
17
32
  }
18
33
  @media (prefers-color-scheme: dark) {
package/src/css/index.css CHANGED
@@ -4,7 +4,6 @@
4
4
  body {
5
5
  min-height: 100vh;
6
6
  }
7
-
8
7
  .layout {
9
8
  display: flex;
10
9
  flex-direction: column;
@@ -13,6 +12,9 @@ body {
13
12
  justify-content: center;
14
13
  }
15
14
  @media (max-width: 840px) {
15
+ :root {
16
+ --content-padding-x: 1.75rem;
17
+ }
16
18
  .layout {
17
19
  min-height: 100vh;
18
20
  }
@@ -183,7 +185,10 @@ section.intro .section-content {
183
185
  align-items: center;
184
186
  }
185
187
  section.intro .section-content {
186
- padding-top: 0.5rem;
188
+ padding-top: 0.75rem;
189
+ }
190
+ section.intro pre {
191
+ margin: 1.75em 0;
187
192
  }
188
193
  }
189
194
  .features {