Skip to content

Commit

Permalink
docs(theme-default): tweak plugins config
Browse files Browse the repository at this point in the history
  • Loading branch information
meteorlxy committed May 31, 2021
1 parent cc27026 commit acbb1a7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
14 changes: 7 additions & 7 deletions docs/reference/default-theme/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,7 @@ module.exports = {

This is mainly for a11y purpose.

## Plugins
## Plugins Config

### themePlugins

Expand All @@ -545,7 +545,7 @@ module.exports = {

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.

#### themePlugins.activeHeaderLinks
### themePlugins.activeHeaderLinks

- Type: `boolean`

Expand All @@ -555,7 +555,7 @@ module.exports = {

Enable [@vuepress/plugin-active-header-links](../plugin/active-header-links.md) or not.

#### themePlugins.backToTop
### themePlugins.backToTop

- Type: `boolean`

Expand All @@ -565,7 +565,7 @@ module.exports = {

Enable [@vuepress/plugin-back-to-top](../plugin/back-to-top.md) or not.

#### themePlugins.container
### themePlugins.container

- Type: `Record<ContainerType, boolean>`

Expand All @@ -585,7 +585,7 @@ module.exports = {
- Also see:
- [Default Theme > Markdown > Custom Containers](./markdown.md#custom-containers)

#### themePlugins.git
### themePlugins.git

- Type: `boolean`

Expand All @@ -595,7 +595,7 @@ module.exports = {

Enable [@vuepress/plugin-git](../plugin/git.md) or not.

#### themePlugins.mediumZoom
### themePlugins.mediumZoom

- Type: `boolean`

Expand All @@ -605,7 +605,7 @@ module.exports = {

Enable [@vuepress/plugin-medium-zoom](../plugin/medium-zoom.md) or not.

#### themePlugins.nprogress
### themePlugins.nprogress

- Type: `boolean`

Expand Down
12 changes: 6 additions & 6 deletions docs/zh/reference/default-theme/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,7 @@ module.exports = {

它主要是为了站点的可访问性 (a11y) 。

## 插件
## 插件配置

### themePlugins

Expand All @@ -545,7 +545,7 @@ module.exports = {

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

#### themePlugins.activeHeaderLinks
### themePlugins.activeHeaderLinks

- 类型: `boolean`

Expand All @@ -565,7 +565,7 @@ module.exports = {

是否启用 [@vuepress/plugin-back-to-top](../plugin/back-to-top.md)

#### themePlugins.container
### themePlugins.container

- 类型: `Record<ContainerType, boolean>`

Expand All @@ -585,7 +585,7 @@ module.exports = {
- 参考:
- [默认主题 > Markdown > 自定义容器](./markdown.md#自定义容器)

#### themePlugins.git
### themePlugins.git

- 类型: `boolean`

Expand All @@ -595,7 +595,7 @@ module.exports = {

是否启用 [@vuepress/plugin-git](../plugin/git.md)

#### themePlugins.mediumZoom
### themePlugins.mediumZoom

- 类型: `boolean`

Expand All @@ -605,7 +605,7 @@ module.exports = {

是否启用 [@vuepress/plugin-medium-zoom](../plugin/medium-zoom.md)

#### themePlugins.nprogress
### themePlugins.nprogress

- 类型: `boolean`

Expand Down

0 comments on commit acbb1a7

Please sign in to comment.