forked from radix-ui/website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcolorsRoutes.ts
53 lines (51 loc) · 1.15 KB
/
colorsRoutes.ts
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
export const colorsRoutes = [
{
label: 'Overview',
pages: [
{
title: 'Installation',
slug: 'colors/docs/overview/installation',
draft: false,
},
{
title: 'Usage',
slug: 'colors/docs/overview/usage',
draft: false,
},
{
title: 'Aliasing',
slug: 'colors/docs/overview/aliasing',
draft: false,
},
{
title: 'Releases',
slug: 'colors/docs/overview/releases',
draft: false,
},
],
},
{
label: 'Palette composition',
pages: [
{
title: 'Scales',
slug: 'colors/docs/palette-composition/scales',
draft: false,
},
{
title: 'Composing a palette',
slug: 'colors/docs/palette-composition/composing-a-palette',
draft: false,
},
{
title: 'Understanding the scale',
slug: 'colors/docs/palette-composition/understanding-the-scale',
draft: false,
},
],
},
];
export const allColorsRoutes = colorsRoutes.reduce((acc, curr) => {
acc = [...acc, ...curr.pages.filter((p) => p.draft !== true)];
return acc;
}, []);