Skip to content

Commit d9ddaf9

Browse files
Initial VitePress setup and content migration
Co-authored-by: simonebortolin <[email protected]>
1 parent bbd3403 commit d9ddaf9

File tree

232 files changed

+4584
-14762
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

232 files changed

+4584
-14762
lines changed

.vitepress/config.mts

Lines changed: 135 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,135 @@
1+
import { defineConfig } from 'vitepress'
2+
3+
export default defineConfig({
4+
title: 'Hack GPON',
5+
description: 'Worldwide wiki on how to access, change and edit ONTs',
6+
7+
// Keep URLs consistent with Jekyll
8+
cleanUrls: true,
9+
10+
head: [
11+
['link', { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }],
12+
['link', { rel: 'icon', type: 'image/png', sizes: '16x16', href: '/favicon-16x16.png' }],
13+
['link', { rel: 'icon', type: 'image/png', sizes: '32x32', href: '/favicon-32x32.png' }],
14+
['link', { rel: 'apple-touch-icon', sizes: '180x180', href: '/apple-touch-icon.png' }],
15+
['link', { rel: 'manifest', href: '/site.webmanifest' }],
16+
['link', { rel: 'mask-icon', href: '/safari-pinned-tab.svg', color: '#5bbad5' }],
17+
['meta', { name: 'msapplication-TileColor', content: '#da532c' }],
18+
['meta', { name: 'theme-color', content: '#ffffff' }],
19+
],
20+
21+
themeConfig: {
22+
logo: '/favicon-32x32.png',
23+
24+
nav: [
25+
{ text: 'Home', link: '/' },
26+
{ text: 'Quick Start', link: '/quick-start' },
27+
{ text: 'FAQ', link: '/faq' },
28+
],
29+
30+
sidebar: [
31+
{
32+
text: 'Getting Started',
33+
items: [
34+
{ text: 'Home', link: '/' },
35+
{ text: 'Quick Start', link: '/quick-start' },
36+
{ text: 'FAQ', link: '/faq' },
37+
]
38+
},
39+
{
40+
text: 'ONT GPON',
41+
collapsed: false,
42+
link: '/ont-zte',
43+
items: []
44+
},
45+
{
46+
text: 'ONT XGS-PON',
47+
collapsed: false,
48+
items: []
49+
},
50+
{
51+
text: 'ONT EPON',
52+
collapsed: false,
53+
items: []
54+
},
55+
{
56+
text: 'Router PON',
57+
collapsed: false,
58+
items: []
59+
},
60+
{
61+
text: 'Tools',
62+
collapsed: false,
63+
items: []
64+
},
65+
{
66+
text: 'SFP Resources & standard',
67+
collapsed: false,
68+
items: []
69+
},
70+
{
71+
text: 'GPON Resources & standard',
72+
collapsed: false,
73+
items: []
74+
},
75+
{
76+
text: 'SFP cage',
77+
collapsed: false,
78+
items: []
79+
}
80+
],
81+
82+
socialLinks: [
83+
{ icon: 'github', link: 'https://github.com/hack-gpon/hack-gpon.github.io' }
84+
],
85+
86+
editLink: {
87+
pattern: 'https://github.com/hack-gpon/hack-gpon.github.io/tree/main/:path',
88+
text: 'Edit this page on GitHub'
89+
},
90+
91+
footer: {
92+
message: 'Copyright &copy; 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>.',
93+
},
94+
95+
search: {
96+
provider: 'local'
97+
},
98+
99+
outline: {
100+
level: [2, 3]
101+
}
102+
},
103+
104+
// Custom rewrites to maintain Jekyll URL structure
105+
rewrites: {
106+
// ONT GPON: /_ont/ont-xxx.md -> /ont-xxx (remove _ont prefix, keep filename)
107+
'_ont/:file': ':file',
108+
109+
// ONT XGS-PON: /_ont_xgs/ont-xxx.md -> /xgs/ont-xxx
110+
'_ont_xgs/:file': 'xgs/:file',
111+
112+
// ONT EPON: /_ont_epon/xxx.md -> /epon/xxx
113+
'_ont_epon/:file': 'epon/:file',
114+
115+
// Router PON: /_router_pon/xxx.md -> /router/xxx
116+
'_router_pon/:file': 'router/:file',
117+
118+
// Tools, SFP, GPON, SFP cage: keep at root level as Jekyll did
119+
'_tools/:file': ':file',
120+
'_sfp/:file': ':file',
121+
'_gpon/:file': ':file',
122+
'_sfp_cage/:file': ':file',
123+
},
124+
125+
vite: {
126+
build: {
127+
chunkSizeWarningLimit: 1000
128+
},
129+
resolve: {
130+
alias: {
131+
'@components': '/components'
132+
}
133+
}
134+
}
135+
})

