Skip to content

Commit

Permalink
docs($cn): sync plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
ulivz committed Nov 13, 2018
1 parent dfa6e54 commit 9521ac4
Show file tree
Hide file tree
Showing 13 changed files with 28 additions and 18 deletions.
6 changes: 3 additions & 3 deletions packages/docs/docs/plugin/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

Plugins usually add global-level functionality to VuePress. There is no strictly defined scope for a plugin - there are typically several types of plugins:

1. Extend the data generated at compile time. e.g. [@vuepress/plugin-last-updated](./official/plugin-last-updated.md).
2. Generate extra files before or after compilation. e.g. [@vuepress/plugin-pwa](./official/plugin-pwa.md).
3. Add extra pages. e.g. [@vuepress/plugin-i18n-ui](./official/plugin-i18n-ui.md).
1. Extend the data generated at compile time. e.g. [@vuepress/plugin-last-updated](./official/plugin-last-updated.md);
2. Generate extra files before or after compilation. e.g. [@vuepress/plugin-pwa](./official/plugin-pwa.md);
3. Add extra pages. e.g. [@vuepress/plugin-i18n-ui](./official/plugin-i18n-ui.md);
4. Inject global UI. e.g. [@vuepress/plugin-back-to-top](./official/plugin-back-to-top.md).

![Architecture of VuePress](/architecture.png)
2 changes: 1 addition & 1 deletion packages/docs/docs/plugin/official/plugin-back-to-top.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: back-to-top
metaTitle: Back-To-Top | VuePress
metaTitle: Back-To-Top Plugin | VuePress
---

# [@vuepress/plugin-back-to-top](https://github.com/vuejs/vuepress/tree/master/packages/%40vuepress/plugin-back-to-top)
Expand Down
8 changes: 4 additions & 4 deletions packages/docs/docs/zh/plugin/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

插件通常会为 VuePress 添加全局功能。插件的范围没有限制——一般有下面几种:

1. 拓展在编译期生成的数据,如:[@vuepress/plugin-last-updated](https://github.com/vuejs/vuepress/tree/master/packages/@vuepress/plugin-last-updated).
2. 在编译前后生成额外的文件,如:[@vuepress/plugin-pwa](https://github.com/vuejs/vuepress/tree/master/packages/%40vuepress/plugin-pwa)
3. 增加额外的页面,如:[@vuepress/plugin-i18n-ui](https://github.com/vuejs/vuepress/tree/master/packages/@vuepress/plugin-i18n-ui)
4. 注入全局的 UI, 如:[@vuepress/plugin-back-to-top](https://github.com/vuejs/vuepress/tree/master/packages/%40vuepress/plugin-back-to-top).
1. 拓展在编译期生成的数据,如:[@vuepress/plugin-last-updated](./official/plugin-last-updated.md)
2. 在编译前后生成额外的文件,如:[@vuepress/plugin-pwa](./official/plugin-pwa.md)
3. 增加额外的页面,如:[@vuepress/plugin-i18n-ui](./official/plugin-i18n-ui.md)
4. 注入全局的 UI, 如:[@vuepress/plugin-back-to-top](./official/plugin-back-to-top.md)

![Architecture of VuePress](/architecture.png)
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
---
title: active-header-links
metaTitle: Active-Header-Links 插件 | VuePress
---

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

> 页面滚动时自动更新标题链接的插件
## Install
Expand Down
3 changes: 2 additions & 1 deletion packages/docs/docs/zh/plugin/official/plugin-back-to-top.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
---
title: back-to-top
metaTitle: Back-To-Top 插件 | VuePress
---

# @vuepress/plugin-back-to-top
# [@vuepress/plugin-back-to-top](https://github.com/vuejs/vuepress/tree/master/packages/@vuepress/plugin-back-to-top)

> back-to-top 插件.
Expand Down
3 changes: 2 additions & 1 deletion packages/docs/docs/zh/plugin/official/plugin-blog.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
---
title: blog
metaTitle: Blog 插件 | VuePress
---

# @vuepress/plugin-blog
# [@vuepress/plugin-blog](https://github.com/vuejs/vuepress/tree/master/packages/@vuepress/plugin-blog)

> 博客插件
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
---
title: google-analytics
metaTitle: Google Analytics 插件 | VuePress
---

# @vuepress/plugin-google-analytics
# [@vuepress/plugin-google-analytics](https://github.com/vuejs/vuepress/tree/master/packages/@vuepress/plugin-google-analytics)

> Google analytics 插件
Expand Down
3 changes: 2 additions & 1 deletion packages/docs/docs/zh/plugin/official/plugin-i18n-ui.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
---
title: i18n-ui
metaTitle: I18n-UI 插件 | VuePress
---

# @vuepress/plugin-i18n-ui
# [@vuepress/plugin-i18n-ui](https://github.com/vuejs/vuepress/tree/master/packages/@vuepress/plugin-i18n-ui)

> i18n-ui 插件。
Expand Down
3 changes: 2 additions & 1 deletion packages/docs/docs/zh/plugin/official/plugin-last-updated.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
---
title: last-updated
metaTitle: Last-Updated 插件 | VuePress
---

# @vuepress/plugin-last-updated
# [@vuepress/plugin-last-updated](https://github.com/vuejs/vuepress/tree/master/packages/@vuepress/plugin-last-updated)

> last-updated 插件。
Expand Down
3 changes: 2 additions & 1 deletion packages/docs/docs/zh/plugin/official/plugin-medium-zoom.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
---
title: medium-zoom
metaTitle: Medium-Zoom 插件 | VuePress
---

# @vuepress/plugin-medium-zoom
# [@vuepress/plugin-medium-zoom](https://github.com/vuejs/vuepress/tree/master/packages/@vuepress/plugin-medium-zoom)

> [medium-zoom](https://github.com/francoischalifour/medium-zoom) 插件
Expand Down
3 changes: 2 additions & 1 deletion packages/docs/docs/zh/plugin/official/plugin-pagination.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
---
title: pagination
metaTitle: Pagination 插件 | VuePress
---

# @vuepress/plugin-pagination
# [@vuepress/plugin-pagination](https://github.com/vuejs/vuepress/tree/master/packages/@vuepress/plugin-pagination)

> 分页器插件
Expand Down
3 changes: 2 additions & 1 deletion packages/docs/docs/zh/plugin/official/plugin-pwa.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
---
title: pwa
metaTitle: PWA 插件 | VuePress
---

# @vuepress/plugin-pwa
# [@vuepress/plugin-pwa](https://github.com/vuejs/vuepress/tree/master/packages/@vuepress/plugin-pwa)

> PWA 插件
Expand Down
3 changes: 2 additions & 1 deletion packages/docs/docs/zh/plugin/official/plugin-search.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
---
title: search
metaTitle: Search 插件 | VuePress
---

# @vuepress/plugin-search
# [@vuepress/plugin-search](https://github.com/vuejs/vuepress/tree/master/packages/@vuepress/plugin-search)

> 基于 [Headers](../../miscellaneous/glossary.md#headers) 的搜索插件
Expand Down

0 comments on commit 9521ac4

Please sign in to comment.