pengzhanbo ca21d1b8cb
feat: add support optional icon for file-tree and code-tabs (#216)
* feat(theme)!: migrate `plugin-markdown-hint`

* chore: tweak

* chore: tweak

* chore: tweak

* chore: tweak

* chore: tweak

* chore: tweak

* chore: tweak

* chore: tweak

* chore: tweak

* chore: tweak

* fix(theme): improve `home-blog` styles in mobile, close #210

* chore: tweak

* chore: tweak

* chore: tweak

* feat: add support optional icon for `file-tree` and `code-tabs`

* chore: tweak

* chore: tweak

* chore: tweak

* chore: tweak
2024-09-26 00:14:06 +08:00

59 lines
1.2 KiB
TypeScript

import type { Theme } from 'vuepress'
import process from 'node:process'
import { plumeTheme } from 'vuepress-theme-plume'
export const theme: Theme = plumeTheme({
hostname: process.env.SITE_HOST || 'https://plume.pengzhanbo.cn',
plugins: {
shiki: { twoslash: true, lineNumbers: 10 },
markdownEnhance: {
demo: true,
include: true,
chart: true,
echarts: true,
mermaid: true,
flowchart: true,
},
markdownPower: {
imageSize: 'all',
pdf: true,
caniuse: true,
bilibili: true,
youtube: true,
codepen: true,
replit: true,
codeSandbox: true,
jsfiddle: true,
repl: {
go: true,
rust: true,
kotlin: true,
},
},
comment: {
provider: 'Giscus',
comment: true,
repo: 'pengzhanbo/vuepress-theme-plume',
repoId: 'R_kgDOG_ebNA',
category: 'docs-comment',
categoryId: 'DIC_kwDOG_ebNM4Cd0uF',
mapping: 'pathname',
reactionsEnabled: true,
inputPosition: 'top',
darkTheme: 'dark_protanopia',
lightTheme: 'light_protanopia',
},
watermark: {
enabled: false,
watermarkOptions: {
content: 'vuepress-theme-plume',
},
},
},
})