2023-02-14 05:11:02 +08:00

63 lines
1.6 KiB
TypeScript

import * as path from 'path'
import themePlume from '@vuepress-plume/vuepress-theme-plume'
import { viteBundler } from '@vuepress/bundler-vite'
import { webpackBundler } from '@vuepress/bundler-webpack'
import { defineUserConfig } from '@vuepress/cli'
import notes from './notes.js'
export default defineUserConfig({
base: '/',
lang: 'zh',
title: 'Plume Theme',
description: '',
source: path.resolve(__dirname, '../'),
public: path.resolve(__dirname, 'public'),
bundler:
process.env.DOCS_BUNDLER === 'webpack' ? webpackBundler() : viteBundler(),
theme: themePlume({
logo: 'https://pengzhanbo.cn/g.gif',
hostname: 'https://pengzhanbo.cn',
appearance: true,
avatar: {
url: '/images/blogger.jpg',
name: 'Plume Theme',
description: 'The Theme for Vuepress 2.0',
},
social: [{ icon: 'github', link: 'https://github.com/pengzhanbo' }],
notes,
navbar: [
{ text: 'Blog', link: '/blog/', activeMatch: '/blog/' },
{
text: 'VuePress',
items: [
{ text: 'theme-plume', link: '/note/vuepress-theme-plume/' },
{
text: 'Plugin',
items: [
{ text: 'caniuse', link: '/note/vuepress-plugin/caniuse/' },
{
text: 'netlify-functions',
link: '/note/vuepress-plugin/netlify-functions/',
},
],
},
],
},
],
footer: {
copyright: 'Copyright © 2022-present pengzhanbo',
},
themePlugins: {
search: {
locales: {
'/': {
placeholder: '搜索',
},
},
},
},
}),
})