Skip to content

Commit 9a0a073

Browse files
artifacts
1 parent 0b7dd32 commit 9a0a073

File tree

7 files changed

+197
-31
lines changed

7 files changed

+197
-31
lines changed

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

Lines changed: 50 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12035,6 +12035,33 @@ var require_yaml_intelligence_resources = __commonJS({
1203512035
}
1203612036
]
1203712037
},
12038+
{
12039+
id: "logo-options-path-optional",
12040+
object: {
12041+
closed: false,
12042+
properties: {
12043+
path: {
12044+
schema: "path",
12045+
description: "Path or brand.yml logo resource name.\n"
12046+
},
12047+
alt: {
12048+
schema: "string",
12049+
description: "Alternative text for the logo, used for accessibility.\n"
12050+
}
12051+
}
12052+
}
12053+
},
12054+
{
12055+
id: "logo-specifier-path-optional",
12056+
anyOf: [
12057+
"string",
12058+
{
12059+
schema: {
12060+
ref: "logo-options-path-optional"
12061+
}
12062+
}
12063+
]
12064+
},
1203812065
{
1203912066
id: "logo-light-dark-specifier",
1204012067
description: "Any of the ways a logo can be specified: string, object, or light/dark object of string or object\n",
@@ -18288,15 +18315,11 @@ var require_yaml_intelligence_resources = __commonJS({
1828818315
name: "logo",
1828918316
tags: {
1829018317
formats: [
18291-
"revealjs",
18292-
"typst"
18318+
"revealjs"
1829318319
]
1829418320
},
1829518321
schema: {
18296-
anyOf: [
18297-
"string",
18298-
"object"
18299-
]
18322+
ref: "logo-specifier"
1830018323
},
1830118324
description: "Logo image (placed in bottom right corner of slides)"
1830218325
},
@@ -24614,7 +24637,10 @@ var require_yaml_intelligence_resources = __commonJS({
2461424637
"Disambiguating year suffix in author-date styles (e.g. \u201Ca\u201D in \u201CDoe,\n1999a\u201D).",
2461524638
"Manuscript configuration",
2461624639
"internal-schema-hack",
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."
24640+
"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.",
24641+
"Path or brand.yml logo resource name.",
24642+
"Alternative text for the logo, used for accessibility.",
24643+
"The logo image."
2461824644
],
2461924645
"schema/external-schemas.yml": [
2462024646
{
@@ -24843,12 +24869,12 @@ var require_yaml_intelligence_resources = __commonJS({
2484324869
mermaid: "%%"
2484424870
},
2484524871
"handlers/mermaid/schema.yml": {
24846-
_internalId: 197491,
24872+
_internalId: 197511,
2484724873
type: "object",
2484824874
description: "be an object",
2484924875
properties: {
2485024876
"mermaid-format": {
24851-
_internalId: 197483,
24877+
_internalId: 197503,
2485224878
type: "enum",
2485324879
enum: [
2485424880
"png",
@@ -24864,7 +24890,7 @@ var require_yaml_intelligence_resources = __commonJS({
2486424890
exhaustiveCompletions: true
2486524891
},
2486624892
theme: {
24867-
_internalId: 197490,
24893+
_internalId: 197510,
2486824894
type: "anyOf",
2486924895
anyOf: [
2487024896
{
@@ -24929,6 +24955,20 @@ var require_yaml_intelligence_resources = __commonJS({
2492924955
},
2493024956
description: "When defined, run axe-core accessibility tests on the document."
2493124957
}
24958+
],
24959+
"schema/document-typst.yml": [
24960+
{
24961+
name: "logo",
24962+
schema: {
24963+
ref: "logo-specifier-path-optional"
24964+
},
24965+
tags: {
24966+
formats: [
24967+
"typst"
24968+
]
24969+
},
24970+
description: "The logo image."
24971+
}
2493224972
]
2493324973
};
2493424974
}

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

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

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

Lines changed: 50 additions & 10 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: 50 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5007,6 +5007,33 @@
50075007
}
50085008
]
50095009
},
5010+
{
5011+
"id": "logo-options-path-optional",
5012+
"object": {
5013+
"closed": false,
5014+
"properties": {
5015+
"path": {
5016+
"schema": "path",
5017+
"description": "Path or brand.yml logo resource name.\n"
5018+
},
5019+
"alt": {
5020+
"schema": "string",
5021+
"description": "Alternative text for the logo, used for accessibility.\n"
5022+
}
5023+
}
5024+
}
5025+
},
5026+
{
5027+
"id": "logo-specifier-path-optional",
5028+
"anyOf": [
5029+
"string",
5030+
{
5031+
"schema": {
5032+
"ref": "logo-options-path-optional"
5033+
}
5034+
}
5035+
]
5036+
},
50105037
{
50115038
"id": "logo-light-dark-specifier",
50125039
"description": "Any of the ways a logo can be specified: string, object, or light/dark object of string or object\n",
@@ -11260,15 +11287,11 @@
1126011287
"name": "logo",
1126111288
"tags": {
1126211289
"formats": [
11263-
"revealjs",
11264-
"typst"
11290+
"revealjs"
1126511291
]
1126611292
},
1126711293
"schema": {
11268-
"anyOf": [
11269-
"string",
11270-
"object"
11271-
]
11294+
"ref": "logo-specifier"
1127211295
},
1127311296
"description": "Logo image (placed in bottom right corner of slides)"
1127411297
},
@@ -17586,7 +17609,10 @@
1758617609
"Disambiguating year suffix in author-date styles (e.g. “a” in “Doe,\n1999a”).",
1758717610
"Manuscript configuration",
1758817611
"internal-schema-hack",
17589-
"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’s default order\nis ‘knitr’, ‘jupyter’, ‘markdown’, ‘julia’."
17612+
"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’s default order\nis ‘knitr’, ‘jupyter’, ‘markdown’, ‘julia’.",
17613+
"Path or brand.yml logo resource name.",
17614+
"Alternative text for the logo, used for accessibility.",
17615+
"The logo image."
1759017616
],
1759117617
"schema/external-schemas.yml": [
1759217618
{
@@ -17815,12 +17841,12 @@
1781517841
"mermaid": "%%"
1781617842
},
1781717843
"handlers/mermaid/schema.yml": {
17818-
"_internalId": 197491,
17844+
"_internalId": 197511,
1781917845
"type": "object",
1782017846
"description": "be an object",
1782117847
"properties": {
1782217848
"mermaid-format": {
17823-
"_internalId": 197483,
17849+
"_internalId": 197503,
1782417850
"type": "enum",
1782517851
"enum": [
1782617852
"png",
@@ -17836,7 +17862,7 @@
1783617862
"exhaustiveCompletions": true
1783717863
},
1783817864
"theme": {
17839-
"_internalId": 197490,
17865+
"_internalId": 197510,
1784017866
"type": "anyOf",
1784117867
"anyOf": [
1784217868
{
@@ -17901,5 +17927,19 @@
1790117927
},
1790217928
"description": "When defined, run axe-core accessibility tests on the document."
1790317929
}
17930+
],
17931+
"schema/document-typst.yml": [
17932+
{
17933+
"name": "logo",
17934+
"schema": {
17935+
"ref": "logo-specifier-path-optional"
17936+
},
17937+
"tags": {
17938+
"formats": [
17939+
"typst"
17940+
]
17941+
},
17942+
"description": "The logo image."
17943+
}
1790417944
]
1790517945
}

src/resources/schema/json-schemas.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3246,6 +3246,28 @@
32463246
}
32473247
]
32483248
},
3249+
"LogoOptionsPathOptional": {
3250+
"object": {
3251+
"properties": {
3252+
"path": {
3253+
"type": "string"
3254+
},
3255+
"alt": {
3256+
"type": "string"
3257+
}
3258+
}
3259+
}
3260+
},
3261+
"LogoSpecifierPathOptional": {
3262+
"anyOf": [
3263+
{
3264+
"type": "string"
3265+
},
3266+
{
3267+
"$ref": "#/$defs/LogoOptionsPathOptional"
3268+
}
3269+
]
3270+
},
32493271
"LogoLightDarkSpecifier": {
32503272
"anyOf": [
32513273
{

src/resources/types/schema-types.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1263,6 +1263,10 @@ export type LogoOptions = { alt?: string; path: string };
12631263

12641264
export type LogoSpecifier = string | LogoOptions;
12651265

1266+
export type LogoOptionsPathOptional = { alt?: string; path?: string };
1267+
1268+
export type LogoSpecifierPathOptional = string | LogoOptionsPathOptional;
1269+
12661270
export type LogoLightDarkSpecifier = LogoSpecifier | {
12671271
dark?: LogoSpecifier;
12681272
light?: LogoSpecifier;

0 commit comments

Comments
 (0)