Mirror of
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

refactor: improve code example (zod import)

+2 -4
+2 -4
src/content/docs/blog/starlight-customize-toc-overview-title.mdx
··· 79 79 80 80 1. [Extend your frontmatter schema](https://starlight.astro.build/reference/frontmatter/#customize-frontmatter-schema) in `src/content.config.ts`: 81 81 82 - ```ts del={8} ins={5,9-16} 82 + ```ts ins={10-12} ins=", z" 83 83 // src/content.config.ts 84 - import { defineCollection } from 'astro:content'; 84 + import { defineCollection, z } from 'astro:content'; 85 85 import { docsLoader } from '@astrojs/starlight/loaders'; 86 86 import { docsSchema } from '@astrojs/starlight/schema'; 87 - import { z } from "astro/zod"; 88 87 89 88 export const collections = { 90 - docs: defineCollection({ loader: docsLoader(), schema: docsSchema() }), 91 89 docs: defineCollection({ 92 90 loader: docsLoader(), 93 91 schema: docsSchema({