Skip to content

Commit 4bf6888

Browse files
committed
[Chore] Add more descriptions to various frontmatter fields in our style guide and schema
1 parent 9fad7dd commit 4bf6888

File tree

2 files changed

+4
-15
lines changed

2 files changed

+4
-15
lines changed

src/components/ProductReleaseNotes.astro

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,6 @@ if (!releaseNotes) {
9494
<AnchorHeading depth={2} title={page.data.title} />
9595
</a>
9696
<p class="text-xs">{entry.date}</p>
97-
{page.data.release_notes_product_area_name && (
98-
<h3 class="mt-4!">
99-
<a href={entry.productLink}>{entry.product}</a>
100-
</h3>
101-
)}
10297
{<Fragment set:html={description} />}
10398
</div>
10499
);
@@ -108,11 +103,6 @@ if (!releaseNotes) {
108103
<>
109104
<AnchorHeading depth={2} title={date} />
110105
<div data-product={entry.product.toLowerCase()}>
111-
{page.data.release_notes_product_area_name && (
112-
<h3 class="mt-4!">
113-
<a href={entry.productLink}>{entry.product}</a>
114-
</h3>
115-
)}
116106
{entry.title && <strong>{entry.title}</strong>}
117107
{<Fragment set:html={description} />}
118108
</div>

src/schemas/base.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,16 +81,15 @@ export const baseSchema = ({ image }: SchemaContext) =>
8181
"This is used to automatically add the [LastReviewed component](/style-guide/components/last-reviewed/).",
8282
),
8383
spotlight: spotlightAuthorDetails,
84-
release_notes_file_name: z.string().array().optional(),
85-
release_notes_product_area_name: z.string().optional(),
84+
release_notes_file_name: z.string().array().optional().describe("Required for the [`ProductReleaseNotes`](/style-guide/components/usage/#productreleasenotes) component."),
8685
products: z
8786
.string()
8887
.array()
8988
.optional()
9089
.describe(
9190
"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/)",
9291
),
93-
summary: z.string().optional(),
92+
summary: z.string().optional().describe("Renders a summary description directly below the page title."),
9493
goal: z.string().array().optional(),
9594
operation: z.string().array().optional(),
9695
noindex: z
@@ -117,7 +116,7 @@ export const baseSchema = ({ image }: SchemaContext) =>
117116
component: z.string(),
118117
})
119118
.optional()
120-
.describe("Used by overrides for style guide component documentation"),
119+
.describe("Used by overrides for style guide component documentation, which helps us display the [usage counts](/style-guide/components/usage/) for components directly on the component page itself."),
121120
banner: z
122121
.object({
123122
content: z.string(),
@@ -129,7 +128,7 @@ export const baseSchema = ({ image }: SchemaContext) =>
129128
.object({ id: z.string(), days: z.number().optional().default(7) })
130129
.optional(),
131130
})
132-
.optional(),
131+
.optional().describe("Displays a [Banner](https://developers.cloudflare.com/style-guide/frontmatter/banner/) on the current docs page."),
133132
icon: SidebarIconSchema(),
134133
feedback: z
135134
.boolean()

0 commit comments

Comments
 (0)