Skip to content

Commit 7848a30

Browse files
shigmaulivz
authored andcommitted
chore: remove plugin-clean-urls (#1464)
@vuepress/plugin-clean-urls was moved to https://github.com/vuepress/vuepress-plugin-clean-urls
1 parent 8a11d14 commit 7848a30

File tree

8 files changed

+2
-178
lines changed

8 files changed

+2
-178
lines changed

packages/@vuepress/plugin-clean-urls/.npmignore

-3
This file was deleted.

packages/@vuepress/plugin-clean-urls/README.md

-5
This file was deleted.

packages/@vuepress/plugin-clean-urls/index.js

-22
This file was deleted.

packages/@vuepress/plugin-clean-urls/package.json

-26
This file was deleted.

packages/docs/docs/guide/markdown.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ And providing you are in `foo/one.md`:
3737

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

40-
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).
40+
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/).
4141

4242
::: tip
4343
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`.

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

-60
This file was deleted.

packages/docs/docs/zh/guide/markdown.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737

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

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

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

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

-60
This file was deleted.

0 commit comments

Comments
 (0)