Skip to content

Commit 562ce03

Browse files
committed
do not complete book project through fields 'chapters' and 'appendices'
1 parent 0501d07 commit 562ce03

File tree

4 files changed

+75
-55
lines changed

4 files changed

+75
-55
lines changed

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

Lines changed: 23 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -8854,7 +8854,7 @@ var require_yaml_intelligence_resources = __commonJS({
88548854
},
88558855
"site-path": {
88568856
string: {
8857-
description: "Path to site (defaults to '/'). Not required if you specify `site-url`.\n"
8857+
description: "Path to site (defaults to `/`). Not required if you specify `site-url`.\n"
88588858
}
88598859
},
88608860
"repo-url": {
@@ -16270,12 +16270,18 @@ var require_yaml_intelligence_resources = __commonJS({
1627016270
}
1627116271
},
1627216272
chapters: {
16273-
ref: "chapter-list",
16274-
description: "Book part and chapter files"
16273+
schema: {
16274+
ref: "chapter-list"
16275+
},
16276+
description: "Book part and chapter files",
16277+
hidden: true
1627516278
},
1627616279
appendices: {
16277-
ref: "chapter-list",
16278-
description: "Book appendix files"
16280+
schema: {
16281+
ref: "chapter-list"
16282+
},
16283+
description: "Book appendix files",
16284+
hidden: true
1627916285
},
1628016286
references: {
1628116287
path: {
@@ -16309,7 +16315,7 @@ var require_yaml_intelligence_resources = __commonJS({
1630916315
"epub",
1631016316
"docx"
1631116317
],
16312-
description: "Download buttons for other formats to include on navbar or sidebar\n(one or more of `pdf`, `epub`, and `docx)\n"
16318+
description: "Download buttons for other formats to include on navbar or sidebar\n(one or more of `pdf`, `epub`, and `docx`)\n"
1631316319
}
1631416320
},
1631516321
tools: {
@@ -17796,8 +17802,8 @@ var require_yaml_intelligence_resources = __commonJS({
1779617802
short: "Color for links to other content within the document.",
1779717803
long: 'Color for links to other content within the document.\nSee <a href="https://wiki.contextgarden.net/Color">ConTeXt Color</a>\nfor additional information.'
1779817804
},
17799-
"MISSING_DESCRIPTION",
17800-
"MISSING_DESCRIPTION",
17805+
"Configuration for document commenting.",
17806+
"Configuration for crossref labels and prefixes.",
1780117807
"Use top level sections (H1) in this document as chapters.",
1780217808
"The delimiter used between the prefix and the caption.",
1780317809
"The title prefix used for figure captions.",
@@ -18430,20 +18436,20 @@ var require_yaml_intelligence_resources = __commonJS({
1843018436
long: "Offset used to reduce the height of content within exported PDF\npages. This exists to account for environment differences based on how\nyou print to PDF. CLI printing options, like phantomjs and wkpdf, can\nend on precisely the total height of the document whereas in-browser\nprinting has to end one pixel before."
1843118437
},
1843218438
"Enable the slide overview mode",
18433-
"MISSING_DESCRIPTION",
18439+
"Configuration for revealjs menu.",
1843418440
"Side of the presentation where the menu will be shown\n(<code>left</code> or <code>right</code>)",
1843518441
"Width of the menu",
1843618442
"Add slide numbers to menu items",
1843718443
"For slides with no title, attempt to use the start of the text\ncontent as the title instead.",
18438-
"MISSING_DESCRIPTION",
18444+
"Configuration for revealjs chalkboard.",
1843918445
"Visual theme for drawing surface (<code>chalkboard</code> or\n<code>whiteboard</code>)",
1844018446
"The drawing width of the boardmarker. Defaults to 3. Larger values\ndraw thicker lines.",
1844118447
"The drawing width of the chalk. Defaults to 7. Larger values draw\nthicker lines.",
1844218448
"Optional file name for pre-recorded drawings (download drawings using\nthe <code>D</code> key)",
1844318449
"Configuration option to prevent changes to existing drawings",
1844418450
"Add chalkboard buttons at the bottom of the slide",
1844518451
"Gives the duration (in ms) of the transition for a slide change, so\nthat the notes canvas is drawn after the transition is completed.",
18446-
"MISSING_DESCRIPTION",
18452+
"Configuraiotn for reveal presentation multiplexing.",
1844718453
"Multiplex token server (defaults to Reveal-hosted server)",
1844818454
"Unique presentation id provided by multiplex token server",
1844918455
"Secret provided by multiplex token server",
@@ -18546,7 +18552,7 @@ var require_yaml_intelligence_resources = __commonJS({
1854618552
"The height of the preview image for this document.",
1854718553
"The width of the preview image for this document.",
1854818554
"The alt text for preview image on this page.",
18549-
"MISSING_DESCRIPTION",
18555+
"Project configuration.",
1855018556
"Project type (<code>default</code>, <code>website</code>, or\n<code>book</code>)",
1855118557
"Files to render (defaults to all files)",
1855218558
{
@@ -18558,8 +18564,8 @@ var require_yaml_intelligence_resources = __commonJS({
1855818564
"Additional file resources to be copied to output directory",
1855918565
"Additional file resources to be copied to output directory",
1856018566
"Options for <code>quarto preview</code>",
18561-
"MISSING_DESCRIPTION",
18562-
"MISSING_DESCRIPTION",
18567+
"Website configuration.",
18568+
"Book configuration.",
1856318569
"Book title",
1856418570
"Description metadata for HTML version of book",
1856518571
"The path to the favicon for this website",
@@ -18747,7 +18753,7 @@ var require_yaml_intelligence_resources = __commonJS({
1874718753
"Download buttons for other formats to include on navbar or sidebar\n(one or more of <code>pdf</code>, <code>epub</code>, and `docx)",
1874818754
"Custom tools for navbar or sidebar",
1874918755
"internal-schema-hack",
18750-
"MISSING_DESCRIPTION",
18756+
"Project configuration.",
1875118757
"Project type (<code>default</code>, <code>website</code>, or\n<code>book</code>)",
1875218758
"Files to render (defaults to all files)",
1875318759
{
@@ -18759,8 +18765,8 @@ var require_yaml_intelligence_resources = __commonJS({
1875918765
"Additional file resources to be copied to output directory",
1876018766
"Additional file resources to be copied to output directory",
1876118767
"Options for <code>quarto preview</code>",
18762-
"MISSING_DESCRIPTION",
18763-
"MISSING_DESCRIPTION",
18768+
"Website configuration.",
18769+
"Book configuration.",
1876418770
"Book title",
1876518771
"Description metadata for HTML version of book",
1876618772
"The path to the favicon for this website",
@@ -27053,7 +27059,6 @@ function convertFromYaml(yaml) {
2705327059
return fun(yaml);
2705427060
}
2705527061
}
27056-
console.log(JSON.stringify(yaml), null, 2);
2705727062
throw new Error("Internal Error: Cannot convert object; this should have failed validation.");
2705827063
}
2705927064
function objectSchemaFromFieldsObject(fields, exclude) {

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

Lines changed: 23 additions & 18 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: 23 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1833,7 +1833,7 @@
18331833
},
18341834
"site-path": {
18351835
"string": {
1836-
"description": "Path to site (defaults to '/'). Not required if you specify `site-url`.\n"
1836+
"description": "Path to site (defaults to `/`). Not required if you specify `site-url`.\n"
18371837
}
18381838
},
18391839
"repo-url": {
@@ -9249,12 +9249,18 @@
92499249
}
92509250
},
92519251
"chapters": {
9252-
"ref": "chapter-list",
9253-
"description": "Book part and chapter files"
9252+
"schema": {
9253+
"ref": "chapter-list"
9254+
},
9255+
"description": "Book part and chapter files",
9256+
"hidden": true
92549257
},
92559258
"appendices": {
9256-
"ref": "chapter-list",
9257-
"description": "Book appendix files"
9259+
"schema": {
9260+
"ref": "chapter-list"
9261+
},
9262+
"description": "Book appendix files",
9263+
"hidden": true
92589264
},
92599265
"references": {
92609266
"path": {
@@ -9288,7 +9294,7 @@
92889294
"epub",
92899295
"docx"
92909296
],
9291-
"description": "Download buttons for other formats to include on navbar or sidebar\n(one or more of `pdf`, `epub`, and `docx)\n"
9297+
"description": "Download buttons for other formats to include on navbar or sidebar\n(one or more of `pdf`, `epub`, and `docx`)\n"
92929298
}
92939299
},
92949300
"tools": {
@@ -10775,8 +10781,8 @@
1077510781
"short": "Color for links to other content within the document.",
1077610782
"long": "Color for links to other content within the document.\nSee <a href=\"https://wiki.contextgarden.net/Color\">ConTeXt Color</a>\nfor additional information."
1077710783
},
10778-
"MISSING_DESCRIPTION",
10779-
"MISSING_DESCRIPTION",
10784+
"Configuration for document commenting.",
10785+
"Configuration for crossref labels and prefixes.",
1078010786
"Use top level sections (H1) in this document as chapters.",
1078110787
"The delimiter used between the prefix and the caption.",
1078210788
"The title prefix used for figure captions.",
@@ -11409,20 +11415,20 @@
1140911415
"long": "Offset used to reduce the height of content within exported PDF\npages. This exists to account for environment differences based on how\nyou print to PDF. CLI printing options, like phantomjs and wkpdf, can\nend on precisely the total height of the document whereas in-browser\nprinting has to end one pixel before."
1141011416
},
1141111417
"Enable the slide overview mode",
11412-
"MISSING_DESCRIPTION",
11418+
"Configuration for revealjs menu.",
1141311419
"Side of the presentation where the menu will be shown\n(<code>left</code> or <code>right</code>)",
1141411420
"Width of the menu",
1141511421
"Add slide numbers to menu items",
1141611422
"For slides with no title, attempt to use the start of the text\ncontent as the title instead.",
11417-
"MISSING_DESCRIPTION",
11423+
"Configuration for revealjs chalkboard.",
1141811424
"Visual theme for drawing surface (<code>chalkboard</code> or\n<code>whiteboard</code>)",
1141911425
"The drawing width of the boardmarker. Defaults to 3. Larger values\ndraw thicker lines.",
1142011426
"The drawing width of the chalk. Defaults to 7. Larger values draw\nthicker lines.",
1142111427
"Optional file name for pre-recorded drawings (download drawings using\nthe <code>D</code> key)",
1142211428
"Configuration option to prevent changes to existing drawings",
1142311429
"Add chalkboard buttons at the bottom of the slide",
1142411430
"Gives the duration (in ms) of the transition for a slide change, so\nthat the notes canvas is drawn after the transition is completed.",
11425-
"MISSING_DESCRIPTION",
11431+
"Configuraiotn for reveal presentation multiplexing.",
1142611432
"Multiplex token server (defaults to Reveal-hosted server)",
1142711433
"Unique presentation id provided by multiplex token server",
1142811434
"Secret provided by multiplex token server",
@@ -11525,7 +11531,7 @@
1152511531
"The height of the preview image for this document.",
1152611532
"The width of the preview image for this document.",
1152711533
"The alt text for preview image on this page.",
11528-
"MISSING_DESCRIPTION",
11534+
"Project configuration.",
1152911535
"Project type (<code>default</code>, <code>website</code>, or\n<code>book</code>)",
1153011536
"Files to render (defaults to all files)",
1153111537
{
@@ -11537,8 +11543,8 @@
1153711543
"Additional file resources to be copied to output directory",
1153811544
"Additional file resources to be copied to output directory",
1153911545
"Options for <code>quarto preview</code>",
11540-
"MISSING_DESCRIPTION",
11541-
"MISSING_DESCRIPTION",
11546+
"Website configuration.",
11547+
"Book configuration.",
1154211548
"Book title",
1154311549
"Description metadata for HTML version of book",
1154411550
"The path to the favicon for this website",
@@ -11726,7 +11732,7 @@
1172611732
"Download buttons for other formats to include on navbar or sidebar\n(one or more of <code>pdf</code>, <code>epub</code>, and `docx)",
1172711733
"Custom tools for navbar or sidebar",
1172811734
"internal-schema-hack",
11729-
"MISSING_DESCRIPTION",
11735+
"Project configuration.",
1173011736
"Project type (<code>default</code>, <code>website</code>, or\n<code>book</code>)",
1173111737
"Files to render (defaults to all files)",
1173211738
{
@@ -11738,8 +11744,8 @@
1173811744
"Additional file resources to be copied to output directory",
1173911745
"Additional file resources to be copied to output directory",
1174011746
"Options for <code>quarto preview</code>",
11741-
"MISSING_DESCRIPTION",
11742-
"MISSING_DESCRIPTION",
11747+
"Website configuration.",
11748+
"Book configuration.",
1174311749
"Book title",
1174411750
"Description metadata for HTML version of book",
1174511751
"The path to the favicon for this website",

src/resources/schema/project.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,15 @@
6666
string:
6767
description: "Description metadata for HTML version of book"
6868
chapters:
69-
ref: chapter-list
69+
schema:
70+
ref: chapter-list
7071
description: "Book part and chapter files"
72+
hidden: true
7173
appendices:
72-
ref: chapter-list
74+
schema:
75+
ref: chapter-list
7376
description: "Book appendix files"
77+
hidden: true
7478
references:
7579
path:
7680
description: "Book references file"

0 commit comments

Comments
 (0)