Skip to content

Commit 4ed3ffb

Browse files
authored
docs(schema): note markdown support in website navigation text fields (#14503)
* docs(schema): note markdown support in navigation item text field The `text` field for navbar/sidebar navigation items supports inline markdown formatting, processed through the markdown pipeline in website-navigation-md.ts. The schema description didn't say so. Fixes #6858 * docs(schema): note markdown support in title, announcement, and footer fields Several website navigation fields run through the markdown pipeline in website-navigation-md.ts but their schema descriptions did not say so: navbar/sidebar titles (navbarTitleHandler/sidebarTitleHandler), announcement content (announcementHandler), and page-footer left/center/ right regions (footerHandler). Refs #6858
1 parent 57705c3 commit 4ed3ffb

6 files changed

Lines changed: 61 additions & 59 deletions

File tree

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

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8567,7 +8567,7 @@ var require_yaml_intelligence_resources = __commonJS({
85678567
},
85688568
text: {
85698569
string: {
8570-
description: "Text to display for item (defaults to the\ndocument title if not provided)\n"
8570+
description: "Text to display for item (defaults to the\ndocument title if not provided). Supports markdown formatting.\n"
85718571
}
85728572
},
85738573
url: {
@@ -9304,15 +9304,15 @@ var require_yaml_intelligence_resources = __commonJS({
93049304
properties: {
93059305
left: {
93069306
ref: "page-footer-region",
9307-
description: "Footer left content"
9307+
description: "Footer left content. Supports markdown formatting."
93089308
},
93099309
right: {
93109310
ref: "page-footer-region",
9311-
description: "Footer right content"
9311+
description: "Footer right content. Supports markdown formatting."
93129312
},
93139313
center: {
93149314
ref: "page-footer-region",
9315-
description: "Footer center content"
9315+
description: "Footer center content. Supports markdown formatting."
93169316
},
93179317
border: {
93189318
anyOf: [
@@ -9492,7 +9492,7 @@ var require_yaml_intelligence_resources = __commonJS({
94929492
properties: {
94939493
content: {
94949494
schema: "string",
9495-
description: "The content of the announcement"
9495+
description: "The content of the announcement. Supports markdown formatting."
94969496
},
94979497
dismissable: {
94989498
schema: "boolean",
@@ -9743,7 +9743,7 @@ var require_yaml_intelligence_resources = __commonJS({
97439743
"string",
97449744
"boolean"
97459745
],
9746-
description: "The navbar title. Uses the project title if none is specified."
9746+
description: "The navbar title. Uses the project title if none is specified. Supports markdown formatting."
97479747
},
97489748
logo: {
97499749
ref: "logo-light-dark-specifier",
@@ -9868,7 +9868,7 @@ var require_yaml_intelligence_resources = __commonJS({
98689868
"string",
98699869
"boolean"
98709870
],
9871-
description: "The sidebar title. Uses the project title if none is specified."
9871+
description: "The sidebar title. Uses the project title if none is specified. Supports markdown formatting."
98729872
},
98739873
logo: {
98749874
ref: "logo-light-dark-specifier",
@@ -21684,7 +21684,7 @@ var require_yaml_intelligence_resources = __commonJS({
2168421684
short: "Name of bootstrap icon (e.g.&nbsp;<code>github</code>,\n<code>bluesky</code>, <code>share</code>)",
2168521685
long: 'Name of bootstrap icon (e.g.&nbsp;<code>github</code>,\n<code>bluesky</code>, <code>share</code>) See <a href="https://icons.getbootstrap.com/" class="uri">https://icons.getbootstrap.com/</a> for a list of available\nicons'
2168621686
},
21687-
"Text to display for item (defaults to the document title if not\nprovided)",
21687+
"Text to display for item (defaults to the document title if not\nprovided). Supports markdown formatting.",
2168821688
"Alias for href",
2168921689
'Value for rel attribute. Multiple space-separated values are\npermitted. See <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/rel" class="uri">https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/rel</a>\nfor a details.',
2169021690
'Value for target attribute. See <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-target" class="uri">https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-target</a>\nfor details.',
@@ -22903,7 +22903,7 @@ var require_yaml_intelligence_resources = __commonJS({
2290322903
"Any of the ways a logo can be specified: string, object, or\nlight/dark object of string or object. Use <code>false</code> to\nexplicitly disable the logo.",
2290422904
"Specification of a light logo",
2290522905
"Specification of a dark logo",
22906-
"Any of the ways a logo can be specified: string, object, or\nlight/dark object of string or object",
22906+
"Any of the ways a logo can be specified: string, object, or\nlight/dark object of string or object. Use <code>false</code> to\nexplicitly disable the logo.",
2290722907
"Specification of a light logo",
2290822908
"Specification of a dark logo",
2290922909
"Any of the ways a logo can be specified: string, object, or\nlight/dark object of string or object",
@@ -23412,10 +23412,6 @@ var require_yaml_intelligence_resources = __commonJS({
2341223412
"The identifier schema (e.g.&nbsp;<code>DOI</code>, <code>ISBN-A</code>,\netc.)",
2341323413
"Creators of this publication.",
2341423414
"Contributors to this publication.",
23415-
"The subject of the publication.",
23416-
"The subject text.",
23417-
"An EPUB reserved authority value.",
23418-
"The subject term (defined by the schema).",
2341923415
{
2342023416
short: "Text describing the specialized type of this publication.",
2342123417
long: 'Text describing the specialized type of this publication.\nAn informative registry of specialized EPUB Publication types for use\nwith this element is maintained in the <a href="https://www.w3.org/publishing/epub32/epub-packages.html#bib-typesregistry">TypesRegistry</a>,\nbut Authors may use any text string as a value.'
@@ -23953,6 +23949,9 @@ var require_yaml_intelligence_resources = __commonJS({
2395323949
"The mermaid built-in theme to use.",
2395423950
"List of keywords to be included in the document metadata.",
2395523951
"The document subject",
23952+
"The subject text.",
23953+
"An EPUB reserved authority value.",
23954+
"The subject term (defined by the schema).",
2395623955
"The document description. Some applications show this as\n<code>Comments</code> metadata.",
2395723956
"The document category.",
2395823957
"The copyright for this document, if any.",
@@ -25348,6 +25347,7 @@ var require_yaml_intelligence_resources = __commonJS({
2534825347
stata: "*",
2534925348
java: "//",
2535025349
groovy: "//",
25350+
kotlin: "//",
2535125351
sed: "#",
2535225352
perl: "#",
2535325353
prql: "#",
@@ -25374,12 +25374,12 @@ var require_yaml_intelligence_resources = __commonJS({
2537425374
mermaid: "%%"
2537525375
},
2537625376
"handlers/mermaid/schema.yml": {
25377-
_internalId: 222775,
25377+
_internalId: 222617,
2537825378
type: "object",
2537925379
description: "be an object",
2538025380
properties: {
2538125381
"mermaid-format": {
25382-
_internalId: 222767,
25382+
_internalId: 222609,
2538325383
type: "enum",
2538425384
enum: [
2538525385
"png",
@@ -25395,7 +25395,7 @@ var require_yaml_intelligence_resources = __commonJS({
2539525395
exhaustiveCompletions: true
2539625396
},
2539725397
theme: {
25398-
_internalId: 222774,
25398+
_internalId: 222616,
2539925399
type: "anyOf",
2540025400
anyOf: [
2540125401
{
@@ -34670,6 +34670,7 @@ var kLangCommentChars = {
3467034670
stata: "*",
3467134671
java: "//",
3467234672
groovy: "//",
34673+
kotlin: "//",
3467334674
sed: "#",
3467434675
perl: "#",
3467534676
prql: "#",

‎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: 17 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)