forked from callstack/repack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsidebars.js
126 lines (125 loc) · 2.84 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
function getApiItems(source, types) {
return [
{
type: 'doc',
id: `api/${source}/index`,
label: 'Table of contents',
},
...types.map((type) => ({
type: 'category',
label: `${type[0].toUpperCase()}${type.slice(1)}`,
items: [
{
type: 'autogenerated',
dirName: `api/${source}/${type}`,
},
],
})),
];
}
module.exports = {
docsSidebar: [
{
type: 'category',
label: 'Documentation',
items: [
'about',
'getting-started',
'known-issues',
'web-support',
{
type: 'category',
label: 'Code Splitting',
items: [
'code-splitting/concept',
'code-splitting/usage',
'code-splitting/glossary',
'code-splitting/guide-async-chunks',
'code-splitting/local-vs-remote-chunks',
'code-splitting/caching-versioning',
'code-splitting/react-navigation',
'code-splitting/code-push',
],
},
'module-federation',
{
type: 'category',
label: 'Migration guides',
items: [
'migration-guides/repack-v1-to-v2',
'migration-guides/repack-v2-to-v3',
],
},
],
},
],
configuration: [
{
type: 'category',
label: 'Configuration',
items: ['configuration/webpack-config', 'configuration/templates'],
},
{
type: 'category',
label: 'Loaders',
items: ['configuration/loaders/assets-loader'],
},
{
type: 'category',
label: 'Plugins',
items: ['configuration/plugins/chunks-to-hermes'],
},
{
type: 'category',
label: 'Guides',
items: [
'configuration/guides/svg',
'configuration/guides/inline-assets',
'configuration/guides/remote-assets',
],
},
],
packagesSidebar: [
{
type: 'category',
label: 'API',
items: [
'api/about',
{
type: 'category',
label: '@callstack/repack',
items: getApiItems('repack', [
'classes',
'functions',
'interfaces',
'modules',
'types',
'variables',
]),
},
{
type: 'category',
label: '@callstack/repack/client',
items: getApiItems('repack/client', [
'classes',
'functions',
'interfaces',
'modules',
'types',
]),
},
{
type: 'category',
label: '@callstack/repack-dev-server',
items: getApiItems('dev-server', [
'enums',
'functions',
'interfaces',
'modules',
'types',
]),
},
],
},
],
};