Skip to content

Commit

Permalink
docs: active-header-links
Browse files Browse the repository at this point in the history
  • Loading branch information
ulivz committed Nov 5, 2018
1 parent 3a79635 commit 985471b
Show file tree
Hide file tree
Showing 3 changed files with 70 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/docs/docs/.vuepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ function getPluginSidebar (pluginTitle, pluginIntro, officialPluginTitle) {
collapsable: false,
children: [
'official/plugin-search',
'official/plugin-active-header-links',
'official/plugin-pwa',
'official/plugin-blog',
'official/plugin-pagination',
Expand Down
35 changes: 35 additions & 0 deletions packages/docs/docs/plugin/official/plugin-active-header-links.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---
title: active-header-links
---

# @vuepress/plugin-active-header-links

> A plugin of automatically update header links when page scrolls
## Install

```bash
yarn add -D @vuepress/plugin-active-header-links
# OR npm install -D @vuepress/plugin-active-header-links
```

## Usage

```javascript
module.exports = {
plugins: ['@vuepress/active-header-links']
}
```

## Options

### sidebarLinkSelector

- Type: `string`
- Default: `.sidebar-link`

### headerAnchorSelector

- Type: `string`
- Default: `.header-anchor'`

Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
title: active-header-links
---

# @vuepress/plugin-active-header-links

> 页面滚动时自动更新标题链接的插件
## Install

```bash
yarn add -D @vuepress/plugin-active-header-links
# OR npm install -D @vuepress/plugin-active-header-links
```

## Usage

```javascript
module.exports = {
plugins: ['@vuepress/active-header-links']
}
```

## Options

### sidebarLinkSelector

- Type: `string`
- Default: `.sidebar-link`

### headerAnchorSelector

- Type: `string`
- Default: `.header-anchor'`

0 comments on commit 985471b

Please sign in to comment.