Skip to content

Commit

Permalink
chore: remove plugin-clean-urls (#1464)
Browse files Browse the repository at this point in the history
@vuepress/plugin-clean-urls was moved to https://github.com/vuepress/vuepress-plugin-clean-urls
  • Loading branch information
shigma authored and ulivz committed Mar 27, 2019
1 parent 8a11d14 commit 7848a30
Show file tree
Hide file tree
Showing 8 changed files with 2 additions and 178 deletions.
3 changes: 0 additions & 3 deletions packages/@vuepress/plugin-clean-urls/.npmignore

This file was deleted.

5 changes: 0 additions & 5 deletions packages/@vuepress/plugin-clean-urls/README.md

This file was deleted.

22 changes: 0 additions & 22 deletions packages/@vuepress/plugin-clean-urls/index.js

This file was deleted.

26 changes: 0 additions & 26 deletions packages/@vuepress/plugin-clean-urls/package.json

This file was deleted.

2 changes: 1 addition & 1 deletion packages/docs/docs/guide/markdown.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ And providing you are in `foo/one.md`:

### Redirection for URLs <Badge text="1.0.0-alpha.37"/>

VuePress supports redirecting to clean links. If a link `/foo` is not found, VuePress will look for a existing `/foo/` or `/foo.html`. Conversely, when one of `/foo/` or `/foo.html` is not found, VuePress will also try the other. With this feature, we can customize your website's urls with the official plugin [@vuepress/plugin-clean-urls](../plugin/official/plugin-clean-urls.md).
VuePress supports redirecting to clean links. If a link `/foo` is not found, VuePress will look for a existing `/foo/` or `/foo.html`. Conversely, when one of `/foo/` or `/foo.html` is not found, VuePress will also try the other. With this feature, we can customize your website's urls with the official plugin [vuepress-plugin-clean-urls](https://vuepress.github.io/plugins/clean-urls/).

::: tip
Regardless of whether the permalink and clean-urls plugins are used, your relative path should be defined by the current file structure. In the above example, even though you set the path of `/foo/one.md` to `/foo/one/`, you should still access `/foo/two.md` via `./two.md`.
Expand Down
60 changes: 0 additions & 60 deletions packages/docs/docs/plugin/official/plugin-clean-urls.md

This file was deleted.

2 changes: 1 addition & 1 deletion packages/docs/docs/zh/guide/markdown.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@

### 链接的重定向 <Badge text="1.0.0-alpha.37"/>

VuePress 支持重定向到干净链接。如果一个链接 `/foo` 找不到,VuePress 会自行寻找一个可用的 `/foo/``/foo.html`。反过来,当 `/foo/``/foo.html` 中的一个找不到时,VuePress 也会尝试寻找另一个。借助这种特性,我们可以通过官方插件 [@vuepress/plugin-clean-urls](../plugin/official/plugin-clean-urls.md) 定制你的网站路径。
VuePress 支持重定向到干净链接。如果一个链接 `/foo` 找不到,VuePress 会自行寻找一个可用的 `/foo/``/foo.html`。反过来,当 `/foo/``/foo.html` 中的一个找不到时,VuePress 也会尝试寻找另一个。借助这种特性,我们可以通过官方插件 [vuepress-plugin-clean-urls](https://vuepress.github.io/plugins/clean-urls/) 定制你的网站路径。

::: tip 注意
无论是否使用了 permalink 和 clean-urls 插件,你的相对路径都应该依赖于当前的文件结构来定义。在上面的例子中,即使你将 `/foo/one.md` 的路径设为了 `/foo/one/`,你依然应该通过 `./two.md` 来访问 `/foo/two.md`
Expand Down
60 changes: 0 additions & 60 deletions packages/docs/docs/zh/plugin/official/plugin-clean-urls.md

This file was deleted.

0 comments on commit 7848a30

Please sign in to comment.