DOCS

tcmts.site.DOCS · #uq27u7p4 · constant · runs anywhere

tcm's docs: the pages of tcmts.docs, as a collection (the content library's), so a page saved there is one of the site's. Each says what it's about in its frontmatter (description), or it isn't saved: the index says it beside the page's link, and it's the page's description for search engines and link previews.

import { collection } from "#codebase/tcmts/content";
import { z } from "zod";
import * as docs from "#codebase/tcmts/docs";

export const DOCS = collection(docs, { schema: z.object({ description: z.string().min(1) }) })

uses

used by