mirror of
https://github.com/pengzhanbo/vuepress-theme-plume.git
synced 2026-04-23 10:58:13 +08:00
91 lines
2.3 KiB
Handlebars
91 lines
2.3 KiB
Handlebars
import { {{ bundler }}Bundler } from '@vuepress/bundler-{{ bundler }}'
|
|
import { defineUserConfig } from 'vuepress'
|
|
import { plumeTheme } from 'vuepress-theme-plume'
|
|
|
|
export default defineUserConfig({
|
|
base: '/',
|
|
lang: '{{ defaultLanguage }}',
|
|
{{#if multiLanguage}}
|
|
locales: {
|
|
{{#each locales}}
|
|
'{{ path }}': {
|
|
title: '{{ ../siteName }}',
|
|
lang: '{{ lang }}',
|
|
description: '{{ ../siteDescription }}',
|
|
},
|
|
{{/each}}
|
|
},
|
|
{{else}}
|
|
title: '{{ siteName }}',
|
|
description: '{{ siteDescription }}',
|
|
{{/if}}
|
|
|
|
bundler: {{ bundler }}Bundler(),
|
|
|
|
theme: plumeTheme({
|
|
// 添加您的部署域名
|
|
// hostname: 'https://your_site_url',
|
|
|
|
plugins: {
|
|
/**
|
|
* Shiki 代码高亮
|
|
* @see https://theme-plume.vuejs.press/config/plugins/code-highlight/
|
|
*/
|
|
// shiki: {
|
|
// 强烈建议预设代码块高亮语言,插件默认加载所有语言会产生不必要的时间开销
|
|
// languages: ['shell', 'bash', 'typescript', 'javascript'],
|
|
// },
|
|
|
|
/**
|
|
* markdown enhance
|
|
* @see https://theme-plume.vuejs.press/config/plugins/markdown-enhance/
|
|
*/
|
|
markdownEnhance: {
|
|
demo: true,
|
|
// include: true,
|
|
// chart: true,
|
|
// echarts: true,
|
|
// mermaid: true,
|
|
// flowchart: true,
|
|
},
|
|
|
|
/**
|
|
* markdown power
|
|
* @see https://theme-plume.vuejs.press/config/plugin/markdown-power/
|
|
*/
|
|
// markdownPower: {
|
|
// pdf: true,
|
|
// caniuse: true,
|
|
// plot: true,
|
|
// bilibili: true,
|
|
// youtube: true,
|
|
// icons: true,
|
|
// codepen: true,
|
|
// replit: true,
|
|
// codeSandbox: true,
|
|
// jsfiddle: true,
|
|
// repl: {
|
|
// go: true,
|
|
// rust: true,
|
|
// kotlin: true,
|
|
// },
|
|
// },
|
|
|
|
/**
|
|
* 评论 comments
|
|
* @see https://theme-plume.vuejs.press/guide/features/comments/
|
|
*/
|
|
// comment: {
|
|
// provider: '', // "Artalk" | "Giscus" | "Twikoo" | "Waline"
|
|
// comment: true,
|
|
// repo: '',
|
|
// repoId: '',
|
|
// categoryId: '',
|
|
// mapping: 'pathname',
|
|
// reactionsEnabled: true,
|
|
// inputPosition: 'top',
|
|
// },
|
|
},
|
|
}),
|
|
})
|