@eventcatalog/core 2.0.9 → 2.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.all-contributorsrc +364 -0
- package/CHANGELOG.md +7 -0
- package/README.md +3 -0
- package/bin/dist/eventcatalog.cjs +1 -1
- package/bin/dist/eventcatalog.js +1 -1
- package/package.json +1 -1
- package/src/components/DocsNavigation.astro +20 -2
- package/src/utils/config/catalog.ts +18 -0
|
@@ -0,0 +1,364 @@
|
|
|
1
|
+
{
|
|
2
|
+
"projectName": "eventcatalog",
|
|
3
|
+
"projectOwner": "event-catalog",
|
|
4
|
+
"repoType": "github",
|
|
5
|
+
"repoHost": "https://github.com",
|
|
6
|
+
"files": [
|
|
7
|
+
"README.md"
|
|
8
|
+
],
|
|
9
|
+
"imageSize": 100,
|
|
10
|
+
"commit": true,
|
|
11
|
+
"commitConvention": "none",
|
|
12
|
+
"contributors": [
|
|
13
|
+
{
|
|
14
|
+
"login": "boyney123",
|
|
15
|
+
"name": "David Boyne",
|
|
16
|
+
"avatar_url": "https://avatars.githubusercontent.com/u/3268013?v=4",
|
|
17
|
+
"profile": "https://boyney.io/",
|
|
18
|
+
"contributions": [
|
|
19
|
+
"code",
|
|
20
|
+
"content",
|
|
21
|
+
"design",
|
|
22
|
+
"example",
|
|
23
|
+
"ideas",
|
|
24
|
+
"doc"
|
|
25
|
+
]
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"login": "otbe",
|
|
29
|
+
"name": "Benjamin Otto",
|
|
30
|
+
"avatar_url": "https://avatars.githubusercontent.com/u/3391052?v=4",
|
|
31
|
+
"profile": "https://otbe.io",
|
|
32
|
+
"contributions": [
|
|
33
|
+
"code",
|
|
34
|
+
"ideas",
|
|
35
|
+
"doc",
|
|
36
|
+
"bug"
|
|
37
|
+
]
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"login": "pongz79",
|
|
41
|
+
"name": "Tiago Oliveira",
|
|
42
|
+
"avatar_url": "https://avatars.githubusercontent.com/u/250872?v=4",
|
|
43
|
+
"profile": "https://github.com/pongz79",
|
|
44
|
+
"contributions": [
|
|
45
|
+
"doc",
|
|
46
|
+
"bug"
|
|
47
|
+
]
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"login": "jaymcguinness",
|
|
51
|
+
"name": "Jay McGuinness",
|
|
52
|
+
"avatar_url": "https://avatars.githubusercontent.com/u/11387911?v=4",
|
|
53
|
+
"profile": "https://www.bigjump.com/",
|
|
54
|
+
"contributions": [
|
|
55
|
+
"doc"
|
|
56
|
+
]
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"login": "davidkpiano",
|
|
60
|
+
"name": "David Khourshid",
|
|
61
|
+
"avatar_url": "https://avatars.githubusercontent.com/u/1093738?v=4",
|
|
62
|
+
"profile": "https://github.com/davidkpiano",
|
|
63
|
+
"contributions": [
|
|
64
|
+
"doc"
|
|
65
|
+
]
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"login": "thim81",
|
|
69
|
+
"name": "thim81",
|
|
70
|
+
"avatar_url": "https://avatars.githubusercontent.com/u/952446?v=4",
|
|
71
|
+
"profile": "https://github.com/thim81",
|
|
72
|
+
"contributions": [
|
|
73
|
+
"ideas",
|
|
74
|
+
"bug",
|
|
75
|
+
"code"
|
|
76
|
+
]
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"login": "Muthuveerappanv",
|
|
80
|
+
"name": "Muthu",
|
|
81
|
+
"avatar_url": "https://avatars.githubusercontent.com/u/33663725?v=4",
|
|
82
|
+
"profile": "https://github.com/Muthuveerappanv",
|
|
83
|
+
"contributions": [
|
|
84
|
+
"bug"
|
|
85
|
+
]
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"login": "tavelli",
|
|
89
|
+
"name": "Dan Tavelli",
|
|
90
|
+
"avatar_url": "https://avatars.githubusercontent.com/u/484951?v=4",
|
|
91
|
+
"profile": "https://github.com/tavelli",
|
|
92
|
+
"contributions": [
|
|
93
|
+
"doc"
|
|
94
|
+
]
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"login": "steppi91",
|
|
98
|
+
"name": "steppi91",
|
|
99
|
+
"avatar_url": "https://avatars.githubusercontent.com/u/25939641?v=4",
|
|
100
|
+
"profile": "https://github.com/steppi91",
|
|
101
|
+
"contributions": [
|
|
102
|
+
"doc"
|
|
103
|
+
]
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"login": "donaldpipowitch",
|
|
107
|
+
"name": "Donald Pipowitch",
|
|
108
|
+
"avatar_url": "https://avatars.githubusercontent.com/u/1152805?v=4",
|
|
109
|
+
"profile": "https://twitter.com/PipoPeperoni",
|
|
110
|
+
"contributions": [
|
|
111
|
+
"bug",
|
|
112
|
+
"code"
|
|
113
|
+
]
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"login": "kzhen",
|
|
117
|
+
"name": "Ken",
|
|
118
|
+
"avatar_url": "https://avatars.githubusercontent.com/u/2233210?v=4",
|
|
119
|
+
"profile": "http://unravelled.dev",
|
|
120
|
+
"contributions": [
|
|
121
|
+
"doc"
|
|
122
|
+
]
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"login": "rtoro",
|
|
126
|
+
"name": "Rodolfo Toro",
|
|
127
|
+
"avatar_url": "https://avatars.githubusercontent.com/u/5186897?v=4",
|
|
128
|
+
"profile": "http://rtoro.cl",
|
|
129
|
+
"contributions": [
|
|
130
|
+
"code"
|
|
131
|
+
]
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"login": "drub0y",
|
|
135
|
+
"name": "Drew Marsh",
|
|
136
|
+
"avatar_url": "https://avatars.githubusercontent.com/u/284152?v=4",
|
|
137
|
+
"profile": "http://blog.hackedbrain.com",
|
|
138
|
+
"contributions": [
|
|
139
|
+
"code"
|
|
140
|
+
]
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"login": "dpwdec",
|
|
144
|
+
"name": "Dec Kolakowski",
|
|
145
|
+
"avatar_url": "https://avatars.githubusercontent.com/u/51292634?v=4",
|
|
146
|
+
"profile": "https://github.com/dpwdec",
|
|
147
|
+
"contributions": [
|
|
148
|
+
"code",
|
|
149
|
+
"doc"
|
|
150
|
+
]
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
"login": "dytyniuk",
|
|
154
|
+
"name": "Yevhenii Dytyniuk",
|
|
155
|
+
"avatar_url": "https://avatars.githubusercontent.com/u/1890615?v=4",
|
|
156
|
+
"profile": "https://github.com/dytyniuk",
|
|
157
|
+
"contributions": [
|
|
158
|
+
"code"
|
|
159
|
+
]
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
"login": "lcsbltm",
|
|
163
|
+
"name": "lcsbltm",
|
|
164
|
+
"avatar_url": "https://avatars.githubusercontent.com/u/25868958?v=4",
|
|
165
|
+
"profile": "https://github.com/lcsbltm",
|
|
166
|
+
"contributions": [
|
|
167
|
+
"code"
|
|
168
|
+
]
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"login": "martzcodes",
|
|
172
|
+
"name": "Matt Martz",
|
|
173
|
+
"avatar_url": "https://avatars.githubusercontent.com/u/978362?v=4",
|
|
174
|
+
"profile": "https://matt.martz.codes",
|
|
175
|
+
"contributions": [
|
|
176
|
+
"code"
|
|
177
|
+
]
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
"login": "michelgrootjans",
|
|
181
|
+
"name": "Michel Grootjans",
|
|
182
|
+
"avatar_url": "https://avatars.githubusercontent.com/u/345770?v=4",
|
|
183
|
+
"profile": "https://github.com/michelgrootjans",
|
|
184
|
+
"contributions": [
|
|
185
|
+
"code"
|
|
186
|
+
]
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
"login": "arturoabruzzini",
|
|
190
|
+
"name": "Arturo Abruzzini",
|
|
191
|
+
"avatar_url": "https://avatars.githubusercontent.com/u/17528406?v=4",
|
|
192
|
+
"profile": "https://github.com/arturoabruzzini",
|
|
193
|
+
"contributions": [
|
|
194
|
+
"code"
|
|
195
|
+
]
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"login": "adlecluse",
|
|
199
|
+
"name": "Ad L'Ecluse",
|
|
200
|
+
"avatar_url": "https://avatars.githubusercontent.com/u/13390934?v=4",
|
|
201
|
+
"profile": "https://github.com/adlecluse",
|
|
202
|
+
"contributions": [
|
|
203
|
+
"code"
|
|
204
|
+
]
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
"login": "rafaelrenanpacheco",
|
|
208
|
+
"name": "Rafael Renan Pacheco",
|
|
209
|
+
"avatar_url": "https://avatars.githubusercontent.com/u/12160864?v=4",
|
|
210
|
+
"profile": "https://github.com/rafaelrenanpacheco",
|
|
211
|
+
"contributions": [
|
|
212
|
+
"code",
|
|
213
|
+
"doc"
|
|
214
|
+
]
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
"login": "ldiego73",
|
|
218
|
+
"name": "Luis Diego",
|
|
219
|
+
"avatar_url": "https://avatars.githubusercontent.com/u/394222?v=4",
|
|
220
|
+
"profile": "https://ldiego73.github.io/",
|
|
221
|
+
"contributions": [
|
|
222
|
+
"code"
|
|
223
|
+
]
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
"login": "DanielRuf",
|
|
227
|
+
"name": "Daniel Ruf",
|
|
228
|
+
"avatar_url": "https://avatars.githubusercontent.com/u/827205?v=4",
|
|
229
|
+
"profile": "https://www.linkedin.com/in/danielruf/",
|
|
230
|
+
"contributions": [
|
|
231
|
+
"doc"
|
|
232
|
+
]
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
"login": "frenkan",
|
|
236
|
+
"name": "Fredrik Johansson",
|
|
237
|
+
"avatar_url": "https://avatars.githubusercontent.com/u/859840?v=4",
|
|
238
|
+
"profile": "https://github.com/frenkan",
|
|
239
|
+
"contributions": [
|
|
240
|
+
"code"
|
|
241
|
+
]
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
"name": "Naresh Kumar Reddy Gaddam",
|
|
245
|
+
"avatar_url": "https://avatars.githubusercontent.com/u/2576375?v=4",
|
|
246
|
+
"profile": "https://gaddam1987.github.io/",
|
|
247
|
+
"login": "gaddam1987",
|
|
248
|
+
"contributions": [
|
|
249
|
+
"code"
|
|
250
|
+
]
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
"login": "dremonkey",
|
|
254
|
+
"name": "Andre Deutmeyer",
|
|
255
|
+
"avatar_url": "https://avatars.githubusercontent.com/u/480159?v=4",
|
|
256
|
+
"profile": "https://github.com/dremonkey",
|
|
257
|
+
"contributions": [
|
|
258
|
+
"code"
|
|
259
|
+
]
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
"login": "pebbz",
|
|
263
|
+
"name": "Pebbz",
|
|
264
|
+
"avatar_url": "https://avatars.githubusercontent.com/u/1685464?v=4",
|
|
265
|
+
"profile": "https://github.com/pebbz",
|
|
266
|
+
"contributions": [
|
|
267
|
+
"code"
|
|
268
|
+
]
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
"login": "aholbreich",
|
|
272
|
+
"name": "Alexander Holbreich",
|
|
273
|
+
"avatar_url": "https://avatars.githubusercontent.com/u/16252784?v=4",
|
|
274
|
+
"profile": "https://alexander.holbreich.org/",
|
|
275
|
+
"contributions": [
|
|
276
|
+
"doc"
|
|
277
|
+
]
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
"login": "jslim",
|
|
281
|
+
"name": "José Delgado",
|
|
282
|
+
"avatar_url": "https://avatars.githubusercontent.com/u/30370263?v=4",
|
|
283
|
+
"profile": "https://www.josedelgadoing.com/",
|
|
284
|
+
"contributions": [
|
|
285
|
+
"code"
|
|
286
|
+
]
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
"login": "jlee-spt",
|
|
290
|
+
"name": "jlee-spt",
|
|
291
|
+
"avatar_url": "https://avatars.githubusercontent.com/u/135801616?v=4",
|
|
292
|
+
"profile": "https://github.com/jlee-spt",
|
|
293
|
+
"contributions": [
|
|
294
|
+
"code"
|
|
295
|
+
]
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
"login": "kimrejstrom",
|
|
299
|
+
"name": "Kim Rejström",
|
|
300
|
+
"avatar_url": "https://avatars.githubusercontent.com/u/26428365?v=4",
|
|
301
|
+
"profile": "https://github.com/kimrejstrom",
|
|
302
|
+
"contributions": [
|
|
303
|
+
"code"
|
|
304
|
+
]
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
"login": "cgabard",
|
|
308
|
+
"name": "Christophe Gabard",
|
|
309
|
+
"avatar_url": "https://avatars.githubusercontent.com/u/6103932?v=4",
|
|
310
|
+
"profile": "https://github.com/cgabard",
|
|
311
|
+
"contributions": [
|
|
312
|
+
"code"
|
|
313
|
+
]
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
"login": "WaYdotNET",
|
|
317
|
+
"name": "Carlo Bertini",
|
|
318
|
+
"avatar_url": "https://avatars.githubusercontent.com/u/197466?v=4",
|
|
319
|
+
"profile": "http://www.waydotnet.com",
|
|
320
|
+
"contributions": [
|
|
321
|
+
"code"
|
|
322
|
+
]
|
|
323
|
+
},
|
|
324
|
+
{
|
|
325
|
+
"login": "dreglad",
|
|
326
|
+
"name": "David Regla",
|
|
327
|
+
"avatar_url": "https://avatars.githubusercontent.com/u/50302?v=4",
|
|
328
|
+
"profile": "https://github.com/dreglad",
|
|
329
|
+
"contributions": [
|
|
330
|
+
"code"
|
|
331
|
+
]
|
|
332
|
+
},
|
|
333
|
+
{
|
|
334
|
+
"login": "marciovmartins",
|
|
335
|
+
"name": "Marcio Vinicius",
|
|
336
|
+
"avatar_url": "https://avatars.githubusercontent.com/u/6377735?v=4",
|
|
337
|
+
"profile": "https://blogdomarcioweb.wordpress.com/",
|
|
338
|
+
"contributions": [
|
|
339
|
+
"code"
|
|
340
|
+
]
|
|
341
|
+
},
|
|
342
|
+
{
|
|
343
|
+
"login": "danielcastill0",
|
|
344
|
+
"name": "Daniel Andres Castillo Ardila",
|
|
345
|
+
"avatar_url": "https://avatars.githubusercontent.com/u/40574235?v=4",
|
|
346
|
+
"profile": "https://github.com/danielcastill0",
|
|
347
|
+
"contributions": [
|
|
348
|
+
"code"
|
|
349
|
+
]
|
|
350
|
+
},
|
|
351
|
+
{
|
|
352
|
+
"login": "debae",
|
|
353
|
+
"name": "Baerten Dennis",
|
|
354
|
+
"avatar_url": "https://avatars.githubusercontent.com/u/2007116?v=4",
|
|
355
|
+
"profile": "http://www.ennovative-solutions.be",
|
|
356
|
+
"contributions": [
|
|
357
|
+
"code"
|
|
358
|
+
]
|
|
359
|
+
}
|
|
360
|
+
],
|
|
361
|
+
"contributorsPerLine": 7,
|
|
362
|
+
"skipCi": true,
|
|
363
|
+
"commitType": "docs"
|
|
364
|
+
}
|
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
|
|
26
26
|
[![MIT License][license-badge]][license]
|
|
27
27
|
[![PRs Welcome][prs-badge]][prs]
|
|
28
|
+
[](#contributors-)
|
|
28
29
|
|
|
29
30
|
[Read the Docs](https://eventcatalog.dev/) | [Edit the Docs](https://github.com/event-catalog/docs) | [View Demo](https://demo.eventcatalog.dev/docs)
|
|
30
31
|
|
|
@@ -189,7 +190,9 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
|
|
|
189
190
|
</tr>
|
|
190
191
|
<tr>
|
|
191
192
|
<td align="center" valign="top" width="14.28%"><a href="https://github.com/danielcastill0"><img src="https://avatars.githubusercontent.com/u/40574235?v=4?s=100" width="100px;" alt="Daniel Andres Castillo Ardila"/><br /><sub><b>Daniel Andres Castillo Ardila</b></sub></a><br /><a href="https://github.com/boyney123/eventcatalog/commits?author=danielcastill0" title="Code">💻</a></td>
|
|
193
|
+
<td align="center" valign="top" width="14.28%"><a href="http://www.ennovative-solutions.be"><img src="https://avatars.githubusercontent.com/u/2007116?v=4?s=100" width="100px;" alt="Baerten Dennis"/><br /><sub><b>Baerten Dennis</b></sub></a><br /><a href="https://github.com/event-catalog/eventcatalog/commits?author=debae" title="Code">💻</a></td>
|
|
192
194
|
</tr>
|
|
195
|
+
|
|
193
196
|
</tbody>
|
|
194
197
|
</table>
|
|
195
198
|
|
|
@@ -3107,7 +3107,7 @@ var copyCore = () => {
|
|
|
3107
3107
|
});
|
|
3108
3108
|
};
|
|
3109
3109
|
program2.command("dev").description("Run development server of EventCatalog").option("-d, --debug", "Output EventCatalog application information into your terminal").action((options) => {
|
|
3110
|
-
console.log("Setting up EventCatalog
|
|
3110
|
+
console.log("Setting up EventCatalog....");
|
|
3111
3111
|
if (options.debug) {
|
|
3112
3112
|
console.log("Debug mode enabled");
|
|
3113
3113
|
console.log("PROJECT_DIR", dir);
|
package/bin/dist/eventcatalog.js
CHANGED
|
@@ -3109,7 +3109,7 @@ var copyCore = () => {
|
|
|
3109
3109
|
});
|
|
3110
3110
|
};
|
|
3111
3111
|
program2.command("dev").description("Run development server of EventCatalog").option("-d, --debug", "Output EventCatalog application information into your terminal").action((options) => {
|
|
3112
|
-
console.log("Setting up EventCatalog
|
|
3112
|
+
console.log("Setting up EventCatalog....");
|
|
3113
3113
|
if (options.debug) {
|
|
3114
3114
|
console.log("Debug mode enabled");
|
|
3115
3115
|
console.log("PROJECT_DIR", dir);
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@ import { getEvents } from '@utils/events';
|
|
|
5
5
|
import { getServices } from '@utils/services/services';
|
|
6
6
|
import { getTeams } from '@utils/teams';
|
|
7
7
|
import { getUsers } from '@utils/users';
|
|
8
|
-
import config from '@eventcatalog';
|
|
8
|
+
import config, { type CatalogConfig } from '@eventcatalog';
|
|
9
9
|
|
|
10
10
|
const events = await getEvents({ getAllVersions: false });
|
|
11
11
|
const commands = await getCommands({ getAllVersions: false });
|
|
@@ -18,8 +18,24 @@ const messages = [...events, ...commands];
|
|
|
18
18
|
|
|
19
19
|
const allData = [ ...domains, ...services, ...messages, ...teams, ...users];
|
|
20
20
|
|
|
21
|
+
const eventCatalogConfig = config as CatalogConfig;
|
|
22
|
+
const { services: servicesConfig, domains: domainsConfig, messages: messagesConfig, teams: teamsConfig, users: usersConfig, showPageHeadings = true } = eventCatalogConfig?.docs?.sidebar || {};
|
|
23
|
+
|
|
24
|
+
const getConfigValue = (obj: any, key:string, defaultValue: any) => {
|
|
25
|
+
return obj?.[key] ?? defaultValue;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
const visibleCollections = {
|
|
29
|
+
events: getConfigValue(messagesConfig, 'visible', true),
|
|
30
|
+
commands: getConfigValue(messagesConfig, 'visible', true),
|
|
31
|
+
domains: getConfigValue(domainsConfig, 'visible', true),
|
|
32
|
+
services: getConfigValue(servicesConfig, 'visible', true),
|
|
33
|
+
teams: getConfigValue(teamsConfig, 'visible', true),
|
|
34
|
+
users: getConfigValue(usersConfig, 'visible', true),
|
|
35
|
+
};
|
|
36
|
+
|
|
21
37
|
const fetchHeadings = allData.map(async (item) => {
|
|
22
|
-
const renderHeadings =
|
|
38
|
+
const renderHeadings = showPageHeadings;
|
|
23
39
|
const headings = renderHeadings ? await item.render() : { headings: []};
|
|
24
40
|
return {
|
|
25
41
|
...item,
|
|
@@ -41,6 +57,7 @@ const sideNav = withHeadings.reduce((acc, item) => {
|
|
|
41
57
|
label: item.data.name,
|
|
42
58
|
version: item.collection === 'teams' || item.collection === 'users' ? null : item.data.version,
|
|
43
59
|
items: item.collection === 'users' ? [] : item.headings,
|
|
60
|
+
visible: visibleCollections[item.collection],
|
|
44
61
|
// @ts-ignore
|
|
45
62
|
href: item.data.version ? `/docs/${item.collection}/${item.data.id}/${item.data.version}` : `/docs/${item.collection}/${item.data.id}`,
|
|
46
63
|
};
|
|
@@ -61,6 +78,7 @@ const currentPath = Astro.url.pathname;
|
|
|
61
78
|
{
|
|
62
79
|
Object.keys(sideNav).map((key) => {
|
|
63
80
|
const collection = sideNav[key];
|
|
81
|
+
if(collection[0] && collection[0].visible === false) return null;
|
|
64
82
|
return (
|
|
65
83
|
<ul class=" w-full space-y-2 pb-8">
|
|
66
84
|
<li class="font-semibold capitalize ">{key}</li>
|
|
@@ -1,2 +1,20 @@
|
|
|
1
1
|
import * as config from '@config';
|
|
2
|
+
|
|
3
|
+
type SideBarItemConfig = {
|
|
4
|
+
visible?: boolean;
|
|
5
|
+
};
|
|
6
|
+
|
|
7
|
+
export type CatalogConfig = {
|
|
8
|
+
docs: {
|
|
9
|
+
sidebar: {
|
|
10
|
+
showPageHeadings?: boolean;
|
|
11
|
+
domains: SideBarItemConfig;
|
|
12
|
+
services: SideBarItemConfig;
|
|
13
|
+
messages: SideBarItemConfig;
|
|
14
|
+
teams: SideBarItemConfig;
|
|
15
|
+
users: SideBarItemConfig;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
|
|
2
20
|
export default config.default;
|