mirror of
https://jihulab.com/DGP-Studio/Snap.Hutao.Docs.git
synced 2025-11-19 21:16:31 +08:00
@@ -4,7 +4,6 @@ import theme from "./theme.js";
|
||||
import { autoCatalogPlugin } from "vuepress-plugin-auto-catalog";
|
||||
import { docsearchPlugin } from '@vuepress/plugin-docsearch'
|
||||
import { googleAnalyticsPlugin } from '@vuepress/plugin-google-analytics'
|
||||
import { redirectPlugin } from "vuepress-plugin-redirect";
|
||||
|
||||
export default defineUserConfig({
|
||||
base: "/",
|
||||
@@ -44,7 +43,7 @@ export default defineUserConfig({
|
||||
}
|
||||
}
|
||||
},
|
||||
"/en/": {
|
||||
"en": {
|
||||
placeholder: "Search documents",
|
||||
translations:{
|
||||
button:{
|
||||
@@ -56,15 +55,7 @@ export default defineUserConfig({
|
||||
}),
|
||||
googleAnalyticsPlugin({
|
||||
id: "G-F3LFJCE3RM"
|
||||
}),
|
||||
redirectPlugin({
|
||||
locale: true,
|
||||
localeConfig: {
|
||||
"/en/": ["en-US", "en-UK", "en"],
|
||||
"/": ["zh-CN", "zh-TW", "zh"],
|
||||
},
|
||||
})
|
||||
|
||||
],
|
||||
|
||||
theme,
|
||||
|
||||
Reference in New Issue
Block a user