From a7407cbee530a830b0259f61aceaba32d35966ee Mon Sep 17 00:00:00 2001 From: Luffy <52o@qq52o.cn> Date: Thu, 8 May 2025 17:09:52 +0800 Subject: [PATCH 1/2] docs: update Chinese documentation links to point to release-v4 --- docs/index.html | 6 +++--- index.html | 9 ++++----- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/docs/index.html b/docs/index.html index e8ed4f1564..0ea67c7051 100644 --- a/docs/index.html +++ b/docs/index.html @@ -79,7 +79,7 @@ '/ru-ru/(.*)': 'https://raw.githubusercontent.com/docsifyjs/docs-ru/master/$1', '/zh-cn/(.*)': - 'https://cdn.jsdelivr.net/gh/docsifyjs/docs-zh@master/$1', + 'https://cdn.jsdelivr.net/gh/docsifyjs/docs-zh@release-v4/$1', }, auto2top: true, coverpage: true, @@ -184,10 +184,10 @@ } else if (/jsdelivr\.net/.test(vm.route.file)) { url = vm.route.file .replace('cdn.jsdelivr.net/gh', 'github.com') - .replace('@master', '/blob/master'); + .replace('@release-v4', '/blob/release-v4'); } else { url = - 'https://github.com/docsifyjs/docsify/blob/develop/docs/' + + 'https://github.com/docsifyjs/docsify/blob/release-v4/docs/' + vm.route.file; } var editHtml = '[:memo: Edit Document](' + url + ')\n'; diff --git a/index.html b/index.html index 1e112b2338..4925e3cf8a 100644 --- a/index.html +++ b/index.html @@ -47,7 +47,7 @@ '/ru-ru/(.*)': 'https://raw.githubusercontent.com/docsifyjs/docs-ru/master/$1', '/zh-cn/(.*)': - 'https://cdn.jsdelivr.net/gh/docsifyjs/docs-zh@master/$1', + 'https://cdn.jsdelivr.net/gh/docsifyjs/docs-zh@release-v4/$1', }, auto2top: true, basePath: '/docs/', @@ -95,10 +95,10 @@ } else if (/jsdelivr\.net/.test(vm.route.file)) { url = vm.route.file .replace('cdn.jsdelivr.net/gh', 'github.com') - .replace('@master', '/blob/master'); + .replace('@release-v4', '/blob/release-v4'); } else { url = - 'https://github.com/docsifyjs/docsify/blob/develop/docs/' + + 'https://github.com/docsifyjs/docsify/blob/release-v4/docs/' + vm.route.file; } var editHtml = '[:memo: Edit Document](' + url + ')\n'; @@ -106,8 +106,7 @@ editHtml + html + '\n\n----\n\n' + - 'Powered by docsify\n\n' + - 'Vercel' + 'Powered by docsify' ); }); }, From 2370b247b3519502cce8086a434d0e3fc84fdf7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=82=BF=202014=20=F0=9F=87=BA=F0=9F=87=B8=20=F0=9F=87=B0?= =?UTF-8?q?=F0=9F=87=B7=20=F0=9F=87=BF=F0=9F=87=B2=20=F0=9F=87=B9?= =?UTF-8?q?=F0=9F=87=AD?= <116435491+5atoshiNakamoto@users.noreply.github.com> Date: Tue, 28 Apr 2026 01:29:29 +0700 Subject: [PATCH 2/2] Fixed typo for 'Edit on GitHub' section small typo --- docs/plugins.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/plugins.md b/docs/plugins.md index 3db7ff56b2..28c0d73661 100644 --- a/docs/plugins.md +++ b/docs/plugins.md @@ -125,7 +125,7 @@ Exclude the special image ## Edit on github -Add `Edit on github` button on every pages. Provided by [@njleonzhang](https://github.com/njleonzhang), see this [document](https://github.com/njleonzhang/docsify-edit-on-github) +Add `Edit on github` button on every page. Provided by [@njleonzhang](https://github.com/njleonzhang), see this [document](https://github.com/njleonzhang/docsify-edit-on-github) ## Demo code with instant preview and jsfiddle integration