This is an automated email from the ASF dual-hosted git repository.
dengliming pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/shenyu-website.git
The following commit(s) were added to refs/heads/main by this push:
new 088bd0848f Fix the image path (# 678) (#881)
088bd0848f is described below
commit 088bd0848f624dbcaf7fd04dafb6e89ba4aed831
Author: Zhang Yuxuan <[email protected]>
AuthorDate: Sat Mar 25 01:38:05 2023 +0800
Fix the image path (# 678) (#881)
---
docs/plugin-center/http-process/redirect-plugin.md | 14 +++++++-------
.../plugin-center/http-process/redirect-plugin.md | 14 +++++++-------
2 files changed, 14 insertions(+), 14 deletions(-)
diff --git a/docs/plugin-center/http-process/redirect-plugin.md
b/docs/plugin-center/http-process/redirect-plugin.md
index b35736ad09..3e61f08f81 100644
--- a/docs/plugin-center/http-process/redirect-plugin.md
+++ b/docs/plugin-center/http-process/redirect-plugin.md
@@ -31,7 +31,7 @@ description: redirect plugin
## 2.1 Plugin-use procedure chart
- <img
src="../../../static/img/shenyu/plugin/redirect/redirect-procedure-en.png"
width="40%" height="30%" />
+ <img src="/img/shenyu/plugin/redirect/redirect-procedure-en.png" width="40%"
height="30%" />
## 2.2 Import pom
@@ -51,7 +51,7 @@ description: redirect plugin
- In `shenyu-admin` --> BasicConfig --> Plugin --> `Redirect` set Status
enable.
- <img
src="../../../static/img/shenyu/plugin/redirect/redirect-plugin-enable-en.png"
width="70%" height="60%" />
+ <img src="/img/shenyu/plugin/redirect/redirect-plugin-enable-en.png"
width="70%" height="60%" />
## 2.4 Config plugin
@@ -59,10 +59,10 @@ description: redirect plugin
- In `shenyu-admin` --> `PluginList` --> `HttpProcess` --> `Redirect`, add
selector config first,then add rule config:
- Add selector config
- <img
src="../../../static/img/shenyu/plugin/redirect/redirect-plugin-forward-rule-en.png"
width="80%" height="60%" />
+ <img
src="/img/shenyu/plugin/redirect/redirect-plugin-forward-rule-en.png"
width="80%" height="60%" />
- Add rule config
- <img
src="../../../static/img/shenyu/plugin/redirect/redirect-plugin-rule-en.png"
width="80%" height="60%" />
+ <img src="/img/shenyu/plugin/redirect/redirect-plugin-rule-en.png"
width="80%" height="60%" />
## 2.5 Examples
@@ -78,17 +78,17 @@ description: redirect plugin
- Invoke the interface declared by selectors and rules will redirect to the
specified path.
- In this demo, it will jump to [ShenYu official
website](https://shenyu.apache.org)
- <img src="../../../static/img/shenyu/plugin/redirect/redirect.png"
width="70%" height="60%" />
+ <img src="/img/shenyu/plugin/redirect/redirect.png" width="70%"
height="60%" />
### 2.5.2 Gateway's own interface forwarding
- When the matching rules are met, the service will use the
`DispatcherHandler` internal interface for forwarding.
- To implement the gateway's own interface forwarding, we need to use `/` as
the prefix in the configuration path. The specific configuration is as shown in
the figure below.
- <img src="../../../static/img/shenyu/plugin/redirect/demo2-en.png"
width="70%" height="60%" />
+ <img src="/img/shenyu/plugin/redirect/demo2-en.png" width="70%"
height="60%" />
# 3. How to disable plugin
- In `shenyu-admin` --> BasicConfig --> Plugin --> `Redirect` set Status
disable.
- <img
src="../../../static/img/shenyu/plugin/redirect/disable-redirect-plugin-zh.png"
width="70%" height="60%" />
+ <img src="/img/shenyu/plugin/redirect/disable-redirect-plugin-zh.png"
width="70%" height="60%" />
diff --git
a/i18n/zh/docusaurus-plugin-content-docs/version-2.5.1/plugin-center/http-process/redirect-plugin.md
b/i18n/zh/docusaurus-plugin-content-docs/version-2.5.1/plugin-center/http-process/redirect-plugin.md
index 760a1a2c5c..5fa8cf8ef3 100644
---
a/i18n/zh/docusaurus-plugin-content-docs/version-2.5.1/plugin-center/http-process/redirect-plugin.md
+++
b/i18n/zh/docusaurus-plugin-content-docs/version-2.5.1/plugin-center/http-process/redirect-plugin.md
@@ -31,7 +31,7 @@ description: redirect插件
## 2.1 插件使用流程图
-<img
src="../../../../../../static/img/shenyu/plugin/redirect/redirect-procedure-zh.png"
width="40%" height="30%" />
+<img src="/img/shenyu/plugin/redirect/redirect-procedure-zh.png" width="40%"
height="30%" />
## 2.2 导入 pom
@@ -51,7 +51,7 @@ description: redirect插件
- 在 `shenyu-admin` --> 基础配置 --> 插件管理 --> `redirect` 设置为开启。
- <img
src="../../../../../../static/img/shenyu/plugin/redirect/redirect-plugin-enable-zh.png"
width="70%" height="60%" />
+ <img src="/img/shenyu/plugin/redirect/redirect-plugin-enable-zh.png"
width="70%" height="60%" />
## 2.4 配置插件
@@ -59,11 +59,11 @@ description: redirect插件
- `shenyu-admin`插件列表 --> `HttpProcess` --> `Redirect`,先添加选择器,然后添加规则:
- 添加选择器:
- <img
src="../../../../../../static/img/shenyu/plugin/redirect/redirect-plugin-forward-rule-zh.png"
width="70%" height="60%" />
+ <img src="/img/shenyu/plugin/redirect/redirect-plugin-forward-rule-zh.png"
width="70%" height="60%" />
- 添加规则:
- <img
src="../../../../../../static/img/shenyu/plugin/redirect/redirect-plugin-rule-zh.png"
width="70%" height="60%" />
+ <img src="/img/shenyu/plugin/redirect/redirect-plugin-rule-zh.png"
width="70%" height="60%" />
## 2.5 示例
@@ -79,17 +79,17 @@ description: redirect插件
- 调用选择器和规则声明的接口,将会重定向至指定路径。
- 在本例中,将跳转至 [ShenYu 官网](https://shenyu.apache.org)
- <img src="../../../../../../static/img/shenyu/plugin/redirect/redirect.png"
width="70%" height="60%" />
+ <img src="/img/shenyu/plugin/redirect/redirect.png" width="70%" height="60%"
/>
### 2.5.2 网关自身接口转发
- 当满足匹配规则时,服务内部会使用 `DispatcherHandler` 内部接口转发。
- 要实现网关自身接口转发,我们需要在配置路径使用 `/` 作为前缀开始,具体配置如下图。
- <img src="../../../../../../static/img/shenyu/plugin/redirect/demo2-zh.png"
width="70%" height="60%" />
+ <img src="/img/shenyu/plugin/redirect/demo2-zh.png" width="70%" height="60%"
/>
# 3. 如何禁用插件
- 在 `shenyu-admin` --> 基础配置 --> 插件管理 --> `Redirect` 设置为禁用。
- <img
src="../../../../../../static/img/shenyu/plugin/redirect/disable-redirect-plugin-zh.png"
width="70%" height="60%" />
+ <img src="/img/shenyu/plugin/redirect/disable-redirect-plugin-zh.png"
width="70%" height="60%" />