/src/content/CLAUDE.md
CLAUDE.md at /src/content/CLAUDE.md
Path: src/
Doc Content (src/content/)
Before writing or editing any .mdx here, invoke /. That skill is the canonical copy of the writing rules — no h1 in content, mandatory sidebar_position, kebab-case file names, no horizontal rules as separators, the frontmatter schema table, the bilingual rule, linking conventions, admonition syntax, and the content-creation workflow. This file keeps only what is not in the skill.
The frontmatter schema itself is package-owned — @takazudo/ (source: packages/), wired in by zudoDoc(). It is not defined in the repo-root zfb.config.ts, which deliberately omits buildDocsSchema.
The one rule to remember without loading the skill
When creating or updating any doc page, update both EN (docs/) and JA (docs-ja/) versions. Keep code blocks and <HtmlPreview> blocks identical — only translate prose. JA mirrors the EN directory tree exactly. Exceptions below.
Bilingual carve-outs
Pages with
generated: truein frontmatter need no JA translation.Paths under
settings.defaultLocaleOnlyPrefixes(src/) are default-locale-only by design — create no JA mirror. Current entries:config/ settings. ts /,docs/ claude- md/ /,docs/ claude- skills/ /,docs/ claude- agents/ /.docs/ claude- commands/ The top-level
/index is bilingual (JA stub atdocs/ claude/ docs-); only the four deep prefixes above are default-locale-only.ja/ claude/ index. mdx docs-is a deliberate JA-only stub with no EN-parity obligation: its EN counterpartja/ claude/ index. mdx docs/is build-generated, so hand-editing the JA file to mirror EN content would be clobbered on the next generate. Keep the JA stub minimal — do not attempt to translate the generated EN index into it.claude/ index. mdx
Navigation Structure
Navigation is filesystem-driven — directory structure becomes sidebar navigation.
Pages ordered by
sidebar_position(ascending)Category index pages (
index.mdx) control category position viasidebar_position; addsidebar_labelfor a custom sidebar name; addcategory_sort_order: "desc"for newest-first ordering; addcategory_no_page: trueto create a non-linked category header (no route/sitemap/search entry)_category_.jsonstill works but triggers a zfb build warning; preferindex.mdxfrontmatterHeader nav is defined in
src/viaconfig/ settings. ts headerNavwithcategoryMatch