|
21 | 21 | <script> |
22 | 22 | window.$docsify = { |
23 | 23 | alias: { |
24 | | - '.*?/changelog': 'https://raw.githubusercontent.com/docsifyjs/docsify/master/CHANGELOG', |
| 24 | + '.*?/awesome': 'https://raw.githubusercontent.com/docsifyjs/awesome-docsify/master/README.md', |
| 25 | + '.*?/changelog': 'https://raw.githubusercontent.com/docsifyjs/docsify/master/CHANGELOG.md', |
25 | 26 | '/.*/_navbar.md': '/_navbar.md', |
26 | 27 | '/zh-cn/(.*)': 'https://raw.githubusercontent.com/docsifyjs/docs-zh/master/$1', |
27 | 28 | '/de-de/(.*)': 'https://raw.githubusercontent.com/docsifyjs/docs-de/master/$1', |
28 | 29 | '/ru/(.*)': 'https://raw.githubusercontent.com/docsifyjs/docs-ru/master/$1', |
29 | 30 | '/es/(.*)': 'https://raw.githubusercontent.com/docsifyjs/docs-es/master/$1' |
30 | 31 | }, |
31 | | - notFoundPage: '_404.html', |
32 | 32 | auto2top: true, |
33 | 33 | basePath: '/docs/', |
| 34 | + coverpage: true, |
34 | 35 | executeScript: true, |
35 | | - loadNavbar: true, |
36 | 36 | loadSidebar: true, |
37 | | - coverpage: true, |
38 | | - name: 'docsify', |
39 | | - subMaxLevel: 2, |
| 37 | + loadNavbar: true, |
40 | 38 | mergeNavbar: true, |
| 39 | + maxLevel: 4, |
| 40 | + subMaxLevel: 2, |
| 41 | + name: 'docsify', |
| 42 | + search: { |
| 43 | + noData: { |
| 44 | + '/de-de/': 'Keine Ergebnisse!', |
| 45 | + '/zh-cn/': '没有结果!', |
| 46 | + '/': 'No results!' |
| 47 | + }, |
| 48 | + paths: 'auto', |
| 49 | + placeholder: { |
| 50 | + '/de-de/': 'Suche', |
| 51 | + '/zh-cn/': '搜索', |
| 52 | + '/': 'Search' |
| 53 | + } |
| 54 | + }, |
41 | 55 | formatUpdated: '{MM}/{DD} {HH}:{mm}', |
42 | 56 | plugins: [ |
43 | 57 | function (hook, vm) { |
44 | 58 | hook.beforeEach(function (html) { |
45 | | - var url |
46 | 59 | if (/githubusercontent\.com/.test(vm.route.file)) { |
47 | 60 | url = vm.route.file |
48 | 61 | .replace('raw.githubusercontent.com', 'github.com') |
49 | 62 | .replace(/\/master/, '/blob/master') |
50 | 63 | } else { |
51 | | - url = 'https://github.com/docsifyjs/docsify/blob/master/' + vm.route.file |
| 64 | + url = 'https://github.com/docsifyjs/docsify/blob/master/docs/' + vm.route.file |
52 | 65 | } |
53 | 66 | var editHtml = '[:memo: Edit Document](' + url + ')\n' |
54 | 67 |
|
55 | 68 | return editHtml |
56 | 69 | + html |
57 | 70 | + '\n\n----\n\n' |
58 | | - + 'Last modified {docsify-updated} ' |
59 | | - + editHtml |
| 71 | + + '<a href="https://docsify.js.org" target="_blank" style="color: inherit; font-weight: normal; text-decoration: none;">Powered by docsify</a>' |
60 | 72 | }) |
61 | | - } |
| 73 | + }, |
62 | 74 | ] |
63 | 75 | } |
64 | 76 | </script> |
65 | 77 | <script src="/lib/docsify.js"></script> |
| 78 | + <script src="/lib/plugins/search.js"></script> |
| 79 | + <script src="//unpkg.com/prismjs/components/prism-bash.min.js"></script> |
| 80 | + <script src="//unpkg.com/prismjs/components/prism-markdown.min.js"></script> |
| 81 | + <script src="//unpkg.com/prismjs/components/prism-nginx.min.js"></script> |
66 | 82 | </body> |
67 | 83 |
|
68 | 84 | </html> |
0 commit comments