.vitepress/dist/404.html

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<!DOCTYPE html>
2+
<html lang="en-US" dir="ltr">
3+
<head>
4+
<meta charset="utf-8">
5+
<meta name="viewport" content="width=device-width,initial-scale=1">
6+
<title>Page not found | Hack GPON</title>
7+
<meta name="description" content="Opps. The page you are looking for got lost.">
8+
<meta name="generator" content="VitePress v1.6.4">
9+
<link rel="preload stylesheet" href="/assets/style.Css-0sPs.css" as="style">
10+
<link rel="preload stylesheet" href="/vp-icons.css" as="style">
11+
12+
<script type="module" src="/assets/app.CjECuGRX.js"></script>
13+
<link rel="preload" href="/assets/inter-roman-latin.Di8DUHzh.woff2" as="font" type="font/woff2" crossorigin="">
14+
<link rel="modulepreload" href="/assets/chunks/theme._654pWPK.js">
15+
<link rel="modulepreload" href="/assets/chunks/framework.Bh_scrrl.js">
16+
<link rel="modulepreload" href="/assets/404.md.zRpvNB6j.lean.js">
17+
<link rel="icon" type="image/x-icon" href="/favicon.ico">
18+
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
19+
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
20+
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
21+
<link rel="manifest" href="/site.webmanifest">
22+
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5">
23+
<meta name="msapplication-TileColor" content="#da532c">
24+
<meta name="theme-color" content="#ffffff">
25+
<script id="check-dark-mode">(()=>{const e=localStorage.getItem("vitepress-theme-appearance")||"auto",a=window.matchMedia("(prefers-color-scheme: dark)").matches;(!e||e==="auto"?a:e==="dark")&&document.documentElement.classList.add("dark")})();</script>
26+
<script id="check-mac-os">document.documentElement.classList.toggle("mac",/Mac|iPhone|iPod|iPad/i.test(navigator.platform));</script>
27+
</head>
28+
<body>
29+
<div id="app"></div>
30+
<script>window.__VP_HASH_MAP__=JSON.parse("{\"404.md\":\"zRpvNB6j\",\"contributing.md\":\"Ci-JeDRX\",\"faq.md\":\"QkKpst0D\",\"index.md\":\"Dvhv4AqO\",\"privacy-policy.md\":\"DVLfz0iV\",\"quick-start.md\":\"b5h5pd41\",\"readme.md\":\"D9i_AYR4\",\"test-page.md\":\"DxLNJDqB\"}");window.__VP_SITE_DATA__=JSON.parse("{\"lang\":\"en-US\",\"dir\":\"ltr\",\"title\":\"Hack GPON\",\"description\":\"Worldwide wiki on how to access, change and edit ONTs\",\"base\":\"/\",\"head\":[],\"router\":{\"prefetchLinks\":true},\"appearance\":true,\"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 &copy; 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]}},\"locales\":{},\"scrollOffset\":134,\"cleanUrls\":true}");</script>
31+
32+
</body>
33+
</html>

.vitepress/dist/CONTRIBUTING.html

Lines changed: 33 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)