提交 b476ba47 编写于 作者: U ULIVZ

docs: plugins documentation placeholder

上级 4cc317f2
# @vuepress/markdown # @vuepress/markdown
> markdown for vuepress > markdown for vuepress
## Usage
```javascript
const createMarkdown = require('@vuepress/markdown')
const md = createMarkdown(/* options */)
```
## Options
### slugify
- TODO
### externalLinks
- TODO
### anchor
- TODO
### toc
- TODO
### lineNumbers
- TODO
### beforeInstantiate
- TODO
### afterInstantiate
- TODO
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
```javascript ```javascript
module.exports = { module.exports = {
plugins: ['back-to-top'] plugins: ['@vuepress/back-to-top']
} }
``` ```
......
# @vuepress/plugin-blog # @vuepress/plugin-blog
> theme plugin for vuepress > theme plugin for vuepress
## Usage
```javascript
module.exports = {
plugins: ['@vuepress/blog']
}
```
## Options
### pageEnhancers
- Type: `function`
- Default: `/i18n/`
### categoryIndexPageUrl
- Type: `string`
- Default: `/category/`
### tagIndexPageUrl
- Type: `string`
- Default: `/tag/`
...@@ -2,6 +2,14 @@ ...@@ -2,6 +2,14 @@
> google-analytics plugin for vuepress > google-analytics plugin for vuepress
## Usage
```javascript
module.exports = {
plugins: ['@vuepress/google-analytics']
}
```
## Options ## Options
### ga ### ga
......
...@@ -2,7 +2,15 @@ ...@@ -2,7 +2,15 @@
> i18n-ui plugin for vuepress > i18n-ui plugin for vuepress
## Plugin Options ## Usage
```javascript
module.exports = {
plugins: ['@vuepress/i18n-ui']
}
```
## Options
### route ### route
......
...@@ -4,6 +4,14 @@ ...@@ -4,6 +4,14 @@
> Note that this plugin has been included in the core. > Note that this plugin has been included in the core.
## Usage
```js
module.exports = {
plugins: ['@vuepress/last-updated']
}
```
## Options ## Options
### transformer ### transformer
......
# @vuepress/plugin-medium-zoom # @vuepress/plugin-medium-zoom
> medium-zoom plugin for vuepress > medium-zoom plugin for vuepress
## Usage
```javascript
module.exports = {
plugins: ['@vuepress/medium-zoom']
}
```
...@@ -2,3 +2,32 @@ ...@@ -2,3 +2,32 @@
> pagination plugin for vuepress > pagination plugin for vuepress
## Usage
```javascript
module.exports = {
plugins: ['@vuepress/pagination']
}
```
## postsFilter
- Type: `function`
- Default:
```js
(({ type }) => type === 'post')`
```
## postsSorter
- Type: `function`
- Default:
```js
((prev, next) => {
const prevTime = new Date(prev.frontmatter.date).getTime()
const nextTime = new Date(next.frontmatter.date).getTime()
return prevTime - nextTime > 0 ? -1 : 1
})
```
...@@ -2,6 +2,14 @@ ...@@ -2,6 +2,14 @@
> PWA plugin for vuepress > PWA plugin for vuepress
## Usage
```javascript
module.exports = {
plugins: ['@vuepress/pwa']
}
```
## Options ## Options
### serviceWorker ### serviceWorker
......
...@@ -39,4 +39,4 @@ import SearchBox from '@SearchBox' ...@@ -39,4 +39,4 @@ import SearchBox from '@SearchBox'
- Type: `number` - Type: `number`
- Default: `true` - Default: `true`
Set the maximum number of results for search Set the maximum number of results for search.
...@@ -6,5 +6,5 @@ ...@@ -6,5 +6,5 @@
The default theme has the following plugin built in: The default theme has the following plugin built in:
- @vuepress/plugin-active-header-links - [@vuepress/plugin-active-header-links](https://github.com/vuejs/vuepress/tree/master/packages/@vuepress/plugin-active-header-links)
- @vuepress/plugin-google-analytics - [@vuepress/plugin-google-analytics](https://github.com/vuejs/vuepress/tree/master/packages/%40vuepress/plugin-google-analytics)
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册