diff --git a/AGENTS.md b/AGENTS.md index 25eb53e..972a843 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -36,3 +36,4 @@ pnpm format # prettier --write . - **Conventional commits required.** `commitlint` runs in the `commit-msg` husky hook; non-conforming messages are rejected. - **`metadataBase` is live.** `lib/links.ts` `site` is the real origin and `INDEXABLE` is `true`. Anything anchored on this origin — OG and canonical (via `metadataBase`); JSON-LD, `app/sitemap.ts`, `app/robots.ts` (via `SITE_URL`) — ships to production. Adding a new page = append an entry to `app/sitemap.ts`; don't add config elsewhere. Flip `INDEXABLE` to take the site out of search; only the meta tag flips (see `lib/links.ts` for why `robots.txt` stays unconditional). - **`docs/` is a different product.** Mintlify Cloud builds it from `docs/docs.json` and serves it at `docs.decdn.org` — independent of `pnpm build`. The website code must not import from `docs/`; ESLint and the website CI workflow ignore it. Edits to MDX go through the `docs` workflow (Prettier + `markdownlint-cli2` + `mintlify broken-links`). +- **CSS custom properties in `style` props.** Known `--var` names are declared in `types/css.d.ts` (module-augmenting React's `CSSProperties`) so call sites can write `style={{ "--reveal-delay": "120ms" }}` without a cast. Add new vars there before using them. diff --git a/components/site/Close.tsx b/components/site/Close.tsx index ad12396..7bb5286 100644 --- a/components/site/Close.tsx +++ b/components/site/Close.tsx @@ -27,7 +27,7 @@ export function Close() { height={110} className="block" style={{ - ["--wordmark-h" as string]: "clamp(4.75rem, 14vw, 11.5rem)", + "--wordmark-h": "clamp(4.75rem, 14vw, 11.5rem)", height: "var(--wordmark-h)", width: "auto", marginLeft: "calc(var(--wordmark-h) * -0.18)", @@ -38,7 +38,7 @@ export function Close() {