Skip to content

docs(website-new): normalize links in _components mdx#4823

Merged
2heal1 merged 1 commit into
module-federation:mainfrom
zllkjc:docs/format-link
Jun 16, 2026
Merged

docs(website-new): normalize links in _components mdx#4823
2heal1 merged 1 commit into
module-federation:mainfrom
zllkjc:docs/format-link

Conversation

@zllkjc

@zllkjc zllkjc commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Follow-up to docs: refresh docs and unify internal links #4817. The previous pass missed docs/[lang]/_components/**, which still contained relative paths and .html-less internal links.
  • Rewrite the remaining internal links to absolute paths with the .html suffix, matching the convention used elsewhere in the site.
    • secondary-build.mdx (zh/en): ../../../docs/configure/shared#usedexports/configure/shared.html#usedexports
    • data-fetch/consumer.mdx (zh/en): /integrations/framework/modernjs/integrations/framework/modernjs/index.html
    • data-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: refresh docs and unify internal links #4817 的后续修复。上一轮统一站内链接时遗漏了 docs/[lang]/_components/** 下的片段文档,里面仍残留相对路径和缺少 .html 的内部链接。
  • 将这些片段中的内部链接统一改写为带 .html 的绝对路径,与站点其他文档保持一致:
    • secondary-build.mdx(中/英):../../../docs/configure/shared#usedexports/configure/shared.html#usedexports
    • data-fetch/consumer.mdx(中/英):/integrations/framework/modernjs/integrations/framework/modernjs/index.html
    • data-fetch/provider-tip.mdx(中/英):/integrations/build-tool/rslib#ssr/integrations/build-tool/rslib.html#ssr/integrations/framework/modernjs/integrations/framework/modernjs/index.html

Test plan

  • pnpm run serve:website and verify each updated link resolves to the right anchor in both /zh/ and /en/ builds.
  • Spot-check the pages that include these _components partials (data-fetch guide, shared tree-shaking guide) to confirm no broken links remain.

Replace relative paths and anchor-only links in docs/[lang]/_components
with absolute `.html` URLs to match the convention introduced in module-federation#4817.
@netlify

netlify Bot commented Jun 16, 2026

Copy link
Copy Markdown

Deploy Preview for module-federation-docs ready!

Name Link
🔨 Latest commit 0e97aa7
🔍 Latest deploy log https://app.netlify.com/projects/module-federation-docs/deploys/6a30d6c761d8ec00089a492a
😎 Deploy Preview https://deploy-preview-4823--module-federation-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@changeset-bot

changeset-bot Bot commented Jun 16, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 0e97aa7

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@2heal1 2heal1 merged commit 1288d6e into module-federation:main Jun 16, 2026
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants