We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c06b8bc commit 8c86909Copy full SHA for 8c86909
1 file changed
docs/src/content.config.ts
@@ -1,10 +1,18 @@
1
-import { defineCollection } from 'astro:content';
+import { defineCollection, z } from 'astro:content';
2
import { docsLoader } from '@astrojs/starlight/loaders';
3
import { docsSchema } from '@astrojs/starlight/schema';
4
5
export const collections = {
6
docs: defineCollection({
7
loader: docsLoader(),
8
- schema: docsSchema(),
+ 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
17
}),
18
};
0 commit comments