Skip to content

fix(docs-tooling): register Grid component in shared/localized component auto-imports - #1814

Merged
liyun95 merged 1 commit into
masterfrom
fix/localized-docs-grid-component
Dec 6, 2026
Merged

liyun95 merged 1 commit into
masterfrom
fix/localized-docs-grid-component

Conversation

@liyun95

@liyun95 liyun95 commented Dec 6, 2026

Copy link
Copy Markdown
Contributor

Summary

Fixes build:zh-CN failure caught during 94-page Chinese Guides read-only Fetch (#47639628729) on /docs/use-array-of-structs and /docs/byoc/use-array-of-structs (Expected component Grid to be defined: you likely forgot to import, pass, or provide it).

Registers Grid: '@site/src/components/Grid' in packages/docs-tooling/src/shared-docs/core/site/{types.ts,components.ts} alongside Supademo and Procedures, so both shared-docs and localized-docs automatically emit import Grid from '@site/src/components/Grid'; when <Grid> appears in page content.

Verification

  • pnpm docs-tooling localized-docs build --root localized-docs/zh-CN/guides --page use-array-of-structs: emits import Grid from '@site/src/components/Grid';, components: ["Admonition", "Grid"], 0 MDX fixes.
  • vitest (adapt.test.ts, merge.test.ts, engine.test.ts, assemble.test.ts, core-boundary.test.ts): 143/143 passed.
  • pnpm test:for-change -- --base origin/master --head HEAD: 0 unmapped paths.
  • pnpm typecheck & git diff --check: passed.

@liyun95
liyun95 merged commit 1e487af into master Dec 6, 2026
29 checks passed
@liyun95
liyun95 deleted the fix/localized-docs-grid-component branch December 6, 2026 12:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant