From 0e97aa78a9e3146a71d7b6bfa57ad5eb8f7eb080 Mon Sep 17 00:00:00 2001 From: kongjiacong Date: Tue, 16 Jun 2026 12:52:57 +0800 Subject: [PATCH] docs(website-new): normalize links in _components mdx Replace relative paths and anchor-only links in docs/[lang]/_components with absolute `.html` URLs to match the convention introduced in #4817. --- apps/website-new/docs/en/_components/data-fetch/consumer.mdx | 2 +- .../website-new/docs/en/_components/data-fetch/provider-tip.mdx | 2 +- apps/website-new/docs/en/_components/secondary-build.mdx | 2 +- apps/website-new/docs/zh/_components/data-fetch/consumer.mdx | 2 +- .../website-new/docs/zh/_components/data-fetch/provider-tip.mdx | 2 +- apps/website-new/docs/zh/_components/secondary-build.mdx | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/apps/website-new/docs/en/_components/data-fetch/consumer.mdx b/apps/website-new/docs/en/_components/data-fetch/consumer.mdx index 23ef3f1c630..cdb0332a1e5 100644 --- a/apps/website-new/docs/en/_components/data-fetch/consumer.mdx +++ b/apps/website-new/docs/en/_components/data-fetch/consumer.mdx @@ -1,5 +1,5 @@ ::: info Note -Currently, only [Modern.js](/integrations/framework/modernjs) supports data fetching in SSR environments. +Currently, only [Modern.js](/integrations/framework/modernjs/index.html) supports data fetching in SSR environments. ::: In the consumer, we need to use the [createLazyComponent](/guide/bridge/react/load-component.html#what-is-createlazycomponent) API to load the remote component and fetch its data. diff --git a/apps/website-new/docs/en/_components/data-fetch/provider-tip.mdx b/apps/website-new/docs/en/_components/data-fetch/provider-tip.mdx index 20c6044ae15..cf5f0c69d89 100644 --- a/apps/website-new/docs/en/_components/data-fetch/provider-tip.mdx +++ b/apps/website-new/docs/en/_components/data-fetch/provider-tip.mdx @@ -1,3 +1,3 @@ ::: tip -Producers can use [Rslib](/integrations/build-tool/rslib#ssr) and [Modern.js](/integrations/framework/modernjs). +Producers can use [Rslib](/integrations/build-tool/rslib.html#ssr) and [Modern.js](/integrations/framework/modernjs/index.html). ::: diff --git a/apps/website-new/docs/en/_components/secondary-build.mdx b/apps/website-new/docs/en/_components/secondary-build.mdx index 5020de26f92..e6a4294b09d 100644 --- a/apps/website-new/docs/en/_components/secondary-build.mdx +++ b/apps/website-new/docs/en/_components/secondary-build.mdx @@ -1,7 +1,7 @@ ## Producing a secondary tree-shaken shared artifact :::warning Note -If your goal is “tree-shake a shared dependency for a single application”, [usedExports](../../../docs/configure/shared#usedexports) is usually enough. +If your goal is “tree-shake a shared dependency for a single application”, [usedExports](/configure/shared.html#usedexports) is usually enough. This section is about generating a standalone secondary artifact that can be loaded at runtime on demand, and can be distributed or reused from the deployment side. ::: diff --git a/apps/website-new/docs/zh/_components/data-fetch/consumer.mdx b/apps/website-new/docs/zh/_components/data-fetch/consumer.mdx index 182bc8fa706..e81195c48cf 100644 --- a/apps/website-new/docs/zh/_components/data-fetch/consumer.mdx +++ b/apps/website-new/docs/zh/_components/data-fetch/consumer.mdx @@ -1,5 +1,5 @@ ::: info 注意 -目前仅 [Modern.js](/integrations/framework/modernjs) 支持在 SSR 环境下使用数据获取能力。 +目前仅 [Modern.js](/integrations/framework/modernjs/index.html) 支持在 SSR 环境下使用数据获取能力。 ::: 在消费者中,我们需要通过 [createLazyComponent](/guide/bridge/react/load-component.html#什么是-createlazycomponent) API 来加载远程组件,并获取数据。 diff --git a/apps/website-new/docs/zh/_components/data-fetch/provider-tip.mdx b/apps/website-new/docs/zh/_components/data-fetch/provider-tip.mdx index 3c7e3f39efe..30f8adc5d68 100644 --- a/apps/website-new/docs/zh/_components/data-fetch/provider-tip.mdx +++ b/apps/website-new/docs/zh/_components/data-fetch/provider-tip.mdx @@ -1,3 +1,3 @@ ::: tip -生产者可以使用 [Rslib](/integrations/build-tool/rslib#ssr) 和 [Modern.js](/integrations/framework/modernjs)。 +生产者可以使用 [Rslib](/integrations/build-tool/rslib.html#ssr) 和 [Modern.js](/integrations/framework/modernjs/index.html)。 ::: diff --git a/apps/website-new/docs/zh/_components/secondary-build.mdx b/apps/website-new/docs/zh/_components/secondary-build.mdx index 12f50962c1f..fcd95021035 100644 --- a/apps/website-new/docs/zh/_components/secondary-build.mdx +++ b/apps/website-new/docs/zh/_components/secondary-build.mdx @@ -1,7 +1,7 @@ ## 生成二次构建(secondary)共享产物 :::warning 注意 -如果你的诉求是“让单个应用按需裁剪共享依赖”,通常只需要配置 [usedExports](../../../docs/configure/shared#usedexports)。 +如果你的诉求是“让单个应用按需裁剪共享依赖”,通常只需要配置 [usedExports](/configure/shared.html#usedexports)。 本节介绍的是生成一份可被运行时按需加载的独立共享产物(secondary),用于在部署侧统一下发或复用。 :::