Skip to content

Commit 300c533

Browse files
authored
Add support for new docsTeamMetrics frontmatter (#60658)
1 parent 614fc87 commit 300c533

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

src/frame/lib/frontmatter.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ export const contentTypesEnum = [
5959
'other', // Everything else.
6060
]
6161

62+
// Values supported in the docsTeamMetrics frontmatter property. Used to track
63+
// related articles (e.g. by feature or subject) that may span different directories.
64+
export const docsTeamMetricsEnum = ['copilot-cli']
65+
6266
export const schema: Schema = {
6367
type: 'object',
6468
required: ['title', 'versions'],
@@ -246,6 +250,13 @@ export const schema: Schema = {
246250
interactive: {
247251
type: 'boolean',
248252
},
253+
docsTeamMetrics: {
254+
type: 'array',
255+
items: {
256+
type: 'string',
257+
enum: docsTeamMetricsEnum,
258+
},
259+
},
249260
communityRedirect: {
250261
type: 'object',
251262
properties: {

0 commit comments

Comments
 (0)