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

jeffreyh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris-website.git


The following commit(s) were added to refs/heads/master by this push:
     new c75053f4e2f fix:edit link not found (#3105)
c75053f4e2f is described below

commit c75053f4e2fdfb73901aafc44718958d8cb7e721
Author: yangon <[email protected]>
AuthorDate: Tue Nov 18 14:05:41 2025 +0800

    fix:edit link not found (#3105)
---
 src/theme/DocItem/Layout/pathTransfer.ts | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/theme/DocItem/Layout/pathTransfer.ts 
b/src/theme/DocItem/Layout/pathTransfer.ts
index 3b931459c66..6fd48e90778 100644
--- a/src/theme/DocItem/Layout/pathTransfer.ts
+++ b/src/theme/DocItem/Layout/pathTransfer.ts
@@ -1,7 +1,9 @@
 const transformPathWithoutZhCN = (pathname: string): string => {
     if(pathname.startsWith('/docs')){
         const pathWithoutDocs = pathname.replace('/docs', '');
-        if (pathname.includes('/3.x')) {
+        if(pathname.includes('/4.x')){
+            return 
`/versioned_docs/version-4.x${pathWithoutDocs.replace('/4.x', '')}.md`;
+        }else if (pathname.includes('/3.x')) {
             return 
`/versioned_docs/version-3.x${pathWithoutDocs.replace('/3.x', '')}.md`;
         } else if (pathname.includes('/2.0')) {
             return 
`/versioned_docs/version-2.0${pathWithoutDocs.replace('/2.0', '')}.md`;
@@ -19,7 +21,9 @@ const transformPathWithoutZhCN = (pathname: string): string 
=> {
 };
 const transformPathWithZhCN = (pathname: string): string => {
     if (pathname.startsWith('/zh-CN/docs')) {
-        if (pathname.includes('/3.x')) {
+        if(pathname.includes('/4.x')){
+            return 
`/i18n/zh-CN/docusaurus-plugin-content-docs/version-4.x${pathname.replace('/zh-CN/docs/4.x',
 '')}.md`;
+        }else if (pathname.includes('/3.x')) {
             return 
`/i18n/zh-CN/docusaurus-plugin-content-docs/version-3.x${pathname.replace('/zh-CN/docs/3.x',
 '')}.md`;
         } else if (pathname.includes('/2.0')) {
             return 
`/i18n/zh-CN/docusaurus-plugin-content-docs/version-2.0${pathname.replace('/zh-CN/docs/2.0',
 '')}.md`;


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to