Skip to content

Commit 47fdf15

Browse files
artifacts
1 parent bb87ea7 commit 47fdf15

File tree

7 files changed

+155
-22
lines changed

7 files changed

+155
-22
lines changed

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

Lines changed: 45 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8724,6 +8724,25 @@ var require_yaml_intelligence_resources = __commonJS({
87248724
]
87258725
}
87268726
},
8727+
{
8728+
id: "external-engine",
8729+
schema: {
8730+
object: {
8731+
closed: true,
8732+
properties: {
8733+
path: {
8734+
path: {
8735+
description: "Path to the TypeScript module for the execution engine"
8736+
}
8737+
}
8738+
},
8739+
required: [
8740+
"path"
8741+
]
8742+
},
8743+
description: "An execution engine not pre-loaded in Quarto"
8744+
}
8745+
},
87278746
{
87288747
id: "document-comments-configuration",
87298748
anyOf: [
@@ -20141,6 +20160,16 @@ var require_yaml_intelligence_resources = __commonJS({
2014120160
},
2014220161
formats: {
2014320162
schema: "object"
20163+
},
20164+
engines: {
20165+
arrayOf: {
20166+
anyOf: [
20167+
"string",
20168+
{
20169+
ref: "external-engine"
20170+
}
20171+
]
20172+
}
2014420173
}
2014520174
}
2014620175
}
@@ -20579,7 +20608,14 @@ var require_yaml_intelligence_resources = __commonJS({
2057920608
{
2058020609
name: "engines",
2058120610
schema: {
20582-
arrayOf: "string"
20611+
arrayOf: {
20612+
anyOf: [
20613+
"string",
20614+
{
20615+
ref: "external-engine"
20616+
}
20617+
]
20618+
}
2058320619
},
2058420620
description: "List execution engines you want to give priority when determining which engine should render a notebook. If two engines have support for a notebook, the one listed earlier will be chosen. Quarto's default order is 'knitr', 'jupyter', 'markdown', 'julia'."
2058520621
}
@@ -21343,8 +21379,8 @@ var require_yaml_intelligence_resources = __commonJS({
2134321379
"Alias for href",
2134421380
"Link to file contained with the project or external URL",
2134521381
{
21346-
short: "Name of bootstrap icon (e.g.&nbsp;<code>github</code>,\n<code>twitter</code>, <code>share</code>)",
21347-
long: 'Name of bootstrap icon (e.g.&nbsp;<code>github</code>,\n<code>twitter</code>, <code>share</code>) See <a href="https://icons.getbootstrap.com/" class="uri">https://icons.getbootstrap.com/</a> for a list of available\nicons'
21382+
short: "Name of bootstrap icon (e.g.&nbsp;<code>github</code>,\n<code>bluesky</code>, <code>share</code>)",
21383+
long: 'Name of bootstrap icon (e.g.&nbsp;<code>github</code>,\n<code>bluesky</code>, <code>share</code>) See <a href="https://icons.getbootstrap.com/" class="uri">https://icons.getbootstrap.com/</a> for a list of available\nicons'
2134821384
},
2134921385
"Text to display for item (defaults to the document title if not\nprovided)",
2135021386
"Alias for href",
@@ -24749,7 +24785,9 @@ var require_yaml_intelligence_resources = __commonJS({
2474924785
"Disambiguating year suffix in author-date styles (e.g.&nbsp;\u201Ca\u201D in \u201CDoe,\n1999a\u201D).",
2475024786
"Manuscript configuration",
2475124787
"internal-schema-hack",
24752-
"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."
24788+
"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.",
24789+
"An execution engine not pre-loaded in Quarto",
24790+
"Path to the TypeScript module for the execution engine"
2475324791
],
2475424792
"schema/external-schemas.yml": [
2475524793
{
@@ -24978,12 +25016,12 @@ var require_yaml_intelligence_resources = __commonJS({
2497825016
mermaid: "%%"
2497925017
},
2498025018
"handlers/mermaid/schema.yml": {
24981-
_internalId: 197493,
25019+
_internalId: 197508,
2498225020
type: "object",
2498325021
description: "be an object",
2498425022
properties: {
2498525023
"mermaid-format": {
24986-
_internalId: 197485,
25024+
_internalId: 197500,
2498725025
type: "enum",
2498825026
enum: [
2498925027
"png",
@@ -24999,7 +25037,7 @@ var require_yaml_intelligence_resources = __commonJS({
2499925037
exhaustiveCompletions: true
2500025038
},
2500125039
theme: {
25002-
_internalId: 197492,
25040+
_internalId: 197507,
2500325041
type: "anyOf",
2500425042
anyOf: [
2500525043
{

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: 45 additions & 7 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: 45 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1696,6 +1696,25 @@
16961696
]
16971697
}
16981698
},
1699+
{
1700+
"id": "external-engine",
1701+
"schema": {
1702+
"object": {
1703+
"closed": true,
1704+
"properties": {
1705+
"path": {
1706+
"path": {
1707+
"description": "Path to the TypeScript module for the execution engine"
1708+
}
1709+
}
1710+
},
1711+
"required": [
1712+
"path"
1713+
]
1714+
},
1715+
"description": "An execution engine not pre-loaded in Quarto"
1716+
}
1717+
},
16991718
{
17001719
"id": "document-comments-configuration",
17011720
"anyOf": [
@@ -13113,6 +13132,16 @@
1311313132
},
1311413133
"formats": {
1311513134
"schema": "object"
13135+
},
13136+
"engines": {
13137+
"arrayOf": {
13138+
"anyOf": [
13139+
"string",
13140+
{
13141+
"ref": "external-engine"
13142+
}
13143+
]
13144+
}
1311613145
}
1311713146
}
1311813147
}
@@ -13551,7 +13580,14 @@
1355113580
{
1355213581
"name": "engines",
1355313582
"schema": {
13554-
"arrayOf": "string"
13583+
"arrayOf": {
13584+
"anyOf": [
13585+
"string",
13586+
{
13587+
"ref": "external-engine"
13588+
}
13589+
]
13590+
}
1355513591
},
1355613592
"description": "List execution engines you want to give priority when determining which engine should render a notebook. If two engines have support for a notebook, the one listed earlier will be chosen. Quarto's default order is 'knitr', 'jupyter', 'markdown', 'julia'."
1355713593
}
@@ -14315,8 +14351,8 @@
1431514351
"Alias for href",
1431614352
"Link to file contained with the project or external URL",
1431714353
{
14318-
"short": "Name of bootstrap icon (e.g.&nbsp;<code>github</code>,\n<code>twitter</code>, <code>share</code>)",
14319-
"long": "Name of bootstrap icon (e.g.&nbsp;<code>github</code>,\n<code>twitter</code>, <code>share</code>) See <a href=\"https://icons.getbootstrap.com/\" class=\"uri\">https://icons.getbootstrap.com/</a> for a list of available\nicons"
14354+
"short": "Name of bootstrap icon (e.g.&nbsp;<code>github</code>,\n<code>bluesky</code>, <code>share</code>)",
14355+
"long": "Name of bootstrap icon (e.g.&nbsp;<code>github</code>,\n<code>bluesky</code>, <code>share</code>) See <a href=\"https://icons.getbootstrap.com/\" class=\"uri\">https://icons.getbootstrap.com/</a> for a list of available\nicons"
1432014356
},
1432114357
"Text to display for item (defaults to the document title if not\nprovided)",
1432214358
"Alias for href",
@@ -17721,7 +17757,9 @@
1772117757
"Disambiguating year suffix in author-date styles (e.g.&nbsp;“a” in “Doe,\n1999a”).",
1772217758
"Manuscript configuration",
1772317759
"internal-schema-hack",
17724-
"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’."
17760+
"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’.",
17761+
"An execution engine not pre-loaded in Quarto",
17762+
"Path to the TypeScript module for the execution engine"
1772517763
],
1772617764
"schema/external-schemas.yml": [
1772717765
{
@@ -17950,12 +17988,12 @@
1795017988
"mermaid": "%%"
1795117989
},
1795217990
"handlers/mermaid/schema.yml": {
17953-
"_internalId": 197493,
17991+
"_internalId": 197508,
1795417992
"type": "object",
1795517993
"description": "be an object",
1795617994
"properties": {
1795717995
"mermaid-format": {
17958-
"_internalId": 197485,
17996+
"_internalId": 197500,
1795917997
"type": "enum",
1796017998
"enum": [
1796117999
"png",
@@ -17971,7 +18009,7 @@
1797118009
"exhaustiveCompletions": true
1797218010
},
1797318011
"theme": {
17974-
"_internalId": 197492,
18012+
"_internalId": 197507,
1797518013
"type": "anyOf",
1797618014
"anyOf": [
1797718015
{

src/resources/schema/json-schemas.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,15 @@
324324
}
325325
}
326326
},
327+
"ExternalEngine": {
328+
"object": {
329+
"properties": {
330+
"path": {
331+
"type": "string"
332+
}
333+
}
334+
}
335+
},
327336
"DocumentCommentsConfiguration": {
328337
"anyOf": [
329338
{

src/resources/types/schema-types.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,10 @@ website:
154154
``` */
155155
};
156156

157+
export type ExternalEngine = {
158+
path: string; /* Path to the TypeScript module for the execution engine */
159+
}; /* An execution engine not pre-loaded in Quarto */
160+
157161
export type DocumentCommentsConfiguration = false | {
158162
giscus?: GiscusConfiguration;
159163
hypothesis?: boolean | {

src/resources/types/zod/schema-types.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,9 @@ export const ZodGiscusConfiguration = z.object({
135135
language: z.string(),
136136
}).strict().partial().required({ repo: true });
137137

138+
export const ZodExternalEngine = z.object({ path: z.string() }).strict()
139+
.partial().required({ path: true });
140+
138141
export const ZodDocumentCommentsConfiguration = z.union([
139142
z.literal(false),
140143
z.object({
@@ -1827,6 +1830,8 @@ export type GiscusThemes = z.infer<typeof ZodGiscusThemes>;
18271830

18281831
export type GiscusConfiguration = z.infer<typeof ZodGiscusConfiguration>;
18291832

1833+
export type ExternalEngine = z.infer<typeof ZodExternalEngine>;
1834+
18301835
export type DocumentCommentsConfiguration = z.infer<
18311836
typeof ZodDocumentCommentsConfiguration
18321837
>;
@@ -2061,6 +2066,7 @@ export const Zod = {
20612066
NavigationItemObject: ZodNavigationItemObject,
20622067
GiscusThemes: ZodGiscusThemes,
20632068
GiscusConfiguration: ZodGiscusConfiguration,
2069+
ExternalEngine: ZodExternalEngine,
20642070
DocumentCommentsConfiguration: ZodDocumentCommentsConfiguration,
20652071
SocialMetadata: ZodSocialMetadata,
20662072
PageFooterRegion: ZodPageFooterRegion,

0 commit comments

Comments
 (0)