Skip to content

Commit 8c86909

Browse files
committed
add announcement banner
1 parent c06b8bc commit 8c86909

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

docs/src/content.config.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,18 @@
1-
import { defineCollection } from 'astro:content';
1+
import { defineCollection, z } from 'astro:content';
22
import { docsLoader } from '@astrojs/starlight/loaders';
33
import { docsSchema } from '@astrojs/starlight/schema';
44

55
export const collections = {
66
docs: defineCollection({
77
loader: docsLoader(),
8-
schema: docsSchema(),
8+
schema: docsSchema({
9+
extend: z.object({
10+
banner: z.object({
11+
content: z.string(),
12+
}).default({
13+
content: 'Stacked PRs is currently in private preview. <a href="https://gh.io/stacksbeta">Sign up for the waitlist →</a>',
14+
}),
15+
}),
16+
}),
917
}),
1018
};

0 commit comments

Comments
 (0)