Skip to content

Commit ccaab2d

Browse files
committed
docs: update
1 parent 71574f2 commit ccaab2d

File tree

2 files changed

+12
-11
lines changed

2 files changed

+12
-11
lines changed

Diff for: packages/docs/docs/plugin/official/plugin-active-header-links.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
---
22
title: active-header-links
3-
metaTitle: Active-Header-Links Plugin | VuePress
3+
metaTitle: A plugin of automatically activating sidebar links when page scrolls | VuePress
44
---
55

66
# [@vuepress/plugin-active-header-links](https://github.com/vuejs/vuepress/tree/master/packages/%40vuepress/plugin-active-header-links)
77

8-
> A plugin of automatically update header links when page scrolls
8+
> A plugin of automatically activating sidebar links when page scrolls
99
1010
## Install
1111

Original file line numberDiff line numberDiff line change
@@ -1,34 +1,35 @@
11
---
22
title: active-header-links
3-
metaTitle: Active-Header-Links 插件 | VuePress
3+
metaTitle: 页面滚动时自动激活侧边栏链接的插件 | VuePress
44
---
55

66
# [@vuepress/plugin-active-header-links](https://github.com/vuejs/vuepress/tree/master/packages/@vuepress/plugin-active-header-linksd)
77

8-
> 页面滚动时自动更新标题链接的插件
9-
## Install
8+
> 页面滚动时自动激活侧边栏链接的插件
9+
10+
## 安装
1011

1112
```bash
1213
yarn add -D @vuepress/plugin-active-header-links
1314
# OR npm install -D @vuepress/plugin-active-header-links
1415
```
1516

16-
## Usage
17+
## 使用
1718

1819
```javascript
1920
module.exports = {
2021
plugins: ['@vuepress/active-header-links']
2122
}
2223
```
2324

24-
## Options
25+
## 选项
2526

2627
### sidebarLinkSelector
2728

28-
- Type: `string`
29-
- Default: `.sidebar-link`
29+
- 类型: `string`
30+
- 默认值: `.sidebar-link`
3031

3132
### headerAnchorSelector
3233

33-
- Type: `string`
34-
- Default: `.header-anchor'`
34+
- 类型: `string`
35+
- 默认值: `.header-anchor'`

0 commit comments

Comments
 (0)