-
Notifications
You must be signed in to change notification settings - Fork 140
Migrate from Jekyll + Just the Docs to VitePress #423
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
Copilot
wants to merge
5
commits into
main
Choose a base branch
from
copilot/migrate-to-vitepress
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from 4 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
bbd3403
Initial plan
Copilot d9ddaf9
Initial VitePress setup and content migration
Copilot 810930b
Complete VitePress configuration and workflow setup
Copilot 6465793
Add comprehensive migration documentation
Copilot 77b2c90
Fix .gitignore to exclude VitePress build artifacts
Copilot File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,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' | ||
| } | ||
| } | ||
| } | ||
| }) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| <!DOCTYPE html> | ||
| <html lang="en-US" dir="ltr"> | ||
| <head> | ||
| <meta charset="utf-8"> | ||
| <meta name="viewport" content="width=device-width,initial-scale=1"> | ||
| <title>Page not found | Hack GPON</title> | ||
| <meta name="description" content="Opps. The page you are looking for got lost."> | ||
| <meta name="generator" content="VitePress v1.6.4"> | ||
| <link rel="preload stylesheet" href="/assets/style.Css-0sPs.css" as="style"> | ||
| <link rel="preload stylesheet" href="/vp-icons.css" as="style"> | ||
|
|
||
| <script type="module" src="/assets/app.CjECuGRX.js"></script> | ||
| <link rel="preload" href="/assets/inter-roman-latin.Di8DUHzh.woff2" as="font" type="font/woff2" crossorigin=""> | ||
| <link rel="modulepreload" href="/assets/chunks/theme._654pWPK.js"> | ||
| <link rel="modulepreload" href="/assets/chunks/framework.Bh_scrrl.js"> | ||
| <link rel="modulepreload" href="/assets/404.md.zRpvNB6j.lean.js"> | ||
| <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"> | ||
| <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> | ||
| <script id="check-mac-os">document.documentElement.classList.toggle("mac",/Mac|iPhone|iPod|iPad/i.test(navigator.platform));</script> | ||
| </head> | ||
| <body> | ||
| <div id="app"></div> | ||
| <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 © 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> | ||
|
|
||
| </body> | ||
| </html> |
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@copilot sistema il gitignore, mi hai committato i file di build
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sistemato! Ho aggiornato il
.gitignoreper escludere i file di build di VitePress (.vitepress/dist/,.vitepress/cache/,.vitepress/.temp/) e rimosso tutti i file di build dal repository. Commit: 77b2c90