UNPKG

starlight-sidebar-topics

Version:

Starlight plugin to split your documentation into different sections, each with its own sidebar.

13 lines (10 loc) 388 B
import { z } from 'astro/zod' export const topicSchema = z.object({ /** * ID of the topic to associate with the current page if the page is not listed in any topic sidebar configuration. * * @see https://starlight-sidebar-topics.netlify.app/docs/guides/unlisted-pages/ */ topic: z.string().optional(), }) export type TopicFrontmatterSchema = z.input<typeof topicSchema>