Skip to content

Commit 9f48e78

Browse files
committed
fix: Giscus light/dark theme yaml example incorrect
Fixes #10003
1 parent 9b77dca commit 9f48e78

File tree

5 files changed

+27
-25
lines changed

5 files changed

+27
-25
lines changed

src/resources/editor/tools/vs-code.mjs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8751,7 +8751,7 @@ var require_yaml_intelligence_resources = __commonJS({
87518751
],
87528752
description: {
87538753
short: "The giscus theme to use when displaying comments.",
8754-
long: "The giscus theme to use when displaying comments. Light and dark themes are supported. If a single theme is provided by name, it will be used as light and dark theme. To use different themes, use `light` and `dark` key: \n\n```yaml\nwebsite:\n comments:\n giscus:\n light: light # giscus theme used for light website theme\n dark: dark_dimmed # giscus theme used for dark website theme\n```\n"
8754+
long: "The giscus theme to use when displaying comments. Light and dark themes are supported. If a single theme is provided by name, it will be used as light and dark theme. To use different themes, use `light` and `dark` key: \n\n```yaml\nwebsite:\n comments:\n giscus:\n theme:\n light: light # giscus theme used for light website theme\n dark: dark_dimmed # giscus theme used for dark website theme\n```\n"
87558755
}
87568756
},
87578757
language: {
@@ -21755,6 +21755,7 @@ var require_yaml_intelligence_resources = __commonJS({
2175521755
"Enables inclusion of Pandoc default CSS for this document.",
2175621756
"One or more CSS style sheets.",
2175721757
"Enables hover over a section title to see an anchor link.",
21758+
"Enables tabsets to present content.",
2175821759
"Enables smooth scrolling within the page.",
2175921760
{
2176021761
short: "Method use to render math in HTML output",
@@ -22826,8 +22827,7 @@ var require_yaml_intelligence_resources = __commonJS({
2282622827
},
2282722828
"Disambiguating year suffix in author-date styles (e.g. \u201Ca\u201D in \u201CDoe,\n1999a\u201D).",
2282822829
"Manuscript configuration",
22829-
"internal-schema-hack",
22830-
"Enables tabsets to present content."
22830+
"internal-schema-hack"
2283122831
],
2283222832
"schema/external-schemas.yml": [
2283322833
{
@@ -23056,12 +23056,12 @@ var require_yaml_intelligence_resources = __commonJS({
2305623056
mermaid: "%%"
2305723057
},
2305823058
"handlers/mermaid/schema.yml": {
23059-
_internalId: 186347,
23059+
_internalId: 186493,
2306023060
type: "object",
2306123061
description: "be an object",
2306223062
properties: {
2306323063
"mermaid-format": {
23064-
_internalId: 186339,
23064+
_internalId: 186485,
2306523065
type: "enum",
2306623066
enum: [
2306723067
"png",
@@ -23077,7 +23077,7 @@ var require_yaml_intelligence_resources = __commonJS({
2307723077
exhaustiveCompletions: true
2307823078
},
2307923079
theme: {
23080-
_internalId: 186346,
23080+
_internalId: 186492,
2308123081
type: "anyOf",
2308223082
anyOf: [
2308323083
{

src/resources/editor/tools/yaml/web-worker.js

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/resources/editor/tools/yaml/yaml-intelligence-resources.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1723,7 +1723,7 @@
17231723
],
17241724
"description": {
17251725
"short": "The giscus theme to use when displaying comments.",
1726-
"long": "The giscus theme to use when displaying comments. Light and dark themes are supported. If a single theme is provided by name, it will be used as light and dark theme. To use different themes, use `light` and `dark` key: \n\n```yaml\nwebsite:\n comments:\n giscus:\n light: light # giscus theme used for light website theme\n dark: dark_dimmed # giscus theme used for dark website theme\n```\n"
1726+
"long": "The giscus theme to use when displaying comments. Light and dark themes are supported. If a single theme is provided by name, it will be used as light and dark theme. To use different themes, use `light` and `dark` key: \n\n```yaml\nwebsite:\n comments:\n giscus:\n theme:\n light: light # giscus theme used for light website theme\n dark: dark_dimmed # giscus theme used for dark website theme\n```\n"
17271727
}
17281728
},
17291729
"language": {
@@ -14727,6 +14727,7 @@
1472714727
"Enables inclusion of Pandoc default CSS for this document.",
1472814728
"One or more CSS style sheets.",
1472914729
"Enables hover over a section title to see an anchor link.",
14730+
"Enables tabsets to present content.",
1473014731
"Enables smooth scrolling within the page.",
1473114732
{
1473214733
"short": "Method use to render math in HTML output",
@@ -15798,8 +15799,7 @@
1579815799
},
1579915800
"Disambiguating year suffix in author-date styles (e.g. “a” in “Doe,\n1999a”).",
1580015801
"Manuscript configuration",
15801-
"internal-schema-hack",
15802-
"Enables tabsets to present content."
15802+
"internal-schema-hack"
1580315803
],
1580415804
"schema/external-schemas.yml": [
1580515805
{
@@ -16028,12 +16028,12 @@
1602816028
"mermaid": "%%"
1602916029
},
1603016030
"handlers/mermaid/schema.yml": {
16031-
"_internalId": 186347,
16031+
"_internalId": 186493,
1603216032
"type": "object",
1603316033
"description": "be an object",
1603416034
"properties": {
1603516035
"mermaid-format": {
16036-
"_internalId": 186339,
16036+
"_internalId": 186485,
1603716037
"type": "enum",
1603816038
"enum": [
1603916039
"png",
@@ -16049,7 +16049,7 @@
1604916049
"exhaustiveCompletions": true
1605016050
},
1605116051
"theme": {
16052-
"_internalId": 186346,
16052+
"_internalId": 186492,
1605316053
"type": "anyOf",
1605416054
"anyOf": [
1605516055
{

src/resources/schema/definitions.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -315,8 +315,9 @@
315315
website:
316316
comments:
317317
giscus:
318-
light: light # giscus theme used for light website theme
319-
dark: dark_dimmed # giscus theme used for dark website theme
318+
theme:
319+
light: light # giscus theme used for light website theme
320+
dark: dark_dimmed # giscus theme used for dark website theme
320321
```
321322
language:
322323
string:
@@ -750,15 +751,15 @@
750751
description: "Whether this announcement may be dismissed by the user."
751752
icon:
752753
schema: string
753-
description:
754+
description:
754755
short: "The icon to display in the announcement"
755756
long: |
756757
Name of bootstrap icon (e.g. `github`, `twitter`, `share`) for the announcement.
757758
See <https://icons.getbootstrap.com/> for a list of available icons
758759
position:
759760
schema:
760761
enum: ["above-navbar", "below-navbar"]
761-
description:
762+
description:
762763
short: "The position of the announcement."
763764
long: |
764765
The position of the announcement. One of `above-navbar` (default) or `below-navbar`.
@@ -775,7 +776,7 @@
775776
light,
776777
dark,
777778
]
778-
description:
779+
description:
779780
short: "The type of announcement. Affects the appearance of the announcement."
780781
long: |
781782
The type of announcement. One of `primary`, `secondary`, `success`, `danger`, `warning`,

src/resources/types/schema-types.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,9 @@ the discussions feature must be enabled. */;
155155
website:
156156
comments:
157157
giscus:
158-
light: light # giscus theme used for light website theme
159-
dark: dark_dimmed # giscus theme used for dark website theme
158+
theme:
159+
light: light # giscus theme used for light website theme
160+
dark: dark_dimmed # giscus theme used for dark website theme
160161
``` */
161162
};
162163
hypothesis?: boolean | {

0 commit comments

Comments
 (0)