Skip to content

Commit dbd88dc

Browse files
committed
add custom enum entry to field type on listing schema
1 parent 35d307e commit dbd88dc

File tree

4 files changed

+20
-7
lines changed

4 files changed

+20
-7
lines changed

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9687,11 +9687,12 @@ var require_yaml_intelligence_resources = __commonJS({
96879687
enum: [
96889688
"default",
96899689
"table",
9690-
"grid"
9690+
"grid",
9691+
"custom"
96919692
],
96929693
description: {
96939694
short: "The type of listing to create.",
9694-
long: "The type of listing to create. Choose one of:\n\n- `default`: A blog style list of items\n- `table`: A table of items\n- `grid`: A grid of item cards\n"
9695+
long: "The type of listing to create. Choose one of:\n\n- `default`: A blog style list of items\n- `table`: A table of items\n- `grid`: A grid of item cards\n- `custom`: A custom template, provided by the `template` key\n"
96959696
}
96969697
},
96979698
contents: {
@@ -17283,6 +17284,7 @@ var require_yaml_intelligence_resources = __commonJS({
1728317284
"The navbar title. Uses the project title if none is specified.",
1728417285
"Path to a logo image that will be displayed to the left of the\ntitle.",
1728517286
"Alternate text for the logo image.",
17287+
"Target href from navbar logo / title. By default, the logo and title\nlink to the root page of the site (/index.html).",
1728617288
"The navbar\u2019s background color (named or hex color).",
1728717289
"The navbar\u2019s foreground color (named or hex color).",
1728817290
"Include a search box in the navbar.",
@@ -18803,6 +18805,7 @@ var require_yaml_intelligence_resources = __commonJS({
1880318805
"The navbar title. Uses the project title if none is specified.",
1880418806
"Path to a logo image that will be displayed to the left of the\ntitle.",
1880518807
"Alternate text for the logo image.",
18808+
"Target href from navbar logo / title. By default, the logo and title\nlink to the root page of the site (/index.html).",
1880618809
"The navbar\u2019s background color (named or hex color).",
1880718810
"The navbar\u2019s foreground color (named or hex color).",
1880818811
"Include a search box in the navbar.",
@@ -19006,6 +19009,7 @@ var require_yaml_intelligence_resources = __commonJS({
1900619009
"The navbar title. Uses the project title if none is specified.",
1900719010
"Path to a logo image that will be displayed to the left of the\ntitle.",
1900819011
"Alternate text for the logo image.",
19012+
"Target href from navbar logo / title. By default, the logo and title\nlink to the root page of the site (/index.html).",
1900919013
"The navbar\u2019s background color (named or hex color).",
1901019014
"The navbar\u2019s foreground color (named or hex color).",
1901119015
"Include a search box in the navbar.",

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

Lines changed: 6 additions & 2 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: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2666,11 +2666,12 @@
26662666
"enum": [
26672667
"default",
26682668
"table",
2669-
"grid"
2669+
"grid",
2670+
"custom"
26702671
],
26712672
"description": {
26722673
"short": "The type of listing to create.",
2673-
"long": "The type of listing to create. Choose one of:\n\n- `default`: A blog style list of items\n- `table`: A table of items\n- `grid`: A grid of item cards\n"
2674+
"long": "The type of listing to create. Choose one of:\n\n- `default`: A blog style list of items\n- `table`: A table of items\n- `grid`: A grid of item cards\n- `custom`: A custom template, provided by the `template` key\n"
26742675
}
26752676
},
26762677
"contents": {
@@ -10262,6 +10263,7 @@
1026210263
"The navbar title. Uses the project title if none is specified.",
1026310264
"Path to a logo image that will be displayed to the left of the\ntitle.",
1026410265
"Alternate text for the logo image.",
10266+
"Target href from navbar logo / title. By default, the logo and title\nlink to the root page of the site (/index.html).",
1026510267
"The navbar’s background color (named or hex color).",
1026610268
"The navbar’s foreground color (named or hex color).",
1026710269
"Include a search box in the navbar.",
@@ -11782,6 +11784,7 @@
1178211784
"The navbar title. Uses the project title if none is specified.",
1178311785
"Path to a logo image that will be displayed to the left of the\ntitle.",
1178411786
"Alternate text for the logo image.",
11787+
"Target href from navbar logo / title. By default, the logo and title\nlink to the root page of the site (/index.html).",
1178511788
"The navbar’s background color (named or hex color).",
1178611789
"The navbar’s foreground color (named or hex color).",
1178711790
"Include a search box in the navbar.",
@@ -11985,6 +11988,7 @@
1198511988
"The navbar title. Uses the project title if none is specified.",
1198611989
"Path to a logo image that will be displayed to the left of the\ntitle.",
1198711990
"Alternate text for the logo image.",
11991+
"Target href from navbar logo / title. By default, the logo and title\nlink to the root page of the site (/index.html).",
1198811992
"The navbar’s background color (named or hex color).",
1198911993
"The navbar’s foreground color (named or hex color).",
1199011994
"Include a search box in the navbar.",

src/resources/schema/definitions.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1078,7 +1078,7 @@
10781078
10791079
In no `id` is provided for a listing, Quarto will synthesize one when rendering the page.
10801080
type:
1081-
enum: [default, table, grid]
1081+
enum: [default, table, grid, custom]
10821082
description:
10831083
short: "The type of listing to create."
10841084
long: |
@@ -1087,6 +1087,7 @@
10871087
- `default`: A blog style list of items
10881088
- `table`: A table of items
10891089
- `grid`: A grid of item cards
1090+
- `custom`: A custom template, provided by the `template` field
10901091
contents:
10911092
maybeArrayOf:
10921093
anyOf:

0 commit comments

Comments
 (0)