Skip to content

Commit 968baed

Browse files
committed
Can use false instead of empty string
1 parent bfc503c commit 968baed

5 files changed

Lines changed: 46 additions & 30 deletions

File tree

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

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17223,15 +17223,20 @@ var require_yaml_intelligence_resources = __commonJS({
1722317223
},
1722417224
{
1722517225
name: "page-numbering",
17226-
schema: "string",
17226+
schema: {
17227+
anyOf: [
17228+
"boolean",
17229+
"string"
17230+
]
17231+
},
1722717232
tags: {
1722817233
formats: [
1722917234
"typst"
1723017235
]
1723117236
},
1723217237
description: {
17233-
short: 'Schema to use for numbering pages, e.g. `1` or `i`, or an empty string, \n`""`, to omit page numbering.\n',
17234-
long: 'Schema to use for numbering pages, e.g. `1` or `i`, or an empty string, \n`""`, to omit page numbering.\n\nSee [Typst Numbering](https://typst.app/docs/reference/model/numbering/) \nfor additional information.\n'
17238+
short: "Schema to use for numbering pages, e.g. `1` or `i`, or `false` to omit page numbering.\n",
17239+
long: "Schema to use for numbering pages, e.g. `1` or `i`, or `false` to omit page numbering.\n\nSee [Typst Numbering](https://typst.app/docs/reference/model/numbering/) \nfor additional information.\n"
1723517240
}
1723617241
},
1723717242
{
@@ -23597,8 +23602,8 @@ var require_yaml_intelligence_resources = __commonJS({
2359723602
long: "Shift heading levels by a positive or negative integer. For example,\nwith <code>shift-heading-level-by: -1</code>, level 2 headings become\nlevel 1 headings, and level 3 headings become level 2 headings. Headings\ncannot have a level less than 1, so a heading that would be shifted\nbelow level 1 becomes a regular paragraph. Exception: with a shift of\n-N, a level-N heading at the beginning of the document replaces the\nmetadata title."
2359823603
},
2359923604
{
23600-
short: 'Schema to use for numbering pages, e.g.&nbsp;<code>1</code> or\n<code>i</code>, or an empty string, <code>""</code>, to omit page\nnumbering.',
23601-
long: 'Schema to use for numbering pages, e.g.&nbsp;<code>1</code> or\n<code>i</code>, or an empty string, <code>""</code>, to omit page\nnumbering.\nSee <a href="https://typst.app/docs/reference/model/numbering/">Typst\nNumbering</a> for additional information.'
23605+
short: "Schema to use for numbering pages, e.g.&nbsp;<code>1</code> or\n<code>i</code>, or <code>false</code> to omit page numbering.",
23606+
long: 'Schema to use for numbering pages, e.g.&nbsp;<code>1</code> or\n<code>i</code>, or <code>false</code> to omit page numbering.\nSee <a href="https://typst.app/docs/reference/model/numbering/">Typst\nNumbering</a> for additional information.'
2360223607
},
2360323608
{
2360423609
short: "Sets the page numbering style and location for the document.",
@@ -24950,12 +24955,12 @@ var require_yaml_intelligence_resources = __commonJS({
2495024955
mermaid: "%%"
2495124956
},
2495224957
"handlers/mermaid/schema.yml": {
24953-
_internalId: 197619,
24958+
_internalId: 197624,
2495424959
type: "object",
2495524960
description: "be an object",
2495624961
properties: {
2495724962
"mermaid-format": {
24958-
_internalId: 197611,
24963+
_internalId: 197616,
2495924964
type: "enum",
2496024965
enum: [
2496124966
"png",
@@ -24971,7 +24976,7 @@ var require_yaml_intelligence_resources = __commonJS({
2497124976
exhaustiveCompletions: true
2497224977
},
2497324978
theme: {
24974-
_internalId: 197618,
24979+
_internalId: 197623,
2497524980
type: "anyOf",
2497624981
anyOf: [
2497724982
{

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: 13 additions & 8 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: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10195,15 +10195,20 @@
1019510195
},
1019610196
{
1019710197
"name": "page-numbering",
10198-
"schema": "string",
10198+
"schema": {
10199+
"anyOf": [
10200+
"boolean",
10201+
"string"
10202+
]
10203+
},
1019910204
"tags": {
1020010205
"formats": [
1020110206
"typst"
1020210207
]
1020310208
},
1020410209
"description": {
10205-
"short": "Schema to use for numbering pages, e.g. `1` or `i`, or an empty string, \n`\"\"`, to omit page numbering.\n",
10206-
"long": "Schema to use for numbering pages, e.g. `1` or `i`, or an empty string, \n`\"\"`, to omit page numbering.\n\nSee [Typst Numbering](https://typst.app/docs/reference/model/numbering/) \nfor additional information.\n"
10210+
"short": "Schema to use for numbering pages, e.g. `1` or `i`, or `false` to omit page numbering.\n",
10211+
"long": "Schema to use for numbering pages, e.g. `1` or `i`, or `false` to omit page numbering.\n\nSee [Typst Numbering](https://typst.app/docs/reference/model/numbering/) \nfor additional information.\n"
1020710212
}
1020810213
},
1020910214
{
@@ -16569,8 +16574,8 @@
1656916574
"long": "Shift heading levels by a positive or negative integer. For example,\nwith <code>shift-heading-level-by: -1</code>, level 2 headings become\nlevel 1 headings, and level 3 headings become level 2 headings. Headings\ncannot have a level less than 1, so a heading that would be shifted\nbelow level 1 becomes a regular paragraph. Exception: with a shift of\n-N, a level-N heading at the beginning of the document replaces the\nmetadata title."
1657016575
},
1657116576
{
16572-
"short": "Schema to use for numbering pages, e.g.&nbsp;<code>1</code> or\n<code>i</code>, or an empty string, <code>\"\"</code>, to omit page\nnumbering.",
16573-
"long": "Schema to use for numbering pages, e.g.&nbsp;<code>1</code> or\n<code>i</code>, or an empty string, <code>\"\"</code>, to omit page\nnumbering.\nSee <a href=\"https://typst.app/docs/reference/model/numbering/\">Typst\nNumbering</a> for additional information."
16577+
"short": "Schema to use for numbering pages, e.g.&nbsp;<code>1</code> or\n<code>i</code>, or <code>false</code> to omit page numbering.",
16578+
"long": "Schema to use for numbering pages, e.g.&nbsp;<code>1</code> or\n<code>i</code>, or <code>false</code> to omit page numbering.\nSee <a href=\"https://typst.app/docs/reference/model/numbering/\">Typst\nNumbering</a> for additional information."
1657416579
},
1657516580
{
1657616581
"short": "Sets the page numbering style and location for the document.",
@@ -17922,12 +17927,12 @@
1792217927
"mermaid": "%%"
1792317928
},
1792417929
"handlers/mermaid/schema.yml": {
17925-
"_internalId": 197619,
17930+
"_internalId": 197624,
1792617931
"type": "object",
1792717932
"description": "be an object",
1792817933
"properties": {
1792917934
"mermaid-format": {
17930-
"_internalId": 197611,
17935+
"_internalId": 197616,
1793117936
"type": "enum",
1793217937
"enum": [
1793317938
"png",
@@ -17943,7 +17948,7 @@
1794317948
"exhaustiveCompletions": true
1794417949
},
1794517950
"theme": {
17946-
"_internalId": 197618,
17951+
"_internalId": 197623,
1794717952
"type": "anyOf",
1794817953
"anyOf": [
1794917954
{

src/resources/schema/document-numbering.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,16 +73,17 @@
7373
replaces the metadata title.
7474
7575
- name: page-numbering
76-
schema: string
76+
schema:
77+
anyOf:
78+
- boolean
79+
- string
7780
tags:
7881
formats: [typst]
7982
description:
8083
short: |
81-
Schema to use for numbering pages, e.g. `1` or `i`, or an empty string,
82-
`""`, to omit page numbering.
84+
Schema to use for numbering pages, e.g. `1` or `i`, or `false` to omit page numbering.
8385
long: |
84-
Schema to use for numbering pages, e.g. `1` or `i`, or an empty string,
85-
`""`, to omit page numbering.
86+
Schema to use for numbering pages, e.g. `1` or `i`, or `false` to omit page numbering.
8687
8788
See [Typst Numbering](https://typst.app/docs/reference/model/numbering/)
8889
for additional information.

0 commit comments

Comments
 (0)