UNPKG

@mintlify/validation

Version:

Validates mint.json files

17 lines (16 loc) 788 B
import { z } from 'zod'; export const faviconSchema = z.union([ z .string() .describe('Path pointing to the favicon file in your docs folder, including the file extension. The favicon will automatically be resized to the appropriate sizes'), z .object({ light: z .string() .describe('Path pointing to the light favicon file to use in dark mode, including the file extension. Example: `/favicon.png`'), dark: z .string() .describe('Path pointing to the dark favicon file to use in light mode, including the file extension. Example: `/favicon-dark.png`'), }) .describe('The path to the favicon. Can be a single file or a pair for light and dark mode. Example: `/favicon.png`'), ]);