Skip to content

Commit d256fb5

Browse files
committed
dev-call build-artifacts - include a full schema definitions file for easier external validation
1 parent 4e4be86 commit d256fb5

File tree

5 files changed

+90
-75
lines changed

5 files changed

+90
-75
lines changed

src/core/schema/build-schema-file.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,20 @@ export async function buildIntelligenceResources() {
8787
);
8888
Deno.writeTextFileSync(yamlResourcesPath, yamlResources);
8989

90+
// we also need to write the schema definitions to a file
91+
// it doesn't go on yaml-intelligence-resources.json because
92+
// it's a larger file and we don't want to bundle it
93+
// unnecessarily with web-worker.js
94+
95+
const definitions = getSchemaDefinitionsObject();
96+
const definitionsPath = resourcePath(
97+
"editor/tools/yaml/all-schema-definitions.json",
98+
);
99+
Deno.writeTextFileSync(
100+
definitionsPath,
101+
JSON.stringify(definitions),
102+
);
103+
90104
const path = resourcePath();
91105
await Promise.all([
92106
generateTypesFromSchemas(path),

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

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -21492,7 +21492,7 @@ var require_yaml_intelligence_resources = __commonJS({
2149221492
"Additional parameters to pass when executing a search",
2149321493
"Top navigation options",
2149421494
"The navbar title. Uses the project title if none is specified.",
21495-
"Path to a logo image that will be displayed to the left of the\ntitle.",
21495+
"Specification of image that will be displayed to the left of the\ntitle.",
2149621496
"Alternate text for the logo image.",
2149721497
"Target href from navbar logo / title. By default, the logo and title\nlink to the root page of the site (/index.html).",
2149821498
"The navbar\u2019s background color (named or hex color).",
@@ -21508,7 +21508,7 @@ var require_yaml_intelligence_resources = __commonJS({
2150821508
"Side navigation options",
2150921509
"The identifier for this sidebar.",
2151021510
"The sidebar title. Uses the project title if none is specified.",
21511-
"Path to a logo image that will be displayed in the sidebar.",
21511+
"Specification of image that will be displayed in the sidebar.",
2151221512
"Alternate text for the logo image.",
2151321513
"Target href from navbar logo / title. By default, the logo and title\nlink to the root page of the site (/index.html).",
2151421514
"Include a search control in the sidebar.",
@@ -21525,7 +21525,7 @@ var require_yaml_intelligence_resources = __commonJS({
2152521525
"Markdown to place below sidebar content (text or file path)",
2152621526
"The identifier for this sidebar.",
2152721527
"The sidebar title. Uses the project title if none is specified.",
21528-
"Path to a logo image that will be displayed in the sidebar.",
21528+
"Specification of image that will be displayed in the sidebar.",
2152921529
"Alternate text for the logo image.",
2153021530
"Target href from navbar logo / title. By default, the logo and title\nlink to the root page of the site (/index.html).",
2153121531
"Include a search control in the sidebar.",
@@ -21653,7 +21653,7 @@ var require_yaml_intelligence_resources = __commonJS({
2165321653
"Additional parameters to pass when executing a search",
2165421654
"Top navigation options",
2165521655
"The navbar title. Uses the project title if none is specified.",
21656-
"Path to a logo image that will be displayed to the left of the\ntitle.",
21656+
"Specification of image that will be displayed to the left of the\ntitle.",
2165721657
"Alternate text for the logo image.",
2165821658
"Target href from navbar logo / title. By default, the logo and title\nlink to the root page of the site (/index.html).",
2165921659
"The navbar\u2019s background color (named or hex color).",
@@ -21669,7 +21669,7 @@ var require_yaml_intelligence_resources = __commonJS({
2166921669
"Side navigation options",
2167021670
"The identifier for this sidebar.",
2167121671
"The sidebar title. Uses the project title if none is specified.",
21672-
"Path to a logo image that will be displayed in the sidebar.",
21672+
"Specification of image that will be displayed in the sidebar.",
2167321673
"Alternate text for the logo image.",
2167421674
"Target href from navbar logo / title. By default, the logo and title\nlink to the root page of the site (/index.html).",
2167521675
"Include a search control in the sidebar.",
@@ -21686,7 +21686,7 @@ var require_yaml_intelligence_resources = __commonJS({
2168621686
"Markdown to place below sidebar content (text or file path)",
2168721687
"The identifier for this sidebar.",
2168821688
"The sidebar title. Uses the project title if none is specified.",
21689-
"Path to a logo image that will be displayed in the sidebar.",
21689+
"Specification of image that will be displayed in the sidebar.",
2169021690
"Alternate text for the logo image.",
2169121691
"Target href from navbar logo / title. By default, the logo and title\nlink to the root page of the site (/index.html).",
2169221692
"Include a search control in the sidebar.",
@@ -22433,6 +22433,14 @@ var require_yaml_intelligence_resources = __commonJS({
2243322433
"A link or path to the brand\u2019s medium-sized logo, or a link or path to\nboth the light and dark versions.",
2243422434
"A link or path to the brand\u2019s large- or full-sized logo, or a link or\npath to both the light and dark versions.",
2243522435
"Names of customizeable logos",
22436+
"Path or brand.yml logo resource name.",
22437+
"Alternative text for the logo, used for accessibility.",
22438+
"Any of the ways a logo can be specified: string, object, or\nlight/dark object of string or object",
22439+
"Specification of a light logo",
22440+
"Specification of a dark logo",
22441+
"Any of the ways a logo can be specified: string, object, or\nlight/dark object of string or object",
22442+
"Options for a light logo",
22443+
"Options for a dark logo",
2243622444
"The brand\u2019s custom color palette and theme.",
2243722445
"The brand\u2019s custom color palette. Any number of colors can be\ndefined, each color having a custom name.",
2243822446
"The foreground color, used for text.",
@@ -22902,7 +22910,7 @@ var require_yaml_intelligence_resources = __commonJS({
2290222910
"The title used for appendix.",
2290322911
"The delimiter beween appendix number and title.",
2290422912
"Enables a hover popup for cross references that shows the item being\nreferenced.",
22905-
"Logo image (placed on the left side of the navigation bar)",
22913+
"Logo image(s) (placed on the left side of the navigation bar)",
2290622914
"Default orientation for dashboard content (default\n<code>rows</code>)",
2290722915
"Use scrolling rather than fill layout (default:\n<code>false</code>)",
2290822916
"Make card content expandable (default: <code>true</code>)",
@@ -24024,7 +24032,7 @@ var require_yaml_intelligence_resources = __commonJS({
2402424032
"Additional parameters to pass when executing a search",
2402524033
"Top navigation options",
2402624034
"The navbar title. Uses the project title if none is specified.",
24027-
"Path to a logo image that will be displayed to the left of the\ntitle.",
24035+
"Specification of image that will be displayed to the left of the\ntitle.",
2402824036
"Alternate text for the logo image.",
2402924037
"Target href from navbar logo / title. By default, the logo and title\nlink to the root page of the site (/index.html).",
2403024038
"The navbar\u2019s background color (named or hex color).",
@@ -24040,7 +24048,7 @@ var require_yaml_intelligence_resources = __commonJS({
2404024048
"Side navigation options",
2404124049
"The identifier for this sidebar.",
2404224050
"The sidebar title. Uses the project title if none is specified.",
24043-
"Path to a logo image that will be displayed in the sidebar.",
24051+
"Specification of image that will be displayed in the sidebar.",
2404424052
"Alternate text for the logo image.",
2404524053
"Target href from navbar logo / title. By default, the logo and title\nlink to the root page of the site (/index.html).",
2404624054
"Include a search control in the sidebar.",
@@ -24057,7 +24065,7 @@ var require_yaml_intelligence_resources = __commonJS({
2405724065
"Markdown to place below sidebar content (text or file path)",
2405824066
"The identifier for this sidebar.",
2405924067
"The sidebar title. Uses the project title if none is specified.",
24060-
"Path to a logo image that will be displayed in the sidebar.",
24068+
"Specification of image that will be displayed in the sidebar.",
2406124069
"Alternate text for the logo image.",
2406224070
"Target href from navbar logo / title. By default, the logo and title\nlink to the root page of the site (/index.html).",
2406324071
"Include a search control in the sidebar.",
@@ -24372,7 +24380,7 @@ var require_yaml_intelligence_resources = __commonJS({
2437224380
"Additional parameters to pass when executing a search",
2437324381
"Top navigation options",
2437424382
"The navbar title. Uses the project title if none is specified.",
24375-
"Path to a logo image that will be displayed to the left of the\ntitle.",
24383+
"Specification of image that will be displayed to the left of the\ntitle.",
2437624384
"Alternate text for the logo image.",
2437724385
"Target href from navbar logo / title. By default, the logo and title\nlink to the root page of the site (/index.html).",
2437824386
"The navbar\u2019s background color (named or hex color).",
@@ -24388,7 +24396,7 @@ var require_yaml_intelligence_resources = __commonJS({
2438824396
"Side navigation options",
2438924397
"The identifier for this sidebar.",
2439024398
"The sidebar title. Uses the project title if none is specified.",
24391-
"Path to a logo image that will be displayed in the sidebar.",
24399+
"Specification of image that will be displayed in the sidebar.",
2439224400
"Alternate text for the logo image.",
2439324401
"Target href from navbar logo / title. By default, the logo and title\nlink to the root page of the site (/index.html).",
2439424402
"Include a search control in the sidebar.",
@@ -24405,7 +24413,7 @@ var require_yaml_intelligence_resources = __commonJS({
2440524413
"Markdown to place below sidebar content (text or file path)",
2440624414
"The identifier for this sidebar.",
2440724415
"The sidebar title. Uses the project title if none is specified.",
24408-
"Path to a logo image that will be displayed in the sidebar.",
24416+
"Specification of image that will be displayed in the sidebar.",
2440924417
"Alternate text for the logo image.",
2441024418
"Target href from navbar logo / title. By default, the logo and title\nlink to the root page of the site (/index.html).",
2441124419
"Include a search control in the sidebar.",
@@ -24606,15 +24614,7 @@ var require_yaml_intelligence_resources = __commonJS({
2460624614
"Disambiguating year suffix in author-date styles (e.g.&nbsp;\u201Ca\u201D in \u201CDoe,\n1999a\u201D).",
2460724615
"Manuscript configuration",
2460824616
"internal-schema-hack",
24609-
"List execution engines you want to give priority when determining\nwhich engine should render a notebook. If two engines have support for a\nnotebook, the one listed earlier will be chosen. Quarto\u2019s default order\nis \u2018knitr\u2019, \u2018jupyter\u2019, \u2018markdown\u2019, \u2018julia\u2019.",
24610-
"Path or brand.yml logo resource name.",
24611-
"Alternative text for the logo, used for accessibility.",
24612-
"Any of the ways a logo can be specified: string, object, or\nlight/dark object of string or object",
24613-
"Specification of a light logo",
24614-
"Specification of a dark logo",
24615-
"Any of the ways a logo can be specified: string, object, or\nlight/dark object of string or object",
24616-
"Options for a light logo",
24617-
"Options for a dark logo"
24617+
"List execution engines you want to give priority when determining\nwhich engine should render a notebook. If two engines have support for a\nnotebook, the one listed earlier will be chosen. Quarto\u2019s default order\nis \u2018knitr\u2019, \u2018jupyter\u2019, \u2018markdown\u2019, \u2018julia\u2019."
2461824618
],
2461924619
"schema/external-schemas.yml": [
2462024620
{
@@ -24843,12 +24843,12 @@ var require_yaml_intelligence_resources = __commonJS({
2484324843
mermaid: "%%"
2484424844
},
2484524845
"handlers/mermaid/schema.yml": {
24846-
_internalId: 197364,
24846+
_internalId: 197491,
2484724847
type: "object",
2484824848
description: "be an object",
2484924849
properties: {
2485024850
"mermaid-format": {
24851-
_internalId: 197356,
24851+
_internalId: 197483,
2485224852
type: "enum",
2485324853
enum: [
2485424854
"png",
@@ -24864,7 +24864,7 @@ var require_yaml_intelligence_resources = __commonJS({
2486424864
exhaustiveCompletions: true
2486524865
},
2486624866
theme: {
24867-
_internalId: 197363,
24867+
_internalId: 197490,
2486824868
type: "anyOf",
2486924869
anyOf: [
2487024870
{

src/resources/editor/tools/yaml/all-schema-definitions.json

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)