Other Plugin Config

About 2 min

components

Register components which can be used in Markdown files, available component names are:

  • "Badge"
  • "CodePen"
  • "FontIcon"
  • "PDF"
  • "StackBlitz"
  • "YouTube"

You can set plugin.components with an array of components you want, by default it will be ["Badge"].

copyCode enabled by default

Controls vuepress-plugin-copy-code2, providing a code copy button.

By default, no config is required. If you don’t need this feature, please set to false.

Info

For plugin options, please refer to copy-code2 plugin optionsopen in new window.

git enabled in production

Controls @vuepress/plugin-git to provide file information via Git commit history.

By default, it is only enabled in build mode to improve development server performance. You can manually set a boolean to control the plugin state, or provide plugin options.

Info

See git plugin optionsopen in new window for plugin options.

nprogress enabled by default

Controls @vuepress/plugin-nprogress and provides a progress bar when switching pages through nprogress.

By default, the theme will enable this plugin, you can set false to disable it.

prismjs enabled by default

Controls @vuepress/plugin-prismjs to provide code block highlighting via PrismJS.

By default, the theme will enable this plugin, you can set false to disable it and highlight code blocks yourself.

Info

See prismjs plugin optionsopen in new window for plugin options.

photoSwipe enabled by default

Controls vuepress-plugin-photo-swipe, providing picture browsing function.

By default, no config is required. If you don’t need this feature, please set to false.

Info

For plugin options, please refer to photo-swipe plugin optionsopen in new window.

readingTime enabled by default

Controls vuepress-plugin-reading-time2, providing word count for a page and generate an estimated reading time.

readingTime.wordPerMinute

  • Type: number
  • Default: 300

Words read per minute.

Info

For more plugin options, see reading-time2 plugin docsopen in new window.

seo enabled by default

Controls vuepress-plugin-seo2, providing search engine enhancements.

By default, no config is required. If you don’t need this feature, please set to false.

Info

For plugin config, see seo2 plugin optionsopen in new window.

sitemap enabled by default

Controls vuepress-plugin-seo2, providing automatically Sitemap generation.

By default, no config is required. If you don’t need this feature, please set to false.

Info

For plugin config, please refer to sitemap2 plugin optionsopen in new window.

Loading...