Skip to content

Commit e8d850c

Browse files
committed
align dev index.html to production
1 parent 514a027 commit e8d850c

File tree

1 file changed

+27
-11
lines changed

1 file changed

+27
-11
lines changed

index.html

Lines changed: 27 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,48 +21,64 @@
2121
<script>
2222
window.$docsify = {
2323
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',
2526
'/.*/_navbar.md': '/_navbar.md',
2627
'/zh-cn/(.*)': 'https://raw.githubusercontent.com/docsifyjs/docs-zh/master/$1',
2728
'/de-de/(.*)': 'https://raw.githubusercontent.com/docsifyjs/docs-de/master/$1',
2829
'/ru/(.*)': 'https://raw.githubusercontent.com/docsifyjs/docs-ru/master/$1',
2930
'/es/(.*)': 'https://raw.githubusercontent.com/docsifyjs/docs-es/master/$1'
3031
},
31-
notFoundPage: '_404.html',
3232
auto2top: true,
3333
basePath: '/docs/',
34+
coverpage: true,
3435
executeScript: true,
35-
loadNavbar: true,
3636
loadSidebar: true,
37-
coverpage: true,
38-
name: 'docsify',
39-
subMaxLevel: 2,
37+
loadNavbar: true,
4038
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+
},
4155
formatUpdated: '{MM}/{DD} {HH}:{mm}',
4256
plugins: [
4357
function (hook, vm) {
4458
hook.beforeEach(function (html) {
45-
var url
4659
if (/githubusercontent\.com/.test(vm.route.file)) {
4760
url = vm.route.file
4861
.replace('raw.githubusercontent.com', 'github.com')
4962
.replace(/\/master/, '/blob/master')
5063
} 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
5265
}
5366
var editHtml = '[:memo: Edit Document](' + url + ')\n'
5467

5568
return editHtml
5669
+ html
5770
+ '\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>'
6072
})
61-
}
73+
},
6274
]
6375
}
6476
</script>
6577
<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>
6682
</body>
6783

6884
</html>

0 commit comments

Comments
 (0)