Skip to content

Commit 8f42d19

Browse files
shigmaulivz
authored andcommitted
docs: refactor official plugins (vuejs#1442)
1 parent 9caada0 commit 8f42d19

File tree

6 files changed

+24
-6
lines changed

6 files changed

+24
-6
lines changed

packages/docs/docs/plugin/official/plugin-clean-urls.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ metaTitle: A plugin of automatically generating clean urls | VuePress
55

66
# [@vuepress/plugin-clean-urls](https://github.com/vuejs/vuepress/tree/master/packages/@vuepress/plugin-clean-urls)
77

8-
> A plugin of automatically generating clean urls
8+
> A plugin for automatically generating clean urls. <Badge text="1.0.0-alpha.40+"/>
99
1010
## Install
1111

@@ -22,6 +22,15 @@ module.exports = {
2222
}
2323
```
2424

25+
::: warning
26+
This plugin will always work on your dev server, but VuePress **does not have the right** to modify server identification. If you want your URLs to follow a certain pattern (e.g. `/routing` instead of `/routing.html` or `routing/`), you should make sure that your server would treat it as an HTML. This means that you may need to configure your server specifically.
27+
28+
References:
29+
30+
- For Netify users: [https://www.netlify.com/docs/redirects/#trailing-slash](https://www.netlify.com/docs/redirects/#trailing-slash).
31+
- For Surge users: [https://surge.sh/help/using-clean-urls-automatically](https://surge.sh/help/using-clean-urls-automatically).
32+
:::
33+
2534
## Options
2635

2736
### normalSuffix

packages/docs/docs/plugin/official/plugin-container.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ metaTitle: A plugin for registering markdown containers | VuePress
55

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

8-
> A plugin for registering markdown containers
8+
> A plugin for registering markdown containers, based on [markdown-it-container](https://github.com/markdown-it/markdown-it-container). <Badge text="1.0.0-alpha.41+"/>
99
1010
## Install
1111

packages/docs/docs/plugin/official/plugin-nprogress.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ metaTitle: Nprogress Plugin | VuePress
55

66
# [@vuepress/plugin-nprogress](https://github.com/vuejs/vuepress/tree/master/packages/%40vuepress/plugin-nprogress)
77

8-
> Nprogress plugin
8+
> A progress bar plugin based on [nprogress](https://github.com/rstacruz/nprogress). <Badge text="1.0.0-alpha.31+"/>
99
1010
## Install
1111

packages/docs/docs/zh/plugin/official/plugin-clean-urls.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ metaTitle: 自动生成简洁链接的插件 | VuePress
55

66
# [@vuepress/plugin-clean-urls](https://github.com/vuejs/vuepress/tree/master/packages/@vuepress/plugin-clean-urls)
77

8-
> 自动生成简洁链接的插件
8+
> 用于自动生成简洁链接的插件。<Badge text="1.0.0-alpha.40+"/>
99
1010
## 安装
1111

@@ -22,6 +22,15 @@ module.exports = {
2222
}
2323
```
2424

25+
::: warning 注意
26+
这个插件在 dev 服务器上总是生效的,但 VuePress **并没有能力**去修改服务器识别链接的方式。如果你希望你的网站地址符合某种特殊的模式(比如使用 `/routing` 而不是 `/routing.html` 或者 `routing/`),你需要确保你的服务器会将这些地址认为是 HTML。这可能意味着你需要对你的服务器进行特殊的配置。
27+
28+
参考资料:
29+
30+
- Netify 用户: [https://www.netlify.com/docs/redirects/#trailing-slash](https://www.netlify.com/docs/redirects/#trailing-slash).
31+
- Surge 用户: [https://surge.sh/help/using-clean-urls-automatically](https://surge.sh/help/using-clean-urls-automatically).
32+
:::
33+
2534
## 选项
2635

2736
### normalSuffix

packages/docs/docs/zh/plugin/official/plugin-container.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ metaTitle: Markdown 容器插件 | VuePress
55

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

8-
> Markdown 容器插件
8+
> 用于注册 Markdown 容器的插件,基于 [markdown-it-container](https://github.com/markdown-it/markdown-it-container)。<Badge text="1.0.0-alpha.41+"/>
99
1010
## 安装
1111

packages/docs/docs/zh/plugin/official/plugin-nprogress.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ metaTitle: Nprogress 插件 | VuePress
55

66
# [@vuepress/plugin-nprogress](https://github.com/vuejs/vuepress/tree/master/packages/%40vuepress/plugin-nprogress)
77

8-
> Nprogress plugin
8+
> 一个基于 [nprogress](https://github.com/rstacruz/nprogress) 的进度条插件。<Badge text="1.0.0-alpha.31+"/>
99
1010
## 安装
1111

0 commit comments

Comments
 (0)