mirror of
https://github.com/fmhy/edit.git
synced 2025-07-31 08:12:23 +10:00
fix: update to upstream vitepress
Fixes WEB-25
This commit is contained in:
parent
a7d86c439f
commit
e337ab380f
6 changed files with 356 additions and 260 deletions
|
@ -1,3 +1,4 @@
|
|||
import { fileURLToPath } from 'node:url'
|
||||
import consola from 'consola'
|
||||
import UnoCSS from 'unocss/vite'
|
||||
import AutoImport from 'unplugin-auto-import/vite'
|
||||
|
@ -8,6 +9,7 @@ import {
|
|||
commitRef,
|
||||
feedback,
|
||||
meta,
|
||||
nav,
|
||||
search,
|
||||
sidebar,
|
||||
socialLinks
|
||||
|
@ -58,6 +60,16 @@ export default defineConfig({
|
|||
ssr: {
|
||||
noExternal: ['@fmhy/components']
|
||||
},
|
||||
resolve: {
|
||||
alias: [
|
||||
{
|
||||
find: /^.*VPSwitchAppearance\.vue$/,
|
||||
replacement: fileURLToPath(
|
||||
new URL('./theme/Appearance.vue', import.meta.url)
|
||||
)
|
||||
}
|
||||
]
|
||||
},
|
||||
optimizeDeps: { exclude: ['workbox-window'] },
|
||||
plugins: [
|
||||
OptimizeExclude(),
|
||||
|
@ -121,29 +133,7 @@ export default defineConfig({
|
|||
},
|
||||
outline: 'deep',
|
||||
logo: '/fmhy.ico',
|
||||
nav: [
|
||||
{ text: '🔖 Glossary', link: 'https://rentry.org/The-Piracy-Glossary' },
|
||||
{ text: '📑 Guides', link: 'https://rentry.co/fmhy-guides' },
|
||||
{
|
||||
text: '💾 Backups',
|
||||
link: 'https://github.com/fmhy/FMHY/wiki/Backups'
|
||||
},
|
||||
{
|
||||
text: '🪅 Ecosystem',
|
||||
items: [
|
||||
{ text: '💙 Feedback', link: '/feedback' },
|
||||
{ text: '🌐 Search', link: '/posts/search' },
|
||||
{ text: '🏞 Wallpapers', link: '/other/wallpapers' },
|
||||
{ text: '📋 snowbin', link: 'https://pastes.fmhy.net' },
|
||||
{ text: '🔍 SearXNG', link: 'https://searx.fmhy.net/' },
|
||||
{ text: '🔍 Whoogle', link: 'https://whoogle.fmhy.net/' },
|
||||
{
|
||||
text: '🔗 Bookmarks',
|
||||
link: 'https://github.com/fmhy/bookmarks'
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
nav,
|
||||
sidebar,
|
||||
socialLinks
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue