forked from egoist/bili
/
main.js
92 lines (91 loc) · 1.69 KB
/
main.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
var API_LINK = location.protocol + '//' + location.host + '/api/'
new Docute({
versions: {
'v4 (Latest)': {
link: '/'
},
v3: {
link: 'https://v3--bili.netlify.com'
}
},
sidebar: [
{
title: 'Guide',
links: [
{
title: 'Installation',
link: '/installation'
},
{
title: 'Introduction',
link: '/'
},
{
title: 'Configuration File',
link: '/configuration-file'
},
{
title: 'Plugins',
link: '/plugins'
},
{
title: 'Configuration',
link: API_LINK + 'interfaces/config.html'
}
]
},
{
title: 'Recipes',
links: [
{
title: 'JavaScript',
link: '/recipes/javascript'
},
{
title: 'CSS',
link: '/recipes/css'
},
{
title: 'Vue Component',
link: '/recipes/vue-component'
},
{
title: 'Environment Variables',
link: '/recipes/env-variables'
},
{
title: 'Update package.json',
link: '/recipes/update-package-json'
}
]
},
{
title: 'Migration',
links: [
{
title: 'v3 to v4',
link: '/migration/v3-to-v4.md'
}
]
}
],
nav: [
{
title: 'Home',
link: '/'
},
{
title: 'API',
link: API_LINK
},
{
title: 'GitHub',
link: 'https://github.com/egoist/bili'
},
{
title: 'Twitter',
link: 'https://twitter.com/_egoistlily'
}
],
highlight: ['bash', 'typescript', 'json']
})