mirror of
https://github.com/Ocelot-Social-Community/ocelot.social.git
synced 2025-12-13 07:46:08 +00:00
38 lines
825 B
JavaScript
38 lines
825 B
JavaScript
import { getDirname, path } from "vuepress/utils"
|
|
import { defineUserConfig } from 'vuepress'
|
|
import { viteBundler } from '@vuepress/bundler-vite'
|
|
|
|
import meta from './config/meta'
|
|
import theme from './config/theme'
|
|
|
|
const __dirname = getDirname(import.meta.url)
|
|
|
|
export default defineUserConfig({
|
|
...meta,
|
|
theme,
|
|
bundler: viteBundler(),
|
|
base: process.env.VUEPRESS_BASE ? `/${process.env.VUEPRESS_BASE}/` : '/',
|
|
alias: {
|
|
'@theme': path.resolve(
|
|
__dirname,
|
|
'./theme',
|
|
),
|
|
},
|
|
locales: {
|
|
// The key is the path for the locale to be nested under.
|
|
// As a special case, the default locale can use '/' as its path.
|
|
'/de/': {
|
|
lang: 'de-DE',
|
|
},
|
|
'/en/': {
|
|
lang: 'en-EN',
|
|
},
|
|
'/es/': {
|
|
lang: 'es-ES',
|
|
},
|
|
'/fr/': {
|
|
lang: 'fr-FR',
|
|
},
|
|
}
|
|
})
|