Skip to content

Commit 7472a46

Browse files
committed
Add page-numbering to schema
1 parent 56eb16a commit 7472a46

File tree

5 files changed

+76
-10
lines changed

5 files changed

+76
-10
lines changed

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

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17221,6 +17221,19 @@ var require_yaml_intelligence_resources = __commonJS({
1722117221
long: "Shift heading levels by a positive or negative integer.\nFor example, with `shift-heading-level-by: -1`, level 2\nheadings become level 1 headings, and level 3 headings\nbecome level 2 headings. Headings cannot have a level\nless than 1, so a heading that would be shifted below level 1\nbecomes a regular paragraph. Exception: with a shift of -N,\na level-N heading at the beginning of the document\nreplaces the metadata title.\n"
1722217222
}
1722317223
},
17224+
{
17225+
name: "page-numbering",
17226+
schema: "string",
17227+
tags: {
17228+
formats: [
17229+
"typst"
17230+
]
17231+
},
17232+
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'
17235+
}
17236+
},
1722417237
{
1722517238
name: "pagenumbering",
1722617239
schema: {
@@ -23583,6 +23596,10 @@ var require_yaml_intelligence_resources = __commonJS({
2358323596
short: "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.",
2358423597
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."
2358523598
},
23599+
{
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.'
23602+
},
2358623603
{
2358723604
short: "Sets the page numbering style and location for the document.",
2358823605
long: 'Sets the page numbering style and location for the document using the\n<code>\\setuppagenumbering</code> command.\nSee <a href="https://wiki.contextgarden.net/Command/setuppagenumbering">ConTeXt\nPage Numbering</a> for additional information.'
@@ -24933,12 +24950,12 @@ var require_yaml_intelligence_resources = __commonJS({
2493324950
mermaid: "%%"
2493424951
},
2493524952
"handlers/mermaid/schema.yml": {
24936-
_internalId: 197474,
24953+
_internalId: 197907,
2493724954
type: "object",
2493824955
description: "be an object",
2493924956
properties: {
2494024957
"mermaid-format": {
24941-
_internalId: 197466,
24958+
_internalId: 197899,
2494224959
type: "enum",
2494324960
enum: [
2494424961
"png",
@@ -24954,7 +24971,7 @@ var require_yaml_intelligence_resources = __commonJS({
2495424971
exhaustiveCompletions: true
2495524972
},
2495624973
theme: {
24957-
_internalId: 197473,
24974+
_internalId: 197906,
2495824975
type: "anyOf",
2495924976
anyOf: [
2496024977
{

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: 20 additions & 3 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: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10193,6 +10193,19 @@
1019310193
"long": "Shift heading levels by a positive or negative integer.\nFor example, with `shift-heading-level-by: -1`, level 2\nheadings become level 1 headings, and level 3 headings\nbecome level 2 headings. Headings cannot have a level\nless than 1, so a heading that would be shifted below level 1\nbecomes a regular paragraph. Exception: with a shift of -N,\na level-N heading at the beginning of the document\nreplaces the metadata title.\n"
1019410194
}
1019510195
},
10196+
{
10197+
"name": "page-numbering",
10198+
"schema": "string",
10199+
"tags": {
10200+
"formats": [
10201+
"typst"
10202+
]
10203+
},
10204+
"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"
10207+
}
10208+
},
1019610209
{
1019710210
"name": "pagenumbering",
1019810211
"schema": {
@@ -16555,6 +16568,10 @@
1655516568
"short": "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.",
1655616569
"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."
1655716570
},
16571+
{
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."
16574+
},
1655816575
{
1655916576
"short": "Sets the page numbering style and location for the document.",
1656016577
"long": "Sets the page numbering style and location for the document using the\n<code>\\setuppagenumbering</code> command.\nSee <a href=\"https://wiki.contextgarden.net/Command/setuppagenumbering\">ConTeXt\nPage Numbering</a> for additional information."
@@ -17905,12 +17922,12 @@
1790517922
"mermaid": "%%"
1790617923
},
1790717924
"handlers/mermaid/schema.yml": {
17908-
"_internalId": 197474,
17925+
"_internalId": 197907,
1790917926
"type": "object",
1791017927
"description": "be an object",
1791117928
"properties": {
1791217929
"mermaid-format": {
17913-
"_internalId": 197466,
17930+
"_internalId": 197899,
1791417931
"type": "enum",
1791517932
"enum": [
1791617933
"png",
@@ -17926,7 +17943,7 @@
1792617943
"exhaustiveCompletions": true
1792717944
},
1792817945
"theme": {
17929-
"_internalId": 197473,
17946+
"_internalId": 197906,
1793017947
"type": "anyOf",
1793117948
"anyOf": [
1793217949
{

src/resources/schema/document-numbering.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,21 @@
7272
a level-N heading at the beginning of the document
7373
replaces the metadata title.
7474
75+
- name: page-numbering
76+
schema: string
77+
tags:
78+
formats: [typst]
79+
description:
80+
short: |
81+
Schema to use for numbering pages, e.g. `"1"` or `"i"`, or an empty string,
82+
`""`, to omit page numbering.
83+
long: |
84+
Schema to use for numbering pages, e.g. `"1"` or `"i"`, or an empty string,
85+
`""`, to omit page numbering.
86+
87+
See [Typst Numbering](https://typst.app/docs/reference/model/numbering/)
88+
for additional information.
89+
7590
- name: pagenumbering
7691
schema:
7792
maybeArrayOf: string

0 commit comments

Comments
 (0)