-
Notifications
You must be signed in to change notification settings - Fork 13
/
api-doc-options.js
82 lines (82 loc) · 1.67 KB
/
api-doc-options.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
// redoc options
module.exports={
nativeScrollbars: true,
hideDownloadButton: true,
theme: {
space: {
unit: 4,
},
colors: {
primary: {
main: '#5628b4',
},
success: {
main: '#29b565',
},
warning: {
main: '#fabf3a',
},
error: {
main: '#f04c41',
},
text: {
primary: '#343945',
},
border: {
dark: '#576075',
light: '#8c96ad',
},
http: {
get: '#29b565',
post: '#0090ff',
put: '#C660A0',
options: '#d3ca12',
patch: '#fabf3a',
delete: '#f04c41',
basic: '#a2a9be',
link: '#31bbb6',
head: '#c167e4',
},
},
schema: {
defaultDetailsWidth: '75%',
labelsTextSize: '0.9em',
nestingSpacing: '1em',
nestedBackground: '#eff0f5',
arrow: {
size: '0.9em',
},
},
typography: {
fontSize: '12px',
fontFamily: 'Roboto, sans-serif',
smoothing: 'antialiased',
optimizeSpeed: true,
headings: {
fontFamily: 'Roboto, sans-serif',
fontWeight: '400',
lineHeight: '1.168em',
},
code: {
fontSize: '12px',
fontFamily: 'SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace',
color: '#eff0f5',
backgroundColor: '#474e5d',
wrap: false,
},
},
menu: {
width: '280px',
backgroundColor: '#f9fafb',
textColor: '#576075',
groupItems: {
textTransform: 'lowercase',
},
},
rightPanel: {
backgroundColor: '#343945',
width: '40%',
textColor: '#eff0f5',
},
},
}