|
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"> |
13 | | - <link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify/lib/themes/vue.css" title="vue"> |
| 12 | + |
| 13 | + <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0"> |
| 14 | + <link |
| 15 | + rel="stylesheet" |
| 16 | + href="//cdn.jsdelivr.net/npm/docsify-darklight-theme@3/dist/docsify-style.min.css" |
| 17 | + title="docsify-darklight-theme" |
| 18 | + type="text/css" |
| 19 | + /> |
| 20 | + <link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify/lib/themes/vue.css" title="vue" disabled> |
14 | 21 | <link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify/lib/themes/dark.css" title="dark" disabled> |
15 | 22 | <link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify/lib/themes/buble.css" title="buble" disabled> |
16 | 23 | <link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify/lib/themes/pure.css" title="pure" disabled> |
17 | | - |
| 24 | + |
18 | 25 | <script src="//cdn.jsdelivr.net/npm/docsify-plugin-codefund/index.js"></script> |
19 | | - <link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify-dark-mode@0.6.1/dist/style.css"/> |
20 | 26 | <style> |
21 | 27 | nav.app-nav li ul { |
22 | 28 | min-width: 100px; |
|
32 | 38 | '.*?/awesome': 'https://raw.githubusercontent.com/docsifyjs/awesome-docsify/master/README.md', |
33 | 39 | '.*?/changelog': 'https://raw.githubusercontent.com/docsifyjs/docsify/master/CHANGELOG.md', |
34 | 40 | '/.*/_navbar.md': '/_navbar.md', |
35 | | - '/zh-cn/(.*)': 'https://raw.githubusercontent.com/docsifyjs/docs-zh/master/$1', |
| 41 | + '/zh-cn/(.*)': 'https://cdn.jsdelivr.net/gh/docsifyjs/docs-zh@master/$1', |
36 | 42 | '/de-de/(.*)': 'https://raw.githubusercontent.com/docsifyjs/docs-de/master/$1', |
37 | 43 | '/ru/(.*)': 'https://raw.githubusercontent.com/docsifyjs/docs-ru/master/$1', |
38 | 44 | '/es/(.*)': 'https://raw.githubusercontent.com/docsifyjs/docs-es/master/$1' |
|
64 | 70 | '/': 'Search' |
65 | 71 | } |
66 | 72 | }, |
67 | | - darkMode: { |
68 | | - light: { |
69 | | - toggleBtnBg: '#42b983' |
70 | | - } |
| 73 | + darklightTheme: { |
| 74 | + bodyFontSize : '15px', |
71 | 75 | }, |
72 | 76 | formatUpdated: '{MM}/{DD} {HH}:{mm}', |
73 | 77 | plugins: [ |
|
77 | 81 | url = vm.route.file |
78 | 82 | .replace('raw.githubusercontent.com', 'github.com') |
79 | 83 | .replace(/\/master/, '/blob/master') |
| 84 | + } else if (/jsdelivr\.net/.test(vm.route.file)) { |
| 85 | + url = vm.route.file |
| 86 | + .replace('cdn.jsdelivr.net/gh', 'github.com') |
| 87 | + .replace('@master', '/blob/master') |
80 | 88 | } else { |
81 | 89 | url = 'https://github.com/docsifyjs/docsify/blob/master/docs/' + vm.route.file |
82 | 90 | } |
|
99 | 107 | <script src="//cdn.jsdelivr.net/npm/prismjs/components/prism-bash.min.js"></script> |
100 | 108 | <script src="//cdn.jsdelivr.net/npm/prismjs/components/prism-markdown.min.js"></script> |
101 | 109 | <script src="//cdn.jsdelivr.net/npm/prismjs/components/prism-nginx.min.js"></script> |
102 | | - <script src="https://cdn.jsdelivr.net/npm/docsify-dark-mode@0.6.1/dist/index.js"></script> |
| 110 | + <script |
| 111 | + src="//cdn.jsdelivr.net/npm/docsify-darklight-theme@3/dist/index.min.js" |
| 112 | + type="text/javascript"> |
| 113 | + </script> |
103 | 114 | <script> |
104 | 115 | ((window.gitter = {}).chat = {}).options = { |
105 | 116 | room: 'docsifyjs/Lobby' |
|
0 commit comments