mirror of
https://github.com/docsifyjs/docsify.git
synced 2025-12-08 19:55:52 +00:00
docs: update Chinese documentation links to point to release-v4
This commit is contained in:
parent
141ac96add
commit
a7407cbee5
@ -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';
|
||||
|
||||
@ -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' +
|
||||
'<a href="https://docsify.js.org" target="_blank" style="color: inherit; font-weight: normal; text-decoration: none;">Powered by docsify</a>\n\n' +
|
||||
'<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>'
|
||||
'<a href="https://docsify.js.org" target="_blank" style="color: inherit; font-weight: normal; text-decoration: none;">Powered by docsify</a>'
|
||||
);
|
||||
});
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user