|
9 | 9 | <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
|
10 | 10 | <meta name="keywords" content="doc,docs,documentation,gitbook,creator,generator,github,jekyll,github-pages">
|
11 | 11 | <meta name="description" content="A magical documentation generator.">
|
12 |
| - <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> |
| 12 | + <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0"> |
13 | 13 | <link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify/lib/themes/vue.css" title="vue">
|
14 | 14 | <link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify/lib/themes/dark.css" title="dark" disabled>
|
15 | 15 | <link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify/lib/themes/buble.css" title="buble" disabled>
|
16 | 16 | <link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify/lib/themes/pure.css" title="pure" disabled>
|
17 |
| - |
| 17 | + |
18 | 18 | <script src="//cdn.jsdelivr.net/npm/docsify-plugin-codefund/index.js"></script>
|
19 |
| - <link rel="stylesheet" href="//cdn.jsdelivr.net/npm/[email protected]/dist/style.css"/> |
| 19 | + |
20 | 20 | <style>
|
21 | 21 | nav.app-nav li ul {
|
22 | 22 | min-width: 100px;
|
|
32 | 32 | '.*?/awesome': 'https://raw.githubusercontent.com/docsifyjs/awesome-docsify/master/README.md',
|
33 | 33 | '.*?/changelog': 'https://raw.githubusercontent.com/docsifyjs/docsify/master/CHANGELOG.md',
|
34 | 34 | '/.*/_navbar.md': '/_navbar.md',
|
35 |
| - '/zh-cn/(.*)': 'https://raw.githubusercontent.com/docsifyjs/docs-zh/master/$1', |
| 35 | + '/zh-cn/(.*)': 'https://cdn.jsdelivr.net/gh/docsifyjs/docs-zh@master/$1', |
36 | 36 | '/de-de/(.*)': 'https://raw.githubusercontent.com/docsifyjs/docs-de/master/$1',
|
37 | 37 | '/ru/(.*)': 'https://raw.githubusercontent.com/docsifyjs/docs-ru/master/$1',
|
38 | 38 | '/es/(.*)': 'https://raw.githubusercontent.com/docsifyjs/docs-es/master/$1'
|
|
64 | 64 | '/': 'Search'
|
65 | 65 | }
|
66 | 66 | },
|
67 |
| - darkMode: { |
68 |
| - light: { |
69 |
| - toggleBtnBg: '#42b983' |
70 |
| - } |
71 |
| - }, |
72 | 67 | formatUpdated: '{MM}/{DD} {HH}:{mm}',
|
73 | 68 | plugins: [
|
74 | 69 | function (hook, vm) {
|
|
77 | 72 | url = vm.route.file
|
78 | 73 | .replace('raw.githubusercontent.com', 'github.com')
|
79 | 74 | .replace(/\/master/, '/blob/master')
|
| 75 | + } else if (/jsdelivr\.net/.test(vm.route.file)) { |
| 76 | + url = vm.route.file |
| 77 | + .replace('cdn.jsdelivr.net/gh', 'github.com') |
| 78 | + .replace('@master', '/blob/master') |
80 | 79 | } else {
|
81 | 80 | url = 'https://github.com/docsifyjs/docsify/blob/master/docs/' + vm.route.file
|
82 | 81 | }
|
|
99 | 98 | <script src="//cdn.jsdelivr.net/npm/prismjs/components/prism-bash.min.js"></script>
|
100 | 99 | <script src="//cdn.jsdelivr.net/npm/prismjs/components/prism-markdown.min.js"></script>
|
101 | 100 | <script src="//cdn.jsdelivr.net/npm/prismjs/components/prism-nginx.min.js"></script>
|
102 |
| - <script src=" https://cdn.jsdelivr.net/npm/[email protected]/dist/index.js" ></script> |
103 | 101 | <script>
|
104 | 102 | ((window.gitter = {}).chat = {}).options = {
|
105 | 103 | room: 'docsifyjs/Lobby'
|
|
0 commit comments