-
Notifications
You must be signed in to change notification settings - Fork 55
/
sidebars.js
136 lines (134 loc) · 3.2 KB
/
sidebars.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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
const globalClass = className => ({
global: true,
name: className,
});
const backToHome = {
customProps: {
classNames: ['backToHome', globalClass('back-to-home')],
icon: 'img/shared/arrow-left.svg',
iconHover: 'img/shared/arrow-left-hover.svg',
iconDarkHover: 'img/shared/arrow-left-dark-hover.svg',
},
href: '/overview',
label: 'Overview',
type: 'link',
};
module.exports = {
main: [
{
type: 'doc',
id: 'overview',
customProps: {
classNames: ['home', globalClass('home'), globalClass('main-sidebar-icon')],
icon: 'img/overview.png',
iconDark: 'img/overview-dark.png',
},
},
{
label: 'DIPS',
customProps: {
classNames: [globalClass('dip-category')],
},
items: [
{
type: 'ref',
id: 'all-dips',
customProps: {
classNames: [
globalClass('main-sidebar-icon'),
globalClass('background-contain'),
globalClass('main-sidebar-all-dips')
],
icon: 'img/all-dips.png',
iconDark: 'img/all-dips-dark.png',
},
},
{
type: 'ref',
id: 'standard-dips',
customProps: {
classNames: [globalClass('main-sidebar-icon')],
icon: 'img/standard-dips.svg',
iconDark: 'img/standard-dips-dark.png',
},
},
{
type: 'ref',
id: 'process-dips',
customProps: {
classNames: [globalClass('main-sidebar-icon'), globalClass('background-contain')],
icon: 'img/process-dips.png',
iconDark: 'img/process-dips-dark.png',
},
},
{
type: 'ref',
id: 'info-dips',
customProps: {
classNames: [
globalClass('main-sidebar-icon'),
globalClass('dip-info-icon'),
],
icon: 'img/info-dips.svg',
iconDark: 'img/info-dips-dark.svg',
},
},
],
type: 'category',
}
],
allDips: [
backToHome,
{
type: 'doc',
id: 'all-dips',
customProps: {
classNames: [
'categoryLabel',
globalClass('background-contain'),
],
icon: 'img/all-dips.png',
iconDark: 'img/all-dips-dark.png',
},
},
],
standardDips: [
backToHome,
{
type: 'doc',
id: 'standard-dips',
customProps: {
classNames: ['categoryLabel', globalClass('icon-indented')],
icon: 'img/standard-dips.svg',
iconDark: 'img/standard-dips-dark.png',
},
},
],
infoDips: [
backToHome,
{
type: 'doc',
id: 'info-dips',
customProps: {
classNames: ['categoryLabel',
globalClass('icon-indented'),
globalClass('dip-info-icon'),
],
icon: 'img/info-dips.svg',
iconDark: 'img/info-dips-dark.svg',
},
},
],
processDips: [
backToHome,
{
type: 'doc',
id: 'process-dips',
customProps: {
classNames: ['categoryLabel'],
icon: 'img/process-dips.png',
iconDark: 'img/process-dips-dark.png',
},
},
]
};