docs(website-new): normalize links in _components mdx#4823
Merged
Conversation
Replace relative paths and anchor-only links in docs/[lang]/_components with absolute `.html` URLs to match the convention introduced in module-federation#4817.
✅ Deploy Preview for module-federation-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
2heal1
approved these changes
Jun 16, 2026
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
docs/[lang]/_components/**, which still contained relative paths and.html-less internal links..htmlsuffix, matching the convention used elsewhere in the site.secondary-build.mdx(zh/en):../../../docs/configure/shared#usedexports→/configure/shared.html#usedexportsdata-fetch/consumer.mdx(zh/en):/integrations/framework/modernjs→/integrations/framework/modernjs/index.htmldata-fetch/provider-tip.mdx(zh/en):/integrations/build-tool/rslib#ssr→/integrations/build-tool/rslib.html#ssr;/integrations/framework/modernjs→/integrations/framework/modernjs/index.html摘要
docs/[lang]/_components/**下的片段文档,里面仍残留相对路径和缺少.html的内部链接。.html的绝对路径,与站点其他文档保持一致:secondary-build.mdx(中/英):../../../docs/configure/shared#usedexports→/configure/shared.html#usedexportsdata-fetch/consumer.mdx(中/英):/integrations/framework/modernjs→/integrations/framework/modernjs/index.htmldata-fetch/provider-tip.mdx(中/英):/integrations/build-tool/rslib#ssr→/integrations/build-tool/rslib.html#ssr;/integrations/framework/modernjs→/integrations/framework/modernjs/index.htmlTest plan
pnpm run serve:websiteand verify each updated link resolves to the right anchor in both/zh/and/en/builds._componentspartials (data-fetch guide, shared tree-shaking guide) to confirm no broken links remain.