You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have added specific custom [frontmatter](/style-guide/frontmatter/) to meet specific needs.
10
+
We have added specific custom [frontmatter](/style-guide/frontmatter/)properties to meet specific needs.
10
11
11
-
-`difficulty` <Typetext="string" /> <MetaInfotext="optional" />: Difficulty is displayed as a column in the [ListTutorials component](/style-guide/components/list-tutorials/).
12
-
-`external_link` <Typetext="string" /> <MetaInfotext="optional" />: Path to another page in our docs or elsewhere. Used to add a crosslink entry to the lefthand navigation sidebar.
13
-
-`pcx_content_type` <Typetext="string" /> <MetaInfotext="optional" />: The purpose of the page, and defined through specific pages in [Content strategy](/style-guide/documentation-content-strategy/content-types/).
14
-
-`preview_image` <Typetext="string" /> <MetaInfotext="optional" />: An `src` path to the image that you want to use as a custom preview image for social sharing.
15
-
-`products` <Typetext="Array<String>" /> <MetaInfotext="optional" />: The names of related products, which show on some grids for Examples, [Tutorials](/style-guide/documentation-content-strategy/content-types/tutorial/), and [Reference Architectures](/style-guide/documentation-content-strategy/content-types/reference-architecture/)
16
-
-`tags` <Typetext="Array<String>" /> <MetaInfotext="optional" />: A group of related keywords relating to the purpose of the page.
17
-
-`updated` <Typetext="Date" /> <MetaInfotext="optional" />: This is used to automatically add the [LastReviewed component](/style-guide/components/last-reviewed/).
18
-
-`noindex` <Typetext="Boolean" /> <MetaInfotext="optional" />: If true, this property adds a `noindex` declaration to the page, which will tell internal / external search crawlers to ignore this page. Helpful for pages that are historically accurate, but no longer recommended, such as [Workers Sites](/workers/configuration/sites/).
Copy file name to clipboardExpand all lines: src/schemas/base.ts
+36-12Lines changed: 36 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -10,12 +10,16 @@ const spotlightAuthorDetails = z
10
10
})
11
11
.optional()
12
12
.describe(
13
-
"These are used to automatically add the SpotlightAuthorDetails component to the page. Refer to https://developers.cloudflare.com/style-guide/components/spotlight-author-details/.",
13
+
"These are used to automatically add the [SpotlightAuthorDetails component](/style-guide/components/spotlight-author-details/) to the page.",
"Difficulty is displayed as a column in the ListTutorials component.",
73
+
"Difficulty is displayed as a column in the [ListTutorials component](/style-guide/components/list-tutorials/).",
64
74
),
65
75
updated: z
66
76
.date()
67
77
.optional()
68
78
.describe(
69
-
"This is used to automatically add the LastReviewed component to a page. Refer to https://developers.cloudflare.com/style-guide/components/last-reviewed/.",
79
+
"This is used to automatically add the [LastReviewed component](/style-guide/components/last-reviewed/).",
"The names of related products, which show on some grids for Examples, [Tutorials](/style-guide/documentation-content-strategy/content-types/tutorial/), and [Reference Architectures](/style-guide/documentation-content-strategy/content-types/reference-architecture/)",
90
+
),
75
91
languages: z.string().array().optional(),
76
92
summary: z.string().optional(),
77
93
goal: z.string().array().optional(),
78
94
operation: z.string().array().optional(),
79
-
noindex: z.boolean().optional(),
95
+
noindex: z
96
+
.boolean()
97
+
.optional()
98
+
.describe(
99
+
"If true, this property adds a `noindex` declaration to the page, which will tell internal / external search crawlers to ignore this page. Helpful for pages that are historically accurate, but no longer recommended, such as [Workers Sites](/workers/configuration/sites/).",
"Hides the index page from the sidebar. Refer to https://developers.cloudflare.com/style-guide/frontmatter/sidebar/.",
117
+
"Hides the index page from the sidebar. Refer to [Sidebar](/style-guide/frontmatter/sidebar/).",
97
118
),
98
119
badge: BadgeConfigSchema(),
99
120
})
100
121
.optional(),
101
122
})
102
-
.optional(),
123
+
.optional()
124
+
.describe(
125
+
"Used to configure various sidebar options. Refer to [Sidebar](/style-guide/frontmatter/sidebar/).",
126
+
),
103
127
hideChildren: z
104
128
.boolean()
105
129
.optional()
106
130
.describe(
107
-
"Renders this group as a single link on the sidebar, to the index page. Refer to https://developers.cloudflare.com/style-guide/frontmatter/sidebar/.",
131
+
"Renders this group as a single link on the sidebar, to the index page. Refer to [Sidebar](https://developers.cloudflare.com/style-guide/frontmatter/sidebar/).",
0 commit comments