Skip to content

Commit c4dd31f

Browse files
committed
Schema - dashboard improvements
Fixes #8422
1 parent 1263080 commit c4dd31f

File tree

5 files changed

+274
-24
lines changed

5 files changed

+274
-24
lines changed

news/changelog-1.5.md

+1
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ All changes included in 1.5:
5252
- ([#8177](https://github.com/quarto-dev/quarto-cli/issues/8177)): Use an explicit path to `sysctl` when detecting MacOS architecture. (author: @kevinushey)
5353
- ([#8274](https://github.com/quarto-dev/quarto-cli/issues/8274)): set `LUA_CPATH` to '' if unset, avoiding accidentally loading incompatible system-wide libraries.
5454
- ([#8438](https://github.com/quarto-dev/quarto-cli/issues/8438)): Ensure that sub commands properly support logging control flags (e.g. `--quiet`, etc).
55+
- ([#8422](https://github.com/quarto-dev/quarto-cli/issues/8422)): Improve dashboard validation and sauto-completion support for external tools
5556

5657
- Add support for `{{< lipsum >}}` shortcode, which is useful for emitting placeholder text. Specify a specific number of paragraphs (`{{< lipsum 3 >}}`).
5758
- Increase v8's max heap size by default, to avoid out-of-memory errors when rendering large documents (also cf. https://github.com/denoland/deno/issues/18935).

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

+85-8
Original file line numberDiff line numberDiff line change
@@ -7266,6 +7266,52 @@ var require_yaml_intelligence_resources = __commonJS({
72667266
description: {
72677267
short: "Context to execute cell within."
72687268
}
7269+
},
7270+
{
7271+
name: "content",
7272+
tags: {
7273+
formats: [
7274+
"dashboard"
7275+
]
7276+
},
7277+
schema: {
7278+
enum: [
7279+
"valuebox",
7280+
"sidebar",
7281+
"toolbar"
7282+
]
7283+
},
7284+
description: {
7285+
short: "The type of dashboard element being produced by this code cell."
7286+
}
7287+
},
7288+
{
7289+
name: "color",
7290+
tags: {
7291+
formats: [
7292+
"dashboard"
7293+
]
7294+
},
7295+
schema: {
7296+
anyOf: [
7297+
"string",
7298+
{
7299+
enum: [
7300+
"primary",
7301+
"secondary",
7302+
"success",
7303+
"info",
7304+
"warning",
7305+
"danger",
7306+
"light",
7307+
"dark"
7308+
]
7309+
}
7310+
]
7311+
},
7312+
description: {
7313+
short: "For code cells that produce a valuebox, the color of the valuebox.s"
7314+
}
72697315
}
72707316
],
72717317
"schema/cell-codeoutput.yml": [
@@ -19471,7 +19517,10 @@ var require_yaml_intelligence_resources = __commonJS({
1947119517
"Display reactions for the discussion\u2019s main post before the\ncomments.",
1947219518
"Specify <code>loading: lazy</code> to defer loading comments until\nthe user scrolls near the comments container.",
1947319519
"Place the comment input box above or below the comments.",
19474-
"The giscus theme to use when displaying comments.",
19520+
{
19521+
short: "The giscus theme to use when displaying comments.",
19522+
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:"
19523+
},
1947519524
"The light theme name.",
1947619525
"The dark theme name.",
1947719526
"The language that should be used when displaying the commenting\ninterface.",
@@ -19623,6 +19672,11 @@ var require_yaml_intelligence_resources = __commonJS({
1962319672
short: "The version number of Google Analytics to use.",
1962419673
long: "The version number of Google Analytics to use."
1962519674
},
19675+
"Provides an announcement displayed at the top of the page.",
19676+
"The content of the announcement",
19677+
"Whether this announcement may be dismissed by the user.",
19678+
"The icon to display in the annoucement",
19679+
"The type of announcement. Affects the appearance of the\nannouncement.",
1962619680
{
1962719681
short: "Request cookie consent before enabling scripts that set cookies",
1962819682
long: 'Quarto includes the ability to request cookie consent before enabling\nscripts that set cookies, using <a href="https://www.cookieconsent.com/">Cookie Consent</a>.\nThe user\u2019s cookie preferences will automatically control Google\nAnalytics (if enabled) and can be used to control custom scripts you add\nas well. For more information see <a href="https://quarto.org/docs/websites/website-tools.html#custom-scripts-and-cookie-consent">Custom\nScripts and Cookie Consent</a>.'
@@ -19758,6 +19812,11 @@ var require_yaml_intelligence_resources = __commonJS({
1975819812
short: "The version number of Google Analytics to use.",
1975919813
long: "The version number of Google Analytics to use."
1976019814
},
19815+
"Provides an announcement displayed at the top of the page.",
19816+
"The content of the announcement",
19817+
"Whether this announcement may be dismissed by the user.",
19818+
"The icon to display in the annoucement",
19819+
"The type of announcement. Affects the appearance of the\nannouncement.",
1976119820
{
1976219821
short: "Request cookie consent before enabling scripts that set cookies",
1976319822
long: 'Quarto includes the ability to request cookie consent before enabling\nscripts that set cookies, using <a href="https://www.cookieconsent.com/">Cookie Consent</a>.\nThe user\u2019s cookie preferences will automatically control Google\nAnalytics (if enabled) and can be used to control custom scripts you add\nas well. For more information see <a href="https://quarto.org/docs/websites/website-tools.html#custom-scripts-and-cookie-consent">Custom\nScripts and Cookie Consent</a>.'
@@ -20601,6 +20660,14 @@ var require_yaml_intelligence_resources = __commonJS({
2060120660
short: "Context to execute cell within.",
2060220661
long: ""
2060320662
},
20663+
{
20664+
short: "The type of dashboard element being produced by this code cell.",
20665+
long: ""
20666+
},
20667+
{
20668+
short: "For code cells that produce a valuebox, the color of the\nvaluebox.s",
20669+
long: ""
20670+
},
2060420671
{
2060520672
short: "Evaluate code cells (if <code>false</code> just echos the code into\noutput).",
2060620673
long: "Evaluate code cells (if <code>false</code> just echos the code into\noutput)."
@@ -21391,7 +21458,7 @@ var require_yaml_intelligence_resources = __commonJS({
2139121458
"The base url for s5 presentations.",
2139221459
"The base url for Slidy presentations.",
2139321460
"The base url for Slideous presentations.",
21394-
"Enable or disable lightbox treatment for images in this document.",
21461+
'Enable or disable lightbox treatment for images in this document. See\n<a href="https://quarto.org/docs/output-formats/html-lightbox-figures.html">Lightbox\nFigures</a> for more details.',
2139521462
{
2139621463
short: "Set this to <code>auto</code> if you\u2019d like any image to be given\nlightbox treatment.",
2139721464
long: "Set this to <code>auto</code> if you\u2019d like any image to be given\nlightbox treatment. If you omit this, only images with the class\n<code>lightbox</code> will be given the lightbox treatment."
@@ -21502,6 +21569,7 @@ var require_yaml_intelligence_resources = __commonJS({
2150221569
"The light theme name, theme scss file, or a mix of both.",
2150321570
"The dark theme name, theme scss file, or a mix of both.",
2150421571
"The dark theme name, theme scss file, or a mix of both.",
21572+
"Classes to apply to the body of the document.",
2150521573
"Disables the built in html features like theming, anchor sections,\ncode block behavior, and more.",
2150621574
"Enables inclusion of Pandoc default CSS for this document.",
2150721575
"One or more CSS style sheets.",
@@ -21628,6 +21696,7 @@ var require_yaml_intelligence_resources = __commonJS({
2162821696
"Keep the notebook file generated from executing code.",
2162921697
"Filters to pre-process ipynb files before rendering to markdown",
2163021698
"Specify which nodes should be run interactively (displaying output\nfrom expressions)",
21699+
"If true, use the \u201Cnotebook_connected\u201D plotly renderer, which\ndownloads its dependencies from a CDN and requires an internet\nconnection to view.",
2163121700
"Keep the intermediate typst file used during render.",
2163221701
"Keep the intermediate tex file used during render.",
2163321702
{
@@ -21932,6 +22001,11 @@ var require_yaml_intelligence_resources = __commonJS({
2193222001
short: "The version number of Google Analytics to use.",
2193322002
long: "The version number of Google Analytics to use."
2193422003
},
22004+
"Provides an announcement displayed at the top of the page.",
22005+
"The content of the announcement",
22006+
"Whether this announcement may be dismissed by the user.",
22007+
"The icon to display in the annoucement",
22008+
"The type of announcement. Affects the appearance of the\nannouncement.",
2193522009
{
2193622010
short: "Request cookie consent before enabling scripts that set cookies",
2193722011
long: 'Quarto includes the ability to request cookie consent before enabling\nscripts that set cookies, using <a href="https://www.cookieconsent.com/">Cookie Consent</a>.\nThe user\u2019s cookie preferences will automatically control Google\nAnalytics (if enabled) and can be used to control custom scripts you add\nas well. For more information see <a href="https://quarto.org/docs/websites/website-tools.html#custom-scripts-and-cookie-consent">Custom\nScripts and Cookie Consent</a>.'
@@ -22251,6 +22325,11 @@ var require_yaml_intelligence_resources = __commonJS({
2225122325
short: "The version number of Google Analytics to use.",
2225222326
long: "The version number of Google Analytics to use."
2225322327
},
22328+
"Provides an announcement displayed at the top of the page.",
22329+
"The content of the announcement",
22330+
"Whether this announcement may be dismissed by the user.",
22331+
"The icon to display in the annoucement",
22332+
"The type of announcement. Affects the appearance of the\nannouncement.",
2225422333
{
2225522334
short: "Request cookie consent before enabling scripts that set cookies",
2225622335
long: 'Quarto includes the ability to request cookie consent before enabling\nscripts that set cookies, using <a href="https://www.cookieconsent.com/">Cookie Consent</a>.\nThe user\u2019s cookie preferences will automatically control Google\nAnalytics (if enabled) and can be used to control custom scripts you add\nas well. For more information see <a href="https://quarto.org/docs/websites/website-tools.html#custom-scripts-and-cookie-consent">Custom\nScripts and Cookie Consent</a>.'
@@ -22518,9 +22597,7 @@ var require_yaml_intelligence_resources = __commonJS({
2251822597
},
2251922598
"Disambiguating year suffix in author-date styles (e.g.&nbsp;\u201Ca\u201D in \u201CDoe,\n1999a\u201D).",
2252022599
"Manuscript configuration",
22521-
"internal-schema-hack",
22522-
"Classes to apply to the body of the document.",
22523-
"If true, use the \u201Cnotebook_connected\u201D plotly renderer, which\ndownloads its dependencies from a CDN and requires an internet\nconnection to view."
22600+
"internal-schema-hack"
2252422601
],
2252522602
"schema/external-schemas.yml": [
2252622603
{
@@ -22749,12 +22826,12 @@ var require_yaml_intelligence_resources = __commonJS({
2274922826
mermaid: "%%"
2275022827
},
2275122828
"handlers/mermaid/schema.yml": {
22752-
_internalId: 180807,
22829+
_internalId: 181570,
2275322830
type: "object",
2275422831
description: "be an object",
2275522832
properties: {
2275622833
"mermaid-format": {
22757-
_internalId: 180799,
22834+
_internalId: 181562,
2275822835
type: "enum",
2275922836
enum: [
2276022837
"png",
@@ -22770,7 +22847,7 @@ var require_yaml_intelligence_resources = __commonJS({
2277022847
exhaustiveCompletions: true
2277122848
},
2277222849
theme: {
22773-
_internalId: 180806,
22850+
_internalId: 181569,
2277422851
type: "anyOf",
2277522852
anyOf: [
2277622853
{

0 commit comments

Comments
 (0)