forked from Koenkk/zigbee2mqtt.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
navbar.ts
75 lines (73 loc) · 1.87 KB
/
navbar.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
import type { NavbarConfig } from '@vuepress/theme-default'
import { resolve } from 'path';
import { readdirSync } from 'fs';
export function getFiles(dir: string) {
const base = resolve(__dirname, 'docs');
return readdirSync(resolve(base, dir))
.filter(file => file.endsWith('.md') && file !== 'README.md')
.map(file => `/${ dir }/${ file }`);
}
export const navbar: NavbarConfig = [
{
text: 'Guide',
children: [
'/guide/getting-started/',
{
link: '/guide/adapters/',
text: 'Supported Adapters',
activeMatch: '(/guide/adapters/|/guide/supported-hardware)'
},
{
text: 'Supported Devices',
link: '/supported-devices/',
},
'/guide/installation/',
'/guide/configuration/',
{
text: 'Usage',
link: '/guide/usage/pairing_devices.md',
activeMatch: '/guide/usage/',
},
'/guide/faq/',
]
},
{
text: 'Devices',
link: '/supported-devices/',
activeMatch: '^/(supported-)?devices/',
},
{
text: 'Advanced',
children: [
{ text: 'Zigbee', children: getFiles('advanced/zigbee') },
{ text: 'Support new devices', children: getFiles('advanced/support-new-devices') },
{ text: 'Remote Adapter', children: getFiles('advanced/remote-adapter') },
{ text: 'More', children: getFiles('advanced/more') },
]
},
{
text: 'Support',
children: [
{
text: 'Forum',
link: 'https://github.com/Koenkk/zigbee2mqtt/discussions',
},
{
text: 'Discord',
link: 'https://discord.gg/NyseBeK',
},
{
text: 'Issues',
link: 'https://github.com/Koenkk/zigbee2mqtt/issues',
},
{
text: 'Donate',
link: 'https://github.com/Koenkk/zigbee2mqtt',
},
],
},
{
text: 'Github',
link: 'https://github.com/Koenkk/zigbee2mqtt'
}
]