Skip to content

Commit 525c821

Browse files
cwickhamcdervCopilot
authored
Add page-numbering to schema (#13516)
* Add `page-numbering` to schema * Build updated artifacts --------- Co-authored-by: Christophe Dervieux <cderv@posit.co> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: Christophe Dervieux <christophe.dervieux@gmail.com>
1 parent 8a9e78e commit 525c821

5 files changed

Lines changed: 101 additions & 16 deletions

File tree

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

Lines changed: 28 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17346,6 +17346,24 @@ var require_yaml_intelligence_resources = __commonJS({
1734617346
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"
1734717347
}
1734817348
},
17349+
{
17350+
name: "page-numbering",
17351+
schema: {
17352+
anyOf: [
17353+
"boolean",
17354+
"string"
17355+
]
17356+
},
17357+
tags: {
17358+
formats: [
17359+
"typst"
17360+
]
17361+
},
17362+
description: {
17363+
short: "Schema to use for numbering pages, e.g. `1` or `i`, or `false` to omit page numbering.\n",
17364+
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"
17365+
}
17366+
},
1734917367
{
1735017368
name: "pagenumbering",
1735117369
schema: {
@@ -22630,6 +22648,7 @@ var require_yaml_intelligence_resources = __commonJS({
2263022648
"Define a profile group for which at least one profile is always\nactive.",
2263122649
"Control when tests should run",
2263222650
"Run tests on CI (true = run, false = skip)",
22651+
"Skip test unconditionally (true = skip with default message, string =\nskip with custom message)",
2263322652
"Run tests ONLY on these platforms (whitelist)",
2263422653
"Don\u2019t run tests on these platforms (blacklist)",
2263522654
"The path to the locally referenced notebook.",
@@ -23548,6 +23567,10 @@ var require_yaml_intelligence_resources = __commonJS({
2354823567
long: 'Identifies the main language of the document using IETF language tags\n(following the <a href="https://www.rfc-editor.org/info/bcp47">BCP\n47</a> standard), such as <code>en</code> or <code>en-GB</code>. The <a href="https://r12a.github.io/app-subtags/">Language subtag lookup</a>\ntool can look up or verify these tags.\nThis affects most formats, and controls hyphenation in PDF output\nwhen using LaTeX (through <a href="https://ctan.org/pkg/babel"><code>babel</code></a> and <a href="https://ctan.org/pkg/polyglossia"><code>polyglossia</code></a>) or\nConTeXt.'
2354923568
},
2355023569
"YAML file containing custom language translations",
23570+
{
23571+
short: "Enable babel language-specific shorthands in LaTeX output.",
23572+
long: 'Enable babel language-specific shorthands in LaTeX output. When\n<code>true</code>, babel\u2019s language shortcuts are enabled (e.g., French\n<code>&lt;&lt;</code>/<code>&gt;&gt;</code> for guillemets, German\n<code>"</code> shortcuts, proper spacing around French punctuation).\nDefault is <code>false</code> because language shorthands can\ninterfere with code blocks and other content. Only enable if you need\nspecific typographic features for your language.'
23573+
},
2355123574
{
2355223575
short: "The base script direction for the document (<code>rtl</code> or\n<code>ltr</code>).",
2355323576
long: "The base script direction for the document (<code>rtl</code> or\n<code>ltr</code>).\nFor bidirectional documents, native pandoc <code>span</code>s and\n<code>div</code>s with the <code>dir</code> attribute can be used to\noverride the base direction in some output formats. This may not always\nbe necessary if the final renderer (e.g.&nbsp;the browser, when generating\nHTML) supports the [Unicode Bidirectional Algorithm].\nWhen using LaTeX for bidirectional documents, only the\n<code>xelatex</code> engine is fully supported (use\n<code>--pdf-engine=xelatex</code>)."
@@ -24882,8 +24905,8 @@ var require_yaml_intelligence_resources = __commonJS({
2488224905
"internal-schema-hack",
2488324906
"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.",
2488424907
{
24885-
short: "Enable babel language-specific shorthands in LaTeX output.",
24886-
long: 'Enable babel language-specific shorthands in LaTeX output. When\n<code>true</code>, babel\u2019s language shortcuts are enabled (e.g., French\n<code>&lt;&lt;</code>/<code>&gt;&gt;</code> for guillemets, German\n<code>"</code> shortcuts, proper spacing around French punctuation).\nDefault is <code>false</code> because language shorthands can\ninterfere with code blocks and other content. Only enable if you need\nspecific typographic features for your language.'
24908+
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.",
24909+
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.'
2488724910
}
2488824911
],
2488924912
"schema/external-schemas.yml": [
@@ -25113,12 +25136,12 @@ var require_yaml_intelligence_resources = __commonJS({
2511325136
mermaid: "%%"
2511425137
},
2511525138
"handlers/mermaid/schema.yml": {
25116-
_internalId: 197592,
25139+
_internalId: 218561,
2511725140
type: "object",
2511825141
description: "be an object",
2511925142
properties: {
2512025143
"mermaid-format": {
25121-
_internalId: 197584,
25144+
_internalId: 218553,
2512225145
type: "enum",
2512325146
enum: [
2512425147
"png",
@@ -25134,7 +25157,7 @@ var require_yaml_intelligence_resources = __commonJS({
2513425157
exhaustiveCompletions: true
2513525158
},
2513625159
theme: {
25137-
_internalId: 197591,
25160+
_internalId: 218560,
2513825161
type: "anyOf",
2513925162
anyOf: [
2514025163
{

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: 28 additions & 5 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: 28 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10318,6 +10318,24 @@
1031810318
"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"
1031910319
}
1032010320
},
10321+
{
10322+
"name": "page-numbering",
10323+
"schema": {
10324+
"anyOf": [
10325+
"boolean",
10326+
"string"
10327+
]
10328+
},
10329+
"tags": {
10330+
"formats": [
10331+
"typst"
10332+
]
10333+
},
10334+
"description": {
10335+
"short": "Schema to use for numbering pages, e.g. `1` or `i`, or `false` to omit page numbering.\n",
10336+
"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"
10337+
}
10338+
},
1032110339
{
1032210340
"name": "pagenumbering",
1032310341
"schema": {
@@ -15602,6 +15620,7 @@
1560215620
"Define a profile group for which at least one profile is always\nactive.",
1560315621
"Control when tests should run",
1560415622
"Run tests on CI (true = run, false = skip)",
15623+
"Skip test unconditionally (true = skip with default message, string =\nskip with custom message)",
1560515624
"Run tests ONLY on these platforms (whitelist)",
1560615625
"Don’t run tests on these platforms (blacklist)",
1560715626
"The path to the locally referenced notebook.",
@@ -16520,6 +16539,10 @@
1652016539
"long": "Identifies the main language of the document using IETF language tags\n(following the <a href=\"https://www.rfc-editor.org/info/bcp47\">BCP\n47</a> standard), such as <code>en</code> or <code>en-GB</code>. The <a href=\"https://r12a.github.io/app-subtags/\">Language subtag lookup</a>\ntool can look up or verify these tags.\nThis affects most formats, and controls hyphenation in PDF output\nwhen using LaTeX (through <a href=\"https://ctan.org/pkg/babel\"><code>babel</code></a> and <a href=\"https://ctan.org/pkg/polyglossia\"><code>polyglossia</code></a>) or\nConTeXt."
1652116540
},
1652216541
"YAML file containing custom language translations",
16542+
{
16543+
"short": "Enable babel language-specific shorthands in LaTeX output.",
16544+
"long": "Enable babel language-specific shorthands in LaTeX output. When\n<code>true</code>, babel’s language shortcuts are enabled (e.g., French\n<code>&lt;&lt;</code>/<code>&gt;&gt;</code> for guillemets, German\n<code>\"</code> shortcuts, proper spacing around French punctuation).\nDefault is <code>false</code> because language shorthands can\ninterfere with code blocks and other content. Only enable if you need\nspecific typographic features for your language."
16545+
},
1652316546
{
1652416547
"short": "The base script direction for the document (<code>rtl</code> or\n<code>ltr</code>).",
1652516548
"long": "The base script direction for the document (<code>rtl</code> or\n<code>ltr</code>).\nFor bidirectional documents, native pandoc <code>span</code>s and\n<code>div</code>s with the <code>dir</code> attribute can be used to\noverride the base direction in some output formats. This may not always\nbe necessary if the final renderer (e.g.&nbsp;the browser, when generating\nHTML) supports the [Unicode Bidirectional Algorithm].\nWhen using LaTeX for bidirectional documents, only the\n<code>xelatex</code> engine is fully supported (use\n<code>--pdf-engine=xelatex</code>)."
@@ -17854,8 +17877,8 @@
1785417877
"internal-schema-hack",
1785517878
"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’.",
1785617879
{
17857-
"short": "Enable babel language-specific shorthands in LaTeX output.",
17858-
"long": "Enable babel language-specific shorthands in LaTeX output. When\n<code>true</code>, babel’s language shortcuts are enabled (e.g., French\n<code>&lt;&lt;</code>/<code>&gt;&gt;</code> for guillemets, German\n<code>\"</code> shortcuts, proper spacing around French punctuation).\nDefault is <code>false</code> because language shorthands can\ninterfere with code blocks and other content. Only enable if you need\nspecific typographic features for your language."
17880+
"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.",
17881+
"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."
1785917882
}
1786017883
],
1786117884
"schema/external-schemas.yml": [
@@ -18085,12 +18108,12 @@
1808518108
"mermaid": "%%"
1808618109
},
1808718110
"handlers/mermaid/schema.yml": {
18088-
"_internalId": 197592,
18111+
"_internalId": 218561,
1808918112
"type": "object",
1809018113
"description": "be an object",
1809118114
"properties": {
1809218115
"mermaid-format": {
18093-
"_internalId": 197584,
18116+
"_internalId": 218553,
1809418117
"type": "enum",
1809518118
"enum": [
1809618119
"png",
@@ -18106,7 +18129,7 @@
1810618129
"exhaustiveCompletions": true
1810718130
},
1810818131
"theme": {
18109-
"_internalId": 197591,
18132+
"_internalId": 218560,
1811018133
"type": "anyOf",
1811118134
"anyOf": [
1811218135
{

src/resources/schema/document-numbering.yml

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

0 commit comments

Comments
 (0)