-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
121 lines (110 loc) · 2.26 KB
/
index.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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
/**
* @file: index
* @author: Cuttle Cong
* @date: 2018/2/10
* @description:
*/
module.exports = {
// picker() {
//
// },
root: './pages',
routes: {
path: '/',
component: './Layout/index',
indexRoute: {
component: './Markdown',
},
childRoutes: [
// remove help route for ssr not throw error
// {
// path: 'help',
// component: './Markdown',
// },
{
path: 'api/*',
component: './MarkdownToc',
},
{
path: 'docs/*',
component: './MarkdownToc',
},
{
path: '*/*',
component: './MarkdownToc',
},
{
path: 'api',
component: './MarkdownToc',
},
{
path: 'docs',
component: './MarkdownToc',
},
{
path: '*',
component: './Markdown',
}
]
},
notFound: './NotFound',
config: {
versions: [
{
name: 'master', active: true
},
{
name: '1.0', to: 'http://sssssss'
}
],
logo: {
// src: 'https://github.com/picidaejs/picidaejs/raw/master/logo/picidae-2x.png',
name: 'Haier'
},
// work on title
description: '🍔 The universal picidae theme for project / library / framework etc.',
defaultLang: 'en',
headers: [
/*'docs', 'api', */
{
i18n: {
en: 'Get Started',
zh: '开始使用'
},
url: '/guides/installation'
},
'help',
/*'blog',*/
{
name: 'Example',
i18n: {
en: 'Example',
zh: '栗子'
},
url: '/example'
},
// spec
'i18n', 'search', 'github'
],
// repository: 'picidaejs/picidae-theme-haier',
repository: {
repo: 'https://github.com/picidaejs/picidae-theme-haier',
branch: 'master',
prefix: 'test'
},
search: {
apiKey: '775577a5c1951d4c202e59d73aa02cef',
indexName: 'haier'
},
style: {
loadingColor: '#dd2f3d'
},
footer: {
organization: {
to: 'https://github.com/picidaejs/picidaejs',
logo: 'https://github.com/picidaejs/picidaejs/raw/master/logo/picidae-2x.png'
},
copyright: 'Copyright © 2018 - Built by Picidae'
}
}
}