@t8/docsgen 0.2.19 → 0.2.21

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
@@ -688,7 +688,8 @@ function toFileContent(x) {
688
688
  var exec = (0, import_node_util.promisify)(import_node_child_process.exec);
689
689
  function getDefaultCodeStyleContent(cssRoot) {
690
690
  return `
691
- <link rel="stylesheet" href="https://unpkg.com/@highlightjs/cdn-assets@11.11.1/styles/base16/material.min.css">
691
+ <link rel="stylesheet" href="https://unpkg.com/@highlightjs/cdn-assets@11.11.1/styles/stackoverflow-light.min.css" media="(prefers-color-scheme: light)">
692
+ <link rel="stylesheet" href="https://unpkg.com/@highlightjs/cdn-assets@11.11.1/styles/base16/material.min.css" media="(prefers-color-scheme: dark)">
692
693
  <link rel="stylesheet" href="${cssRoot}/code.css">
693
694
  <script src="https://unpkg.com/@highlightjs/cdn-assets@11.11.1/highlight.min.js"></script>
694
695
  <script>hljs.highlightAll()</script>
package/dist/css/code.css CHANGED
@@ -1,30 +1,37 @@
1
- .hljs {
2
- color: #dbdad6;
3
- background: #1d2331;
1
+ @media (prefers-color-scheme: light) {
2
+ .hljs {
3
+ background: #f2f2f2;
4
+ }
4
5
  }
5
- .hljs-bullet,
6
- .hljs-name,
7
- .hljs-selector-tag,
8
- .hljs-template-variable,
9
- .hljs-variable {
10
- color: #f49466;
11
- }
12
- .hljs-attr,
13
- .hljs-link,
14
- .hljs-literal,
15
- .hljs-number,
16
- .hljs-symbol,
17
- .hljs-variable.constant_ {
18
- color: #f2af7d;
19
- }
20
- .hljs-deletion {
21
- color: #f88f7f;
22
- background: #3d1e20;
23
- }
24
- .hljs-addition {
25
- color: #6ad4af;
26
- background: #19362c;
27
- }
28
- .hljs-comment {
29
- color: #7a8599;
6
+ @media (prefers-color-scheme: dark) {
7
+ .hljs {
8
+ color: #dbdad6;
9
+ background: #1d2331;
10
+ }
11
+ .hljs-bullet,
12
+ .hljs-name,
13
+ .hljs-selector-tag,
14
+ .hljs-template-variable,
15
+ .hljs-variable {
16
+ color: #f49466;
17
+ }
18
+ .hljs-attr,
19
+ .hljs-link,
20
+ .hljs-literal,
21
+ .hljs-number,
22
+ .hljs-symbol,
23
+ .hljs-variable.constant_ {
24
+ color: #f2af7d;
25
+ }
26
+ .hljs-deletion {
27
+ color: #f88f7f;
28
+ background: #3d1e20;
29
+ }
30
+ .hljs-addition {
31
+ color: #6ad4af;
32
+ background: #19362c;
33
+ }
34
+ .hljs-comment {
35
+ color: #7a8599;
36
+ }
30
37
  }
@@ -139,6 +139,7 @@ section.intro-title:last-of-type {
139
139
  }
140
140
  section.intro-title:last-of-type .section-content {
141
141
  max-width: 36em;
142
+ align-items: center;
142
143
  }
143
144
  section.intro {
144
145
  display: flex;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@t8/docsgen",
3
- "version": "0.2.19",
3
+ "version": "0.2.21",
4
4
  "description": "",
5
5
  "main": "dist/bin.js",
6
6
  "bin": {
@@ -20,7 +20,8 @@ const exec = promisify(defaultExec);
20
20
 
21
21
  function getDefaultCodeStyleContent(cssRoot: string) {
22
22
  return `
23
- <link rel="stylesheet" href="https://unpkg.com/@highlightjs/cdn-assets@11.11.1/styles/base16/material.min.css">
23
+ <link rel="stylesheet" href="https://unpkg.com/@highlightjs/cdn-assets@11.11.1/styles/stackoverflow-light.min.css" media="(prefers-color-scheme: light)">
24
+ <link rel="stylesheet" href="https://unpkg.com/@highlightjs/cdn-assets@11.11.1/styles/base16/material.min.css" media="(prefers-color-scheme: dark)">
24
25
  <link rel="stylesheet" href="${cssRoot}/code.css">
25
26
  <script src="https://unpkg.com/@highlightjs/cdn-assets@11.11.1/highlight.min.js"></script>
26
27
  <script>hljs.highlightAll()</script>
package/src/css/code.css CHANGED
@@ -1,30 +1,37 @@
1
- .hljs {
2
- color: #dbdad6;
3
- background: #1d2331;
1
+ @media (prefers-color-scheme: light) {
2
+ .hljs {
3
+ background: #f2f2f2;
4
+ }
4
5
  }
5
- .hljs-bullet,
6
- .hljs-name,
7
- .hljs-selector-tag,
8
- .hljs-template-variable,
9
- .hljs-variable {
10
- color: #f49466;
11
- }
12
- .hljs-attr,
13
- .hljs-link,
14
- .hljs-literal,
15
- .hljs-number,
16
- .hljs-symbol,
17
- .hljs-variable.constant_ {
18
- color: #f2af7d;
19
- }
20
- .hljs-deletion {
21
- color: #f88f7f;
22
- background: #3d1e20;
23
- }
24
- .hljs-addition {
25
- color: #6ad4af;
26
- background: #19362c;
27
- }
28
- .hljs-comment {
29
- color: #7a8599;
6
+ @media (prefers-color-scheme: dark) {
7
+ .hljs {
8
+ color: #dbdad6;
9
+ background: #1d2331;
10
+ }
11
+ .hljs-bullet,
12
+ .hljs-name,
13
+ .hljs-selector-tag,
14
+ .hljs-template-variable,
15
+ .hljs-variable {
16
+ color: #f49466;
17
+ }
18
+ .hljs-attr,
19
+ .hljs-link,
20
+ .hljs-literal,
21
+ .hljs-number,
22
+ .hljs-symbol,
23
+ .hljs-variable.constant_ {
24
+ color: #f2af7d;
25
+ }
26
+ .hljs-deletion {
27
+ color: #f88f7f;
28
+ background: #3d1e20;
29
+ }
30
+ .hljs-addition {
31
+ color: #6ad4af;
32
+ background: #19362c;
33
+ }
34
+ .hljs-comment {
35
+ color: #7a8599;
36
+ }
30
37
  }
package/src/css/index.css CHANGED
@@ -139,6 +139,7 @@ section.intro-title:last-of-type {
139
139
  }
140
140
  section.intro-title:last-of-type .section-content {
141
141
  max-width: 36em;
142
+ align-items: center;
142
143
  }
143
144
  section.intro {
144
145
  display: flex;