Repository navigation
fix(docs-tooling): register Grid component in shared/localized component auto-imports - #1814
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes
build:zh-CNfailure caught during 94-page Chinese Guides read-only Fetch (#47639628729) on/docs/use-array-of-structsand/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'inpackages/docs-tooling/src/shared-docs/core/site/{types.ts,components.ts}alongsideSupademoandProcedures, so bothshared-docsandlocalized-docsautomatically emitimport 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: emitsimport 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.