mirror of
https://github.com/Ocelot-Social-Community/ocelot.social.git
synced 2025-12-13 07:46:08 +00:00
adapt config of redirect plugin to vuepress theme hope changes
This commit is contained in:
parent
f8c36a1272
commit
6da613d06c
@ -3,12 +3,12 @@ import { viteBundler } from '@vuepress/bundler-vite'
|
|||||||
|
|
||||||
import meta from './config/meta'
|
import meta from './config/meta'
|
||||||
import theme from './config/theme'
|
import theme from './config/theme'
|
||||||
import plugins from './config/plugins'
|
// import plugins from './config/plugins'
|
||||||
|
|
||||||
export default defineUserConfig({
|
export default defineUserConfig({
|
||||||
...meta,
|
...meta,
|
||||||
theme,
|
theme,
|
||||||
plugins,
|
// plugins,
|
||||||
bundler: viteBundler(),
|
bundler: viteBundler(),
|
||||||
base: process.env.VUEPRESS_BASE ? `/${process.env.VUEPRESS_BASE}/` : '/',
|
base: process.env.VUEPRESS_BASE ? `/${process.env.VUEPRESS_BASE}/` : '/',
|
||||||
locales: {
|
locales: {
|
||||||
|
|||||||
@ -1,8 +0,0 @@
|
|||||||
import { redirectPlugin } from '@vuepress/plugin-redirect'
|
|
||||||
|
|
||||||
|
|
||||||
export default [
|
|
||||||
redirectPlugin({
|
|
||||||
autoLocale: true,
|
|
||||||
})
|
|
||||||
]
|
|
||||||
@ -99,6 +99,9 @@ export default hopeTheme({
|
|||||||
sup: true,
|
sup: true,
|
||||||
vPre: true,
|
vPre: true,
|
||||||
},
|
},
|
||||||
|
redirect: {
|
||||||
|
autoLocale: true,
|
||||||
|
},
|
||||||
searchPro: {
|
searchPro: {
|
||||||
indexContent: true,
|
indexContent: true,
|
||||||
autoSuggestions: true,
|
autoSuggestions: true,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user