/doc/CLAUDE.md
CLAUDE.md at /doc/CLAUDE.md
Path: doc/
Zudo Sg Docs
This workspace is the contributor documentation site built with zudo-doc 5.16, zfb, MDX, Tailwind CSS v4, and Preact.
Commands
pnpm dev— start zfb on port 4323.pnpm check— typecheck config, routes, and MDX.pnpm build— runzfb build --strict-plain-css-importsand generate the static site indist/.pnpm check:html— validate generated HTML after a build.pnpm setup:doc-skill— generate and link thedoc-wisdomskill.
Run commands from doc/, or use the @zudo-sg/doc workspace filter from the repository root.
Scaffold ownership
Keep site choices in
zfb.config.tsinside the singledefineConfig(zudoDoc({ ... }))call.Keep only the package index re-export and the canonical self-contained docs catch-all under
pages/.Package exports own doc chrome, route context, navigation, schemas, translations, color schemes, content components, and feature islands. Do not recreate a local
pages/libchain.Keep doc-history metadata hacks out of this workspace: there is no prebuild or precheck hook.
src/starts with the canonical 5.2 scaffold imports. Add only intentional project-specific token or content overrides after them.styles/ global. css src/contains the 12 authored articles. Generated Claude-resource directories undercontent/ docs/ src/are not hand-authored.content/ docs/ claude*
Content conventions
Frontmatter requires
title; usesidebar_positionto control ordering anddescriptionwhen it improves metadata or search.Do not add an h1 in the body; the frontmatter title renders it. Start sections at h2.
Use relative
.md/.mdxlinks for authored documentation.Directive admonitions such as
:::noteare available without imports.Prefer server-rendered JSX. Add a Preact island only for required client behavior and keep its page import chain statically discoverable.
Enabled behavior
Search, image enlargement, dynamic page transitions, llms.txt, and repository-root Claude resources are enabled. AI chat, history, design-token panels, local versioning, tags, changelogs, sidebar resizing/toggling, and HTML preview are disabled.