Skip to content

Commit ea3c232

Browse files
authored
docs: fix link error in document website (#136)
1 parent d204545 commit ea3c232

File tree

10 files changed

+11
-11
lines changed

10 files changed

+11
-11
lines changed

docs/en/guide/define-mock.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@ export default defineMock([
3434

3535
`type: MockOptionsItem | MockOptionsItem[]`
3636

37-
See [mock-config](/en/guide/mock-config)
37+
See [mock-config](./mock-config)

docs/en/guide/install.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Install
22

3-
This section will guide you through the process of installing this plugin in your project. If you have already completed the installation, please skip to [Usage](/en/guide/usage)
3+
This section will guide you through the process of installing this plugin in your project. If you have already completed the installation, please skip to [Usage](./usage)
44

55
<div class="tip custom-block" style="padding-top: 8px">
66

docs/en/guide/mock-plugin.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ export default defineConfig({
1919

2020
`type: MockServerPluginOptions`
2121

22-
See [pluginConfig](/en/guide/plugin-config)
22+
See [pluginConfig](./plugin-config)

docs/en/guide/teamwork.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ On the other hand, within the plugin, a solution is provided to address team col
77

88
## Solution
99

10-
In [File Directory Management](/guide/file-management), we have provided the recommended approach for standardizing and refining the management of `mock files`. However, even when refining to a single file for **single interface + parameter validation**, it is still inevitable to encounter conflicts when multiple people modify the same interface.
10+
In [File Directory Management](./file-management), we have provided the recommended approach for standardizing and refining the management of `mock files`. However, even when refining to a single file for **single interface + parameter validation**, it is still inevitable to encounter conflicts when multiple people modify the same interface.
1111

1212
In this scenario, a recommended solution is to localize the mock file and exclude it from being committed to git:
1313

docs/en/guide/usage.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
This section will guide you through the process of using this plugin in your project.
44

5-
If you haven't installed this plugin in your project yet, please refer to [Install](/en/guide/install).
5+
If you haven't installed this plugin in your project yet, please refer to [Install](./install).
66

77
## Step1: Import plugin
88

docs/zh/guide/define-mock.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@ export default defineMock([
3434

3535
`type: MockOptionsItem | MockOptionsItem[]`
3636

37-
查看 [mock-config](/guide/mock-config)
37+
查看 [mock-config](./mock-config)

docs/zh/guide/install.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# 安装
22

3-
本节将帮助你如何在项目中安装 此插件。如果你已经完成了安装,请直接跳转到 [使用](/guide/usage)
3+
本节将帮助你如何在项目中安装 此插件。如果你已经完成了安装,请直接跳转到 [使用](./usage)
44

55
<div class="tip custom-block" style="padding-top: 8px">
66

docs/zh/guide/mock-plugin.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ export default defineConfig({
1919

2020
`type: MockServerPluginOptions`
2121

22-
查看 [pluginConfig](/guide/plugin-config)
22+
查看 [pluginConfig](./plugin-config)

docs/zh/guide/teamwork.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
## 协作方案
99

10-
[文件目录管理](/guide/file-management) 中,我们给出了如何规范化,细化管理 `mock file` 的推荐方式,
10+
[文件目录管理](./file-management) 中,我们给出了如何规范化,细化管理 `mock file` 的推荐方式,
1111
但即使细化到了 **单一接口 + 参数验证** 为单个文件时,还是无法避免 多人同时改动改接口导致冲突。
1212

1313
在这种场景下,一种推荐的解决方案是,将 mock 文件本地化,忽略该 mock 文件 提交到 git:

docs/zh/guide/usage.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# 使用
22

3-
本节将帮助你在项目中使用此插件,如果你还未在项目中安装此插件,请先查看 [安装](/guide/install)
3+
本节将帮助你在项目中使用此插件,如果你还未在项目中安装此插件,请先查看 [安装](./install)
44

55
## Step1: 引入插件
66

@@ -83,7 +83,7 @@ export default defineConfig({
8383
└── package.json
8484
```
8585

86-
插件提供了 [`defineMock()`](/guide/define-mock) 函数帮助编写 mock 配置。
86+
插件提供了 [`defineMock()`](./define-mock) 函数帮助编写 mock 配置。
8787

8888
```ts [api.mock.ts]
8989
import { defineMock } from 'vite-plugin-mock-dev-server'

0 commit comments

Comments
 (0)