-
Notifications
You must be signed in to change notification settings - Fork 140
Expand file tree
/
Copy pathconfig.mts
More file actions
135 lines (118 loc) · 3.54 KB
/
config.mts
File metadata and controls
135 lines (118 loc) · 3.54 KB
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
127
128
129
130
131
132
133
134
135
import { defineConfig } from 'vitepress'
export default defineConfig({
title: 'Hack GPON',
description: 'Worldwide wiki on how to access, change and edit ONTs',
// Keep URLs consistent with Jekyll
cleanUrls: true,
head: [
['link', { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }],
['link', { rel: 'icon', type: 'image/png', sizes: '16x16', href: '/favicon-16x16.png' }],
['link', { rel: 'icon', type: 'image/png', sizes: '32x32', href: '/favicon-32x32.png' }],
['link', { rel: 'apple-touch-icon', sizes: '180x180', href: '/apple-touch-icon.png' }],
['link', { rel: 'manifest', href: '/site.webmanifest' }],
['link', { rel: 'mask-icon', href: '/safari-pinned-tab.svg', color: '#5bbad5' }],
['meta', { name: 'msapplication-TileColor', content: '#da532c' }],
['meta', { name: 'theme-color', content: '#ffffff' }],
],
themeConfig: {
logo: '/favicon-32x32.png',
nav: [
{ text: 'Home', link: '/' },
{ text: 'Quick Start', link: '/quick-start' },
{ text: 'FAQ', link: '/faq' },
],
sidebar: [
{
text: 'Getting Started',
items: [
{ text: 'Home', link: '/' },
{ text: 'Quick Start', link: '/quick-start' },
{ text: 'FAQ', link: '/faq' },
]
},
{
text: 'ONT GPON',
collapsed: false,
link: '/ont-zte',
items: []
},
{
text: 'ONT XGS-PON',
collapsed: false,
items: []
},
{
text: 'ONT EPON',
collapsed: false,
items: []
},
{
text: 'Router PON',
collapsed: false,
items: []
},
{
text: 'Tools',
collapsed: false,
items: []
},
{
text: 'SFP Resources & standard',
collapsed: false,
items: []
},
{
text: 'GPON Resources & standard',
collapsed: false,
items: []
},
{
text: 'SFP cage',
collapsed: false,
items: []
}
],
socialLinks: [
{ icon: 'github', link: 'https://github.com/hack-gpon/hack-gpon.github.io' }
],
editLink: {
pattern: 'https://github.com/hack-gpon/hack-gpon.github.io/tree/main/:path',
text: 'Edit this page on GitHub'
},
footer: {
message: 'Copyright © 2022-2023. The documentation hereby found is distributed under the terms of the <a href="https://github.com/hack-gpon/hack-gpon.github.io/blob/main/LICENSE">MIT License</a>. Any external reference, link or software retains its original license and is not under the control of this website. <a href="/privacy-policy">Privacy Policy</a>.',
},
search: {
provider: 'local'
},
outline: {
level: [2, 3]
}
},
// Custom rewrites to maintain Jekyll URL structure
rewrites: {
// ONT GPON: /_ont/ont-xxx.md -> /ont-xxx (remove _ont prefix, keep filename)
'_ont/:file': ':file',
// ONT XGS-PON: /_ont_xgs/ont-xxx.md -> /xgs/ont-xxx
'_ont_xgs/:file': 'xgs/:file',
// ONT EPON: /_ont_epon/xxx.md -> /epon/xxx
'_ont_epon/:file': 'epon/:file',
// Router PON: /_router_pon/xxx.md -> /router/xxx
'_router_pon/:file': 'router/:file',
// Tools, SFP, GPON, SFP cage: keep at root level as Jekyll did
'_tools/:file': ':file',
'_sfp/:file': ':file',
'_gpon/:file': ':file',
'_sfp_cage/:file': ':file',
},
vite: {
build: {
chunkSizeWarningLimit: 1000
},
resolve: {
alias: {
'@components': '/components'
}
}
}
})