Skip to content

Commit

Permalink
docs: plugins documentation placeholder
Browse files Browse the repository at this point in the history
  • Loading branch information
ulivz committed Oct 2, 2018
1 parent 4cc317f commit b476ba4
Show file tree
Hide file tree
Showing 11 changed files with 143 additions and 9 deletions.
39 changes: 38 additions & 1 deletion packages/@vuepress/markdown/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,40 @@
# @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
4 changes: 2 additions & 2 deletions packages/@vuepress/plugin-back-to-top/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@

```javascript
module.exports = {
plugins: ['back-to-top']
plugins: ['@vuepress/back-to-top']
}
```

## Options

No options for now.
No options for now.
28 changes: 28 additions & 0 deletions packages/@vuepress/plugin-blog/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,31 @@
# @vuepress/plugin-blog

> 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/`



8 changes: 8 additions & 0 deletions packages/@vuepress/plugin-google-analytics/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

> google-analytics plugin for vuepress
## Usage

```javascript
module.exports = {
plugins: ['@vuepress/google-analytics']
}
```

## Options

### ga
Expand Down
12 changes: 10 additions & 2 deletions packages/@vuepress/plugin-i18n-ui/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,19 @@

> i18n-ui plugin for vuepress
## Plugin Options
## Usage

```javascript
module.exports = {
plugins: ['@vuepress/i18n-ui']
}
```

## Options

### route

- Type: `string`
- Default: `/i18n/`

Path to the i18n ui page.
Path to the i18n ui page.
8 changes: 8 additions & 0 deletions packages/@vuepress/plugin-last-updated/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@
> Note that this plugin has been included in the core.
## Usage

```js
module.exports = {
plugins: ['@vuepress/last-updated']
}
```

## Options

### transformer
Expand Down
10 changes: 9 additions & 1 deletion packages/@vuepress/plugin-medium-zoom/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# @vuepress/plugin-medium-zoom

> medium-zoom plugin for vuepress
> medium-zoom plugin for vuepress
## Usage

```javascript
module.exports = {
plugins: ['@vuepress/medium-zoom']
}
```
29 changes: 29 additions & 0 deletions packages/@vuepress/plugin-pagination/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,32 @@

> 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
})
```
8 changes: 8 additions & 0 deletions packages/@vuepress/plugin-pwa/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

> PWA plugin for vuepress
## Usage

```javascript
module.exports = {
plugins: ['@vuepress/pwa']
}
```

## Options

### serviceWorker
Expand Down
2 changes: 1 addition & 1 deletion packages/@vuepress/plugin-search/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ import SearchBox from '@SearchBox'
- Type: `number`
- Default: `true`

Set the maximum number of results for search
Set the maximum number of results for search.
4 changes: 2 additions & 2 deletions packages/@vuepress/theme-default/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@

The default theme has the following plugin built in:

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

0 comments on commit b476ba4

Please sign in to comment.