Skip to content

Commit a7407cb

Browse files
committed
docs: update Chinese documentation links to point to release-v4
1 parent 141ac96 commit a7407cb

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

docs/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
'/ru-ru/(.*)':
8080
'https://raw.githubusercontent.com/docsifyjs/docs-ru/master/$1',
8181
'/zh-cn/(.*)':
82-
'https://cdn.jsdelivr.net/gh/docsifyjs/docs-zh@master/$1',
82+
'https://cdn.jsdelivr.net/gh/docsifyjs/docs-zh@release-v4/$1',
8383
},
8484
auto2top: true,
8585
coverpage: true,
@@ -184,10 +184,10 @@
184184
} else if (/jsdelivr\.net/.test(vm.route.file)) {
185185
url = vm.route.file
186186
.replace('cdn.jsdelivr.net/gh', 'github.com')
187-
.replace('@master', '/blob/master');
187+
.replace('@release-v4', '/blob/release-v4');
188188
} else {
189189
url =
190-
'https://github.com/docsifyjs/docsify/blob/develop/docs/' +
190+
'https://github.com/docsifyjs/docsify/blob/release-v4/docs/' +
191191
vm.route.file;
192192
}
193193
var editHtml = '[:memo: Edit Document](' + url + ')\n';

index.html

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
'/ru-ru/(.*)':
4848
'https://raw.githubusercontent.com/docsifyjs/docs-ru/master/$1',
4949
'/zh-cn/(.*)':
50-
'https://cdn.jsdelivr.net/gh/docsifyjs/docs-zh@master/$1',
50+
'https://cdn.jsdelivr.net/gh/docsifyjs/docs-zh@release-v4/$1',
5151
},
5252
auto2top: true,
5353
basePath: '/docs/',
@@ -95,19 +95,18 @@
9595
} else if (/jsdelivr\.net/.test(vm.route.file)) {
9696
url = vm.route.file
9797
.replace('cdn.jsdelivr.net/gh', 'github.com')
98-
.replace('@master', '/blob/master');
98+
.replace('@release-v4', '/blob/release-v4');
9999
} else {
100100
url =
101-
'https://github.com/docsifyjs/docsify/blob/develop/docs/' +
101+
'https://github.com/docsifyjs/docsify/blob/release-v4/docs/' +
102102
vm.route.file;
103103
}
104104
var editHtml = '[:memo: Edit Document](' + url + ')\n';
105105
return (
106106
editHtml +
107107
html +
108108
'\n\n----\n\n' +
109-
'<a href="https://docsify.js.org" target="_blank" style="color: inherit; font-weight: normal; text-decoration: none;">Powered by docsify</a>\n\n' +
110-
'<a href="https://vercel.com/?utm_source=docsifyjs&utm_campaign=oss" target="_blank" title="Vercel has given us a Pro account"><img src="/docs/_media/powered-by-vercel.svg" alt="Vercel" width="150"></a>'
109+
'<a href="https://docsify.js.org" target="_blank" style="color: inherit; font-weight: normal; text-decoration: none;">Powered by docsify</a>'
111110
);
112111
});
113112
},

0 commit comments

Comments
 (0)