You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by sh...@apache.org on 2026/07/02 07:22:28 UTC

(seatunnel-website) branch zsh-fix-docusaurus-redirects-dep created (now 170d82bc12cd)

This is an automated email from the ASF dual-hosted git repository.

zhangshenghang pushed a change to branch zsh-fix-docusaurus-redirects-dep
in repository https://gitbox.apache.org/repos/asf/seatunnel-website.git


      at 170d82bc12cd fix: restore website redirect plugin build

This branch includes the following new commits:

     new 170d82bc12cd fix: restore website redirect plugin build

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(seatunnel-website) 01/01: fix: restore website redirect plugin build

Posted by sh...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

zhangshenghang pushed a commit to branch zsh-fix-docusaurus-redirects-dep
in repository https://gitbox.apache.org/repos/asf/seatunnel-website.git

commit 170d82bc12cd1d762596a9fa1df0eb521f97e4fc
Author: Shenghang <sh...@apache.org>
AuthorDate: Thu Jul 2 15:22:13 2026 +0800

    fix: restore website redirect plugin build
---
 docusaurus.config.js | 39 +++++++++++++++++----------------------
 package-lock.json    | 39 +++++++++++++++++++++++++++++++++++++++
 package.json         |  1 +
 3 files changed, 57 insertions(+), 22 deletions(-)

diff --git a/docusaurus.config.js b/docusaurus.config.js
index 359b9f5d2afc..369392b5d124 100644
--- a/docusaurus.config.js
+++ b/docusaurus.config.js
@@ -80,6 +80,20 @@ function getZhBlogExcludePatterns() {
   return exclude;
 }
 
+const userCaseRedirects = {
+  "/blog": ["/user_cases"],
+  "/blog/tags": ["/user_cases/tags"],
+  "/blog/The-practice-of-SeaTunnel-in-Vip": [
+    "/user_cases/The-practice-of-SeaTunnel-in-Vip",
+  ],
+  "/blog/SeaTunnel 在唯品会的实践": [
+    "/user_cases/The-practice-of-SeaTunnel-in-Vip",
+  ],
+  "/blog/tags/vip": ["/user_cases/tags/vip"],
+  "/blog/tags/唯品会": ["/user_cases/tags/vip"],
+  "/blog/tags/click-house": ["/user_cases/tags/click-house"],
+};
+
 function getDocsEditUrl({ version, versionDocsDirPath, docPath, locale }) {
   if (version === "current") {
     const sourceLocaleDir = locale === "zh-CN" ? "zh" : "en";
@@ -447,28 +461,9 @@ const config = {
     [
       "@docusaurus/plugin-client-redirects",
       {
-        redirects: [
-          {
-            from: "/user_cases",
-            to: "/blog",
-          },
-          {
-            from: "/user_cases/tags",
-            to: "/blog/tags",
-          },
-          {
-            from: "/user_cases/The-practice-of-SeaTunnel-in-Vip",
-            to: "/blog/The-practice-of-SeaTunnel-in-Vip",
-          },
-          {
-            from: "/user_cases/tags/vip",
-            to: "/blog/tags/vip",
-          },
-          {
-            from: "/user_cases/tags/click-house",
-            to: "/blog/tags/click-house",
-          },
-        ],
+        createRedirects(existingPath) {
+          return userCaseRedirects[existingPath] || [];
+        },
       },
     ],
   ],
diff --git a/package-lock.json b/package-lock.json
index 4e363b332d54..69cf569cbf76 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -9,6 +9,7 @@
       "version": "0.0.0",
       "dependencies": {
         "@docusaurus/core": "^2.4.3",
+        "@docusaurus/plugin-client-redirects": "^2.4.3",
         "@docusaurus/plugin-content-docs": "^2.4.3",
         "@docusaurus/preset-classic": "^2.4.3",
         "@docusaurus/theme-mermaid": "^2.4.3",
@@ -2262,6 +2263,44 @@
         "react-dom": "*"
       }
     },
+    "node_modules/@docusaurus/plugin-client-redirects": {
+      "version": "2.4.3",
+      "resolved": "https://registry.npmmirror.com/@docusaurus/plugin-client-redirects/-/plugin-client-redirects-2.4.3.tgz",
+      "integrity": "sha512-iCwc/zH8X6eNtLYdyUJFY6+GbsbRgMgvAC/TmSmCYTmwnoN5Y1Bc5OwUkdtoch0XKizotJMRAmGIAhP8sAetdQ==",
+      "license": "MIT",
+      "dependencies": {
+        "@docusaurus/core": "2.4.3",
+        "@docusaurus/logger": "2.4.3",
+        "@docusaurus/utils": "2.4.3",
+        "@docusaurus/utils-common": "2.4.3",
+        "@docusaurus/utils-validation": "2.4.3",
+        "eta": "^2.0.0",
+        "fs-extra": "^10.1.0",
+        "lodash": "^4.17.21",
+        "tslib": "^2.4.0"
+      },
+      "engines": {
+        "node": ">=16.14"
+      },
+      "peerDependencies": {
+        "react": "^16.8.4 || ^17.0.0",
+        "react-dom": "^16.8.4 || ^17.0.0"
+      }
+    },
+    "node_modules/@docusaurus/plugin-client-redirects/node_modules/fs-extra": {
+      "version": "10.1.0",
+      "resolved": "https://registry.npmmirror.com/fs-extra/-/fs-extra-10.1.0.tgz",
+      "integrity": "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==",
+      "license": "MIT",
+      "dependencies": {
+        "graceful-fs": "^4.2.0",
+        "jsonfile": "^6.0.1",
+        "universalify": "^2.0.0"
+      },
+      "engines": {
+        "node": ">=12"
+      }
+    },
     "node_modules/@docusaurus/plugin-content-blog": {
       "version": "2.4.3",
       "license": "MIT",
diff --git a/package.json b/package.json
index adc71d99cebb..900ef9d7db5a 100644
--- a/package.json
+++ b/package.json
@@ -26,6 +26,7 @@
   },
   "dependencies": {
     "@docusaurus/core": "^2.4.3",
+    "@docusaurus/plugin-client-redirects": "^2.4.3",
     "@docusaurus/plugin-content-docs": "^2.4.3",
     "@docusaurus/preset-classic": "^2.4.3",
     "@docusaurus/theme-mermaid": "^2.4.3",