拾忆🍂拾忆🍂
  • cpp
  • MySQL
  • Oracle
  • PostgreSQL
  • MyBatis
  • API升级
  • HMOS
  • 百变小组件
  • hdc
  • 元服务
  • Java
  • MinIO
  • Stream
  • JSP & Struts2
  • Spring
  • FFmpeg
  • Linux
  • Git
  • Nginx
  • Ollama
  • Adobe Audition
  • Aseprite
  • Excel
  • Markdown基本用法
  • MuseScore 4.x
  • UVR
  • Windows
  • emoji-cheat-sheet
  • IDE快捷键
  • obs-studio
  • YOLO
  • Python
  • VuePress 2.x
  • 内置组件
  • markdown-container
  • markdown-ext
  • markdown-hint
  • markdown-preview
  • markdown-tab
  • Markdown扩展语法
  • 插件配置
  • prismjs
  • 样式
  • CSS
  • JS
  • TS
  • Vue3
主页
梦的开始🌅
  • cpp
  • MySQL
  • Oracle
  • PostgreSQL
  • MyBatis
  • API升级
  • HMOS
  • 百变小组件
  • hdc
  • 元服务
  • Java
  • MinIO
  • Stream
  • JSP & Struts2
  • Spring
  • FFmpeg
  • Linux
  • Git
  • Nginx
  • Ollama
  • Adobe Audition
  • Aseprite
  • Excel
  • Markdown基本用法
  • MuseScore 4.x
  • UVR
  • Windows
  • emoji-cheat-sheet
  • IDE快捷键
  • obs-studio
  • YOLO
  • Python
  • VuePress 2.x
  • 内置组件
  • markdown-container
  • markdown-ext
  • markdown-hint
  • markdown-preview
  • markdown-tab
  • Markdown扩展语法
  • 插件配置
  • prismjs
  • 样式
  • CSS
  • JS
  • TS
  • Vue3
主页
梦的开始🌅
  • 「从开始,到永久」
  • C艹

    • cpp
  • Database

    • MySQL
    • Oracle
    • PostgreSQL
    • MyBatis
  • HarmonyOS

    • API升级
    • HMOS
    • 百变小组件
    • hdc
    • 元服务
  • Java

    • Java
    • MinIO
    • Stream
    • JSP & Struts2
    • Spring
  • Linux

    • FFmpeg
    • Linux
    • Git
    • Nginx
  • LLM

    • Ollama
  • Others

    • Adobe Audition
    • Aseprite
    • Excel
    • Markdown基本用法
    • MuseScore 4.x
    • UVR
    • Windows
    • emoji-cheat-sheet
    • IDE快捷键
    • obs-studio
    • YOLO
  • Python

    • Python
  • VuePress

    • VuePress 2.x
    • 内置组件
    • markdown-container
    • markdown-ext
    • markdown-hint
    • markdown-preview
    • markdown-tab
    • Markdown扩展语法
    • 插件配置
    • prismjs
    • 样式
  • Web

    • CSS
    • JS
    • TS
    • Vue3
  • 主页

插件配置

你可以通过 themePlugins 设置默认主题使用的插件。

默认主题使用了一些插件,如果你确实不需要该插件,你可以选择禁用它。在禁用插件之前,请确保你已了解它的用途。

.vuepress/config.ts
import { defaultTheme } from '@vuepress/theme-default'

export default {
  theme: defaultTheme({
    themePlugins: {
      // 在这里自定义主题插件
    },
  }),
}

themePlugins.activeHeaderLinks

  • 类型: boolean

  • 默认值: true

  • 详情:

    是否启用 @vuepress/plugin-active-header-links 。

themePlugins.backToTop

  • 类型: BackToTopPluginOptions | boolean

  • 默认值: true

  • 详情:

    是否启用 @vuepress/plugin-back-to-top 。

    支持对象格式以作为插件选项。

themePlugins.container

  • 类型: Record<ContainerType, boolean>

  • 详情:

    是否启用由 @vuepress/plugin-markdown-container 支持的自定义容器。

    ContainerType 类型为:

    • codeGroup
    • codeGroupItem
  • 参考:

    • 默认主题 > Markdown > 自定义容器

themePlugins.copyCode

  • 类型: CopyCodePluginOptions | boolean

  • 默认值: true

  • 详情:

    是否启用 @vuepress/plugin-copy-code。

    支持对象格式以作为插件选项。

themePlugins.git

  • 类型: boolean

  • 默认值: true

  • 详情:

    是否启用 @vuepress/plugin-git 。

themePlugins.hint

  • 类型: MarkdownHintPluginOptions | boolean

  • 默认值: true

  • 详情:

    是否启用 @vuepress/plugin-markdown-hint。

  • 参考:

    • 默认主题 > Markdown > 提示容器

themePlugins.linksCheck

  • 类型:LinksCheckPluginOptions | boolean

  • 默认值:true

  • 详情:

    是否启用 @vuepress/plugin-links-check。

    支持对象格式以作为插件选项。

themePlugins.mediumZoom

  • 类型: boolean

  • 默认值: true

  • 详情:

    是否启用 @vuepress/plugin-medium-zoom 。

themePlugins.nprogress

  • 类型: boolean

  • 默认值: true

  • 详情:

    是否启用 @vuepress/plugin-nprogress 。

themePlugins.prismjs

  • 类型: boolean

  • 默认值: true

  • 详情:

    是否启用 @vuepress/plugin-prismjs 。

themePlugins.seo

  • 类型: SeoPluginOptions | boolean

  • 默认值: true

  • 详情:

    是否启用 @vuepress/plugin-seo 。

    支持对象格式以作为插件选项。

themePlugins.sitemap

  • 类型: SitemapPluginOptions | boolean

  • 默认值: true

  • 详情:

    是否启用 @vuepress/plugin-sitemap 。

    支持对象格式以作为插件选项。

themePlugins.tab

  • 类型: MarkdownTabPluginOptions | boolean

  • 默认值: true

  • 详情:

    是否启用 @vuepress/plugin-markdown-tab。

  • 参考:

    • 默认主题 > Markdown > 代码选项卡
    • 默认主题 > Markdown > 选项卡
最近更新: 2025/11/6 16:36
Contributors: Enlin
Prev
Markdown扩展语法
Next
prismjs