From b3cbbead14cf0e53daa26250d11a90361539b70b Mon Sep 17 00:00:00 2001 From: "gaoyuan.1226" Date: Tue, 13 Aug 2024 19:34:56 +0800 Subject: [PATCH 1/2] docs: remove examples page --- website/docs/en/guide/compatibility/_meta.json | 2 +- website/docs/en/guide/compatibility/examples.mdx | 7 ------- website/docs/en/guide/compatibility/plugin.mdx | 2 ++ website/docs/zh/guide/compatibility/_meta.json | 2 +- website/docs/zh/guide/compatibility/examples.mdx | 7 ------- website/docs/zh/guide/compatibility/plugin.mdx | 2 ++ 6 files changed, 6 insertions(+), 16 deletions(-) delete mode 100644 website/docs/en/guide/compatibility/examples.mdx delete mode 100644 website/docs/zh/guide/compatibility/examples.mdx diff --git a/website/docs/en/guide/compatibility/_meta.json b/website/docs/en/guide/compatibility/_meta.json index 224dd5ed944..639dc6ea346 100644 --- a/website/docs/en/guide/compatibility/_meta.json +++ b/website/docs/en/guide/compatibility/_meta.json @@ -1 +1 @@ -["plugin", "examples", "config-diff"] +["plugin", "config-diff"] diff --git a/website/docs/en/guide/compatibility/examples.mdx b/website/docs/en/guide/compatibility/examples.mdx deleted file mode 100644 index 87d366d5cd1..00000000000 --- a/website/docs/en/guide/compatibility/examples.mdx +++ /dev/null @@ -1,7 +0,0 @@ -import { CompatibleCardList } from '@components/RspackCompatible.tsx'; - -# Compatibility example - -This page shows examples of [rspack-compat](https://github.com/web-infra-dev/rspack-compat/tree/main). This repository is intended to represent rspack's compatibility with the webpack ecosystem, and you can click on each plugin link to see its supported usage. - - diff --git a/website/docs/en/guide/compatibility/plugin.mdx b/website/docs/en/guide/compatibility/plugin.mdx index f0c21e2dc4e..69e0fdc7871 100644 --- a/website/docs/en/guide/compatibility/plugin.mdx +++ b/website/docs/en/guide/compatibility/plugin.mdx @@ -10,4 +10,6 @@ Note that the table only lists some common community plugins. For plugins that a +You can view examples of common plugins in the [rspack-examples](https://github.com/rspack-contrib/rspack-examples). + Additionally, you can check out the community Rspack plugins at [awesome-rspack](https://github.com/web-infra-dev/awesome-rspack). diff --git a/website/docs/zh/guide/compatibility/_meta.json b/website/docs/zh/guide/compatibility/_meta.json index 224dd5ed944..639dc6ea346 100644 --- a/website/docs/zh/guide/compatibility/_meta.json +++ b/website/docs/zh/guide/compatibility/_meta.json @@ -1 +1 @@ -["plugin", "examples", "config-diff"] +["plugin", "config-diff"] diff --git a/website/docs/zh/guide/compatibility/examples.mdx b/website/docs/zh/guide/compatibility/examples.mdx deleted file mode 100644 index 59b9acbfc17..00000000000 --- a/website/docs/zh/guide/compatibility/examples.mdx +++ /dev/null @@ -1,7 +0,0 @@ -import { CompatibleCardList } from '@components/RspackCompatible.tsx'; - -# 兼容性示例 - -此页面展示了 [rspack-compat](https://github.com/web-infra-dev/rspack-compat/tree/main) 的示例。这个仓库旨在体现 Rspack 对 webpack 生态的兼容性,你可以点击每个插件链接,查看其支持的用法。 - - diff --git a/website/docs/zh/guide/compatibility/plugin.mdx b/website/docs/zh/guide/compatibility/plugin.mdx index 4f21fdf71b7..18cfe070e43 100644 --- a/website/docs/zh/guide/compatibility/plugin.mdx +++ b/website/docs/zh/guide/compatibility/plugin.mdx @@ -10,4 +10,6 @@ Rspack 对 webpack 内置插件的支持情况可以参考 [Webpack 内置插件 +你可以在 [rspack-examples](https://github.com/rspack-contrib/rspack-examples) 中查看常用插件的使用示例。 + 此外,你可以在 [awesome-rspack](https://github.com/web-infra-dev/awesome-rspack) 中查看社区提供的 Rspack 插件。 From 1c3c0de0d7762b240553ceed9d5e1c553e4dd06c Mon Sep 17 00:00:00 2001 From: "gaoyuan.1226" Date: Tue, 13 Aug 2024 19:35:32 +0800 Subject: [PATCH 2/2] docs: update --- website/docs/en/guide/compatibility/plugin.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/docs/en/guide/compatibility/plugin.mdx b/website/docs/en/guide/compatibility/plugin.mdx index 69e0fdc7871..d7ff15de2b9 100644 --- a/website/docs/en/guide/compatibility/plugin.mdx +++ b/website/docs/en/guide/compatibility/plugin.mdx @@ -10,6 +10,6 @@ Note that the table only lists some common community plugins. For plugins that a -You can view examples of common plugins in the [rspack-examples](https://github.com/rspack-contrib/rspack-examples). +You can view examples of common plugins at [rspack-examples](https://github.com/rspack-contrib/rspack-examples). Additionally, you can check out the community Rspack plugins at [awesome-rspack](https://github.com/web-infra-dev/awesome-rspack).