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' }], // { // email: 'volodymyr@foxmail.com', // github: 'pengzhanbo', // QQ: '942450674', // weiBo: 'https://weibo.com', // zhiHu: 'https://zhihu.com', // facebook: 'https://baidu.com', // twitter: 'https://baidu.com', // linkedin: 'https://baidu.com', // }, 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', message: '', }, themePlugins: { search: { locales: { '/': { placeholder: '搜索', }, }, }, }, }), })