File tree 2 files changed +12
-11
lines changed
2 files changed +12
-11
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
title : active-header-links
3
- metaTitle : Active-Header-Links Plugin | VuePress
3
+ metaTitle : A plugin of automatically activating sidebar links when page scrolls | VuePress
4
4
---
5
5
6
6
# [ @vuepress/plugin-active-header-links ] ( https://github.com/vuejs/vuepress/tree/master/packages/%40vuepress/plugin-active-header-links )
7
7
8
- > A plugin of automatically update header links when page scrolls
8
+ > A plugin of automatically activating sidebar links when page scrolls
9
9
10
10
## Install
11
11
Original file line number Diff line number Diff line change 1
1
---
2
2
title : active-header-links
3
- metaTitle : Active-Header-Links 插件 | VuePress
3
+ metaTitle : 页面滚动时自动激活侧边栏链接的插件 | VuePress
4
4
---
5
5
6
6
# [ @vuepress/plugin-active-header-links ] ( https://github.com/vuejs/vuepress/tree/master/packages/@vuepress/plugin-active-header-linksd )
7
7
8
- > 页面滚动时自动更新标题链接的插件
9
- ## Install
8
+ > 页面滚动时自动激活侧边栏链接的插件
9
+
10
+ ## 安装
10
11
11
12
``` bash
12
13
yarn add -D @vuepress/plugin-active-header-links
13
14
# OR npm install -D @vuepress/plugin-active-header-links
14
15
```
15
16
16
- ## Usage
17
+ ## 使用
17
18
18
19
``` javascript
19
20
module .exports = {
20
21
plugins: [' @vuepress/active-header-links' ]
21
22
}
22
23
```
23
24
24
- ## Options
25
+ ## 选项
25
26
26
27
### sidebarLinkSelector
27
28
28
- - Type : ` string `
29
- - Default : ` .sidebar-link `
29
+ - 类型 : ` string `
30
+ - 默认值 : ` .sidebar-link `
30
31
31
32
### headerAnchorSelector
32
33
33
- - Type : ` string `
34
- - Default : ` .header-anchor' `
34
+ - 类型 : ` string `
35
+ - 默认值 : ` .header-anchor' `
You can’t perform that action at this time.
0 commit comments