Skip to content

Commit e970a16

Browse files
authored
Merge pull request #9395 from quarto-dev/bugfix/9356-a
schema - make `template` a required field of `about`
2 parents 36ccd88 + 71eb61a commit e970a16

File tree

6 files changed

+39
-22
lines changed

6 files changed

+39
-22
lines changed

news/changelog-1.5.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ All changes included in 1.5:
152152
- ([#9041](https://github.com/quarto-dev/quarto-cli/issues/9041)): When creating an automatic citation key, replace spaces with underscores in inferred keys.
153153
- ([#9059](https://github.com/quarto-dev/quarto-cli/issues/9059)): `quarto run` now properly works on Windows with Lua scripts.
154154
- ([#9282](https://github.com/quarto-dev/quarto-cli/issues/9282)): Fix name clash in Lua local declarations for `mediabag` in bundled releases.
155+
- ([#9394](https://github.com/quarto-dev/quarto-cli/issues/9394)): Make `template` a required field in the `about` schema.
155156
- Add support for `{{< lipsum >}}` shortcode, which is useful for emitting placeholder text. Provide a specific number of paragraphs (`{{< lipsum 3 >}}`).
156157
- Resolve data URIs in Pandoc's mediabag when rendering documents.
157158
- 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

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10330,6 +10330,9 @@ var require_yaml_intelligence_resources = __commonJS({
1033010330
id: "website-about",
1033110331
object: {
1033210332
closed: true,
10333+
required: [
10334+
"template"
10335+
],
1033310336
properties: {
1033410337
id: {
1033510338
string: {
@@ -13297,7 +13300,8 @@ var require_yaml_intelligence_resources = __commonJS({
1329713300
}
1329813301
}
1329913302
}
13300-
}
13303+
},
13304+
description: "Configures the Julia engine."
1330113305
},
1330213306
{
1330313307
name: "knitr",
@@ -19505,6 +19509,7 @@ var require_yaml_intelligence_resources = __commonJS({
1950519509
"commonmark_x",
1950619510
"context",
1950719511
"csljson",
19512+
"djot",
1950819513
"docbook",
1950919514
"docbook4",
1951019515
"docbook5",
@@ -21146,6 +21151,8 @@ var require_yaml_intelligence_resources = __commonJS({
2114621151
"The name to display in the UI.",
2114721152
"The name of the language the kernel implements.",
2114821153
"The name of the kernel.",
21154+
"Arguments to pass to the Julia worker process.",
21155+
"Environment variables to pass to the Julia worker process.",
2114921156
"Set Knitr options.",
2115021157
"Knit options.",
2115121158
"Knitr chunk options.",
@@ -22737,9 +22744,7 @@ var require_yaml_intelligence_resources = __commonJS({
2273722744
},
2273822745
"Disambiguating year suffix in author-date styles (e.g.&nbsp;\u201Ca\u201D in \u201CDoe,\n1999a\u201D).",
2273922746
"Manuscript configuration",
22740-
"internal-schema-hack",
22741-
"Arguments to pass to the Julia worker process.",
22742-
"Environment variables to pass to the Julia worker process."
22747+
"internal-schema-hack"
2274322748
],
2274422749
"schema/external-schemas.yml": [
2274522750
{
@@ -22968,12 +22973,12 @@ var require_yaml_intelligence_resources = __commonJS({
2296822973
mermaid: "%%"
2296922974
},
2297022975
"handlers/mermaid/schema.yml": {
22971-
_internalId: 182425,
22976+
_internalId: 183687,
2297222977
type: "object",
2297322978
description: "be an object",
2297422979
properties: {
2297522980
"mermaid-format": {
22976-
_internalId: 182417,
22981+
_internalId: 183679,
2297722982
type: "enum",
2297822983
enum: [
2297922984
"png",
@@ -22989,7 +22994,7 @@ var require_yaml_intelligence_resources = __commonJS({
2298922994
exhaustiveCompletions: true
2299022995
},
2299122996
theme: {
22992-
_internalId: 182424,
22997+
_internalId: 183686,
2299322998
type: "anyOf",
2299422999
anyOf: [
2299523000
{

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

Lines changed: 12 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: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3302,6 +3302,9 @@
33023302
"id": "website-about",
33033303
"object": {
33043304
"closed": true,
3305+
"required": [
3306+
"template"
3307+
],
33053308
"properties": {
33063309
"id": {
33073310
"string": {
@@ -6269,7 +6272,8 @@
62696272
}
62706273
}
62716274
}
6272-
}
6275+
},
6276+
"description": "Configures the Julia engine."
62736277
},
62746278
{
62756279
"name": "knitr",
@@ -12477,6 +12481,7 @@
1247712481
"commonmark_x",
1247812482
"context",
1247912483
"csljson",
12484+
"djot",
1248012485
"docbook",
1248112486
"docbook4",
1248212487
"docbook5",
@@ -14118,6 +14123,8 @@
1411814123
"The name to display in the UI.",
1411914124
"The name of the language the kernel implements.",
1412014125
"The name of the kernel.",
14126+
"Arguments to pass to the Julia worker process.",
14127+
"Environment variables to pass to the Julia worker process.",
1412114128
"Set Knitr options.",
1412214129
"Knit options.",
1412314130
"Knitr chunk options.",
@@ -15709,9 +15716,7 @@
1570915716
},
1571015717
"Disambiguating year suffix in author-date styles (e.g.&nbsp;“a” in “Doe,\n1999a”).",
1571115718
"Manuscript configuration",
15712-
"internal-schema-hack",
15713-
"Arguments to pass to the Julia worker process.",
15714-
"Environment variables to pass to the Julia worker process."
15719+
"internal-schema-hack"
1571515720
],
1571615721
"schema/external-schemas.yml": [
1571715722
{
@@ -15940,12 +15945,12 @@
1594015945
"mermaid": "%%"
1594115946
},
1594215947
"handlers/mermaid/schema.yml": {
15943-
"_internalId": 182425,
15948+
"_internalId": 183687,
1594415949
"type": "object",
1594515950
"description": "be an object",
1594615951
"properties": {
1594715952
"mermaid-format": {
15948-
"_internalId": 182417,
15953+
"_internalId": 183679,
1594915954
"type": "enum",
1595015955
"enum": [
1595115956
"png",
@@ -15961,7 +15966,7 @@
1596115966
"exhaustiveCompletions": true
1596215967
},
1596315968
"theme": {
15964-
"_internalId": 182424,
15969+
"_internalId": 183686,
1596515970
"type": "anyOf",
1596615971
"anyOf": [
1596715972
{

src/resources/schema/definitions.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1359,6 +1359,7 @@
13591359
- id: website-about
13601360
object:
13611361
closed: true
1362+
required: [template]
13621363
properties:
13631364
id:
13641365
string:

src/resources/types/schema-types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -763,7 +763,7 @@ and appended to the end of the page. */;
763763
string /* The path to the main image on the about page. If not specified,
764764
the `image` provided for the document itself will be used. */;
765765
links?: (NavigationItem)[];
766-
template?:
766+
template:
767767
| ("jolla" | "trestles" | "solana" | "marquee" | "broadside")
768768
| string; /* The template to use to layout this about page. Choose from:
769769

0 commit comments

Comments
 (0)