Skip to content

Commit

Permalink
Merge pull request #8344 from quarto-dev/giscus/night-theme-description
Browse files Browse the repository at this point in the history
Add auto completion for giscus themes on each ligth / dark configuration
  • Loading branch information
dragonstyle authored Jan 19, 2024
2 parents 0730d41 + 001b400 commit f571754
Show file tree
Hide file tree
Showing 5 changed files with 188 additions and 131 deletions.
73 changes: 45 additions & 28 deletions src/resources/editor/tools/vs-code.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8511,6 +8511,29 @@ var require_yaml_intelligence_resources = __commonJS({
}
}
},
{
id: "giscus-themes",
enum: {
values: [
"light",
"light_high_contrast",
"light_protanopia",
"light_tritanopia",
"dark",
"dark_high_contrast",
"dark_protanopia",
"dark_tritanopia",
"dark_dimmed",
"transparent_dark",
"cobalt",
"purple_dark",
"noborder_light",
"noborder_dark",
"noborder_gray",
"preferred_color_scheme"
]
}
},
{
id: "comments",
anyOf: [
Expand Down Expand Up @@ -8650,38 +8673,29 @@ var require_yaml_intelligence_resources = __commonJS({
anyOf: [
"string",
{
enum: [
"light",
"light_high_contrast",
"light_protanopia",
"light_tritanopia",
"dark",
"dark_high_contrast",
"dark_protanopia",
"dark_tritanopia",
"dark_dimmed",
"transparent_dark",
"cobalt",
"purple_dark",
"noborder_light",
"noborder_dark",
"noborder_gray",
"preferred_color_scheme"
]
ref: "giscus-themes"
},
{
object: {
closed: true,
properties: {
light: {
string: {
description: "The light theme name."
}
anyOf: [
"string",
{
ref: "giscus-themes"
}
],
description: "The light theme name."
},
dark: {
string: {
description: "The dark theme name."
}
anyOf: [
"string",
{
ref: "giscus-themes"
}
],
description: "The dark theme name."
}
}
}
Expand Down Expand Up @@ -19394,7 +19408,10 @@ var require_yaml_intelligence_resources = __commonJS({
"Display reactions for the discussion\u2019s main post before the\ncomments.",
"Specify <code>loading: lazy</code> to defer loading comments until\nthe user scrolls near the comments container.",
"Place the comment input box above or below the comments.",
"The giscus theme to use when displaying comments.",
{
short: "The giscus theme to use when displaying comments.",
long: "The giscus theme to use when displaying comments. Light and dark\nthemes are supported. If a single theme is provided by name, it will be\nused as light and dark theme. To use different themes, use\n<code>light</code> and <code>dark</code> key:"
},
"The light theme name.",
"The dark theme name.",
"The language that should be used when displaying the commenting\ninterface.",
Expand Down Expand Up @@ -22670,12 +22687,12 @@ var require_yaml_intelligence_resources = __commonJS({
mermaid: "%%"
},
"handlers/mermaid/schema.yml": {
_internalId: 180831,
_internalId: 180846,
type: "object",
description: "be an object",
properties: {
"mermaid-format": {
_internalId: 180823,
_internalId: 180838,
type: "enum",
enum: [
"png",
Expand All @@ -22691,7 +22708,7 @@ var require_yaml_intelligence_resources = __commonJS({
exhaustiveCompletions: true
},
theme: {
_internalId: 180830,
_internalId: 180845,
type: "anyOf",
anyOf: [
{
Expand Down
73 changes: 45 additions & 28 deletions src/resources/editor/tools/yaml/web-worker.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

73 changes: 45 additions & 28 deletions src/resources/editor/tools/yaml/yaml-intelligence-resources.json
Original file line number Diff line number Diff line change
Expand Up @@ -1483,6 +1483,29 @@
}
}
},
{
"id": "giscus-themes",
"enum": {
"values": [
"light",
"light_high_contrast",
"light_protanopia",
"light_tritanopia",
"dark",
"dark_high_contrast",
"dark_protanopia",
"dark_tritanopia",
"dark_dimmed",
"transparent_dark",
"cobalt",
"purple_dark",
"noborder_light",
"noborder_dark",
"noborder_gray",
"preferred_color_scheme"
]
}
},
{
"id": "comments",
"anyOf": [
Expand Down Expand Up @@ -1622,38 +1645,29 @@
"anyOf": [
"string",
{
"enum": [
"light",
"light_high_contrast",
"light_protanopia",
"light_tritanopia",
"dark",
"dark_high_contrast",
"dark_protanopia",
"dark_tritanopia",
"dark_dimmed",
"transparent_dark",
"cobalt",
"purple_dark",
"noborder_light",
"noborder_dark",
"noborder_gray",
"preferred_color_scheme"
]
"ref": "giscus-themes"
},
{
"object": {
"closed": true,
"properties": {
"light": {
"string": {
"description": "The light theme name."
}
"anyOf": [
"string",
{
"ref": "giscus-themes"
}
],
"description": "The light theme name."
},
"dark": {
"string": {
"description": "The dark theme name."
}
"anyOf": [
"string",
{
"ref": "giscus-themes"
}
],
"description": "The dark theme name."
}
}
}
Expand Down Expand Up @@ -12366,7 +12380,10 @@
"Display reactions for the discussion’s main post before the\ncomments.",
"Specify <code>loading: lazy</code> to defer loading comments until\nthe user scrolls near the comments container.",
"Place the comment input box above or below the comments.",
"The giscus theme to use when displaying comments.",
{
"short": "The giscus theme to use when displaying comments.",
"long": "The giscus theme to use when displaying comments. Light and dark\nthemes are supported. If a single theme is provided by name, it will be\nused as light and dark theme. To use different themes, use\n<code>light</code> and <code>dark</code> key:"
},
"The light theme name.",
"The dark theme name.",
"The language that should be used when displaying the commenting\ninterface.",
Expand Down Expand Up @@ -15642,12 +15659,12 @@
"mermaid": "%%"
},
"handlers/mermaid/schema.yml": {
"_internalId": 180831,
"_internalId": 180846,
"type": "object",
"description": "be an object",
"properties": {
"mermaid-format": {
"_internalId": 180823,
"_internalId": 180838,
"type": "enum",
"enum": [
"png",
Expand All @@ -15663,7 +15680,7 @@
"exhaustiveCompletions": true
},
"theme": {
"_internalId": 180830,
"_internalId": 180845,
"type": "anyOf",
"anyOf": [
{
Expand Down
Loading

0 comments on commit f571754

Please sign in to comment.