Plugins Config

You can configure the plugins that used by default theme with themePlugins.

Default theme is using some plugins by default. You can disable a plugin if you really do not want to use it. Make sure you understand what the plugin is for before disabling it.

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

export default {
  theme: defaultTheme({
    themePlugins: {
      // customize theme plugins here
    },
  }),
}

themePlugins.backToTop

  • Type: BackToTopPluginOptions | boolean

  • Default: true

  • Details:

    Enable @vuepress/plugin-back-to-top or not.

    Object value is supported as plugin options.

themePlugins.container

themePlugins.copyCode

  • Type: CopyCodePluginOptions | boolean

  • Default: true

  • Details:

    Enable @vuepress/plugin-copy-code or not.

    Object value is supported as plugin options.

themePlugins.externalLinkIcon

themePlugins.git

themePlugins.linksCheck

themePlugins.mediumZoom

themePlugins.nprogress

themePlugins.prismjs

themePlugins.seo

  • Type: SeoPluginOptions | boolean

  • Default: true

  • Details:

    Enable @vuepress/plugin-seo or not.

    Object value is supported as plugin options.

themePlugins.sitemap

  • Type: SitemapPluginOptions | boolean

  • Default: true

  • Details:

    Enable @vuepress/plugin-sitemap or not.

    Object value is supported as plugin options.