This is an automated email from the ASF dual-hosted git repository.

xiaoyu pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-shenyu-website.git


The following commit(s) were added to refs/heads/main by this push:
     new e847356  update english document for redirect plugin (#183)
e847356 is described below

commit e8473563e509911b96328ed7f2b5805f5dac9a71
Author: midnight2104 <[email protected]>
AuthorDate: Fri Aug 6 14:34:31 2021 +0800

    update english document for redirect plugin (#183)
---
 content/en/projects/shenyu/dubbo-proxy/index.md    | 162 ++++++++++-----------
 .../en/projects/shenyu/redirect-plugin/index.md    |  12 +-
 .../zh/projects/shenyu/redirect-plugin/index.md    |  11 +-
 static/img/shenyu/plugin/redirect/redirect-01.png  | Bin 157294 -> 0 bytes
 static/img/shenyu/plugin/redirect/redirect-02.png  | Bin 163002 -> 0 bytes
 .../plugin/redirect/redirect-plugin-enable-en.png  | Bin 0 -> 91179 bytes
 .../plugin/redirect/redirect-plugin-enable-zh.png  | Bin 0 -> 100815 bytes
 .../redirect/redirect-plugin-forward-rule-en.png   | Bin 0 -> 82569 bytes
 .../redirect/redirect-plugin-forward-rule-zh.png   | Bin 0 -> 87299 bytes
 .../plugin/redirect/redirect-plugin-rule-en.png    | Bin 0 -> 84560 bytes
 .../plugin/redirect/redirect-plugin-rule-zh.png    | Bin 0 -> 88457 bytes
 11 files changed, 97 insertions(+), 88 deletions(-)

diff --git a/content/en/projects/shenyu/dubbo-proxy/index.md 
b/content/en/projects/shenyu/dubbo-proxy/index.md
index 33e2e2d..065e65e 100644
--- a/content/en/projects/shenyu/dubbo-proxy/index.md
+++ b/content/en/projects/shenyu/dubbo-proxy/index.md
@@ -20,83 +20,83 @@ For details about data synchronization configurations, see 
[Data Synchronization
  
   Alibaba dubbo user, configure the dubbo version and registry center with 
yours.
 
-    ```xml
-    <!-- apache shenyu alibaba dubbo plugin start-->
-    <dependency>
-      <groupId>org.apache.shenyu</groupId>
-      <artifactId>shenyu-spring-boot-starter-plugin-alibaba-dubbo</artifactId>
-       <version>${project.version}</version>
-    </dependency>
-    <!-- apache shenyu  alibaba dubbo plugin end-->
-    <dependency>
-      <groupId>com.alibaba</groupId>
-      <artifactId>dubbo</artifactId>
-      <version>2.6.5</version>
-    </dependency>
-    <dependency>
-      <groupId>org.apache.curator</groupId>
-      <artifactId>curator-client</artifactId>
-      <version>4.0.1</version>
-    </dependency>
-    <dependency>
-      <groupId>org.apache.curator</groupId>
-      <artifactId>curator-framework</artifactId>
-      <version>4.0.1</version>
-    </dependency>
-    <dependency>
-      <groupId>org.apache.curator</groupId>
-      <artifactId>curator-recipes</artifactId>
-      <version>4.0.1</version>
-    </dependency>
-    ```
+```xml
+<!-- apache shenyu alibaba dubbo plugin start-->
+<dependency>
+  <groupId>org.apache.shenyu</groupId>
+  <artifactId>shenyu-spring-boot-starter-plugin-alibaba-dubbo</artifactId>
+   <version>${project.version}</version>
+</dependency>
+<!-- apache shenyu  alibaba dubbo plugin end-->
+<dependency>
+  <groupId>com.alibaba</groupId>
+  <artifactId>dubbo</artifactId>
+  <version>2.6.5</version>
+</dependency>
+<dependency>
+  <groupId>org.apache.curator</groupId>
+  <artifactId>curator-client</artifactId>
+  <version>4.0.1</version>
+</dependency>
+<dependency>
+  <groupId>org.apache.curator</groupId>
+  <artifactId>curator-framework</artifactId>
+  <version>4.0.1</version>
+</dependency>
+<dependency>
+  <groupId>org.apache.curator</groupId>
+  <artifactId>curator-recipes</artifactId>
+  <version>4.0.1</version>
+</dependency>
+```
   
  Apache dubbo user, configure the dubbo version and registry center with yours.
     
-    ```xml
-    <!-- apache shenyu apache dubbo plugin start-->
-    <dependency>
-       <groupId>org.apache.shenyu</groupId>
-       <artifactId>shenyu-spring-boot-starter-plugin-apache-dubbo</artifactId>
-       <version>${project.version}</version>
-    </dependency>
-    <!-- apache shenyu apache dubbo plugin end-->
-
-    <dependency>
-       <groupId>org.apache.dubbo</groupId>
-       <artifactId>dubbo</artifactId>
-       <version>2.7.5</version>
-    </dependency>
-    <!-- Dubbo Nacos registry dependency start -->
-    <dependency>
-       <groupId>org.apache.dubbo</groupId>
-       <artifactId>dubbo-registry-nacos</artifactId>
-       <version>2.7.5</version>
-    </dependency>
-    <dependency>
-       <groupId>com.alibaba.nacos</groupId>
-       <artifactId>nacos-client</artifactId>
-       <version>1.1.4</version>
-    </dependency>
-    <!-- Dubbo Nacos registry dependency  end-->
-
-    <!-- Dubbo zookeeper registry dependency start-->
-    <dependency>
-       <groupId>org.apache.curator</groupId>
-       <artifactId>curator-client</artifactId>
-       <version>4.0.1</version>
-    </dependency>
-    <dependency>
-       <groupId>org.apache.curator</groupId>
-       <artifactId>curator-framework</artifactId>
-       <version>4.0.1</version>
-    </dependency>
-    <dependency>
-       <groupId>org.apache.curator</groupId>
-       <artifactId>curator-recipes</artifactId>
-       <version>4.0.1</version>
-    </dependency>
-    <!-- Dubbo zookeeper registry dependency end -->
-    ```
+```xml
+<!-- apache shenyu apache dubbo plugin start-->
+<dependency>
+   <groupId>org.apache.shenyu</groupId>
+   <artifactId>shenyu-spring-boot-starter-plugin-apache-dubbo</artifactId>
+   <version>${project.version}</version>
+</dependency>
+<!-- apache shenyu apache dubbo plugin end-->
+
+<dependency>
+   <groupId>org.apache.dubbo</groupId>
+   <artifactId>dubbo</artifactId>
+   <version>2.7.5</version>
+</dependency>
+<!-- Dubbo Nacos registry dependency start -->
+<dependency>
+   <groupId>org.apache.dubbo</groupId>
+   <artifactId>dubbo-registry-nacos</artifactId>
+   <version>2.7.5</version>
+</dependency>
+<dependency>
+   <groupId>com.alibaba.nacos</groupId>
+   <artifactId>nacos-client</artifactId>
+   <version>1.1.4</version>
+</dependency>
+<!-- Dubbo Nacos registry dependency  end-->
+
+<!-- Dubbo zookeeper registry dependency start-->
+<dependency>
+   <groupId>org.apache.curator</groupId>
+   <artifactId>curator-client</artifactId>
+   <version>4.0.1</version>
+</dependency>
+<dependency>
+   <groupId>org.apache.curator</groupId>
+   <artifactId>curator-framework</artifactId>
+   <version>4.0.1</version>
+</dependency>
+<dependency>
+   <groupId>org.apache.curator</groupId>
+   <artifactId>curator-recipes</artifactId>
+   <version>4.0.1</version>
+</dependency>
+<!-- Dubbo zookeeper registry dependency end -->
+```
 
 * restart gateway service.
 
@@ -109,13 +109,13 @@ For details about data synchronization configurations, 
see [Data Synchronization
        
       Add these dependencies:
        
-        ```xml
-        <dependency>
-             <groupId>org.apache.shenyu</groupId>
-             
<artifactId>shenyu-spring-boot-starter-client-alibaba-dubbo</artifactId>
-             <version>${shenyu.version}</version>
-        </dependency>
-        ```
+    ```xml
+    <dependency>
+         <groupId>org.apache.shenyu</groupId>
+         
<artifactId>shenyu-spring-boot-starter-client-alibaba-dubbo</artifactId>
+         <version>${shenyu.version}</version>
+    </dependency>
+    ```
 
     * Spring
       
diff --git a/content/en/projects/shenyu/redirect-plugin/index.md 
b/content/en/projects/shenyu/redirect-plugin/index.md
index f4ef005..6c61a76 100644
--- a/content/en/projects/shenyu/redirect-plugin/index.md
+++ b/content/en/projects/shenyu/redirect-plugin/index.md
@@ -11,9 +11,12 @@ When the Apache ShenYu gateway makes proxy calls to the 
target service, it also
 ## Plugin Setting
 
 * In `shenyu-admin` --> BasicConfig --> Plugin --> `redirect` , set to enable.
-* Introduce `redirect` support in the pox.xml file of the gateway.
 * If the user don't use, please disable the plugin in the background.
-* Selectors and rules, only matching requests will be forwarded and 
redirected, please see: [Selector And Rule Config](../selector-and-rule)。
+* Selectors and rules, only matching requests will be forwarded and 
redirected, please see: [Selector And Rule Config](../selector-and-rule) .
+
+
+<img src="/img/shenyu/plugin/redirect/redirect-plugin-enable-en.png" 
width="70%" height="60%" />
+
 
 ## Maven Dependency
 
@@ -38,11 +41,12 @@ Add the plugin dependency in the pom.xml file of the 
shenyu-bootstrap project.
 * When we configure a custom path in `Rule`, it should be a reachable service 
path.
 * When the request is matched, the `ShenYu Gateway` will perform the `308` 
service jump according to the customized path.
 
-![Redirect](/img/shenyu/plugin/redirect/redirect-01.png)
+<img src="/img/shenyu/plugin/redirect/redirect-plugin-rule-en.png" width="70%" 
height="60%" />
+
 
 ### 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.
 
-![Forwarding](/img/shenyu/plugin/redirect/redirect-02.png)
+<img src="/img/shenyu/plugin/redirect/redirect-plugin-forward-rule-en.png" 
width="70%" height="60%" />
diff --git a/content/zh/projects/shenyu/redirect-plugin/index.md 
b/content/zh/projects/shenyu/redirect-plugin/index.md
index 0ee32e6..0a040d2 100644
--- a/content/zh/projects/shenyu/redirect-plugin/index.md
+++ b/content/zh/projects/shenyu/redirect-plugin/index.md
@@ -13,6 +13,10 @@ description: redirect插件
 - 在 `shenyu-admin` --> 基础配置 --> 插件管理 --> `redirect`,设置为开启。
 - 如果用户不需要,可以把插件禁用。
 
+
+<img src="/img/shenyu/plugin/redirect/redirect-plugin-enable-zh.png" 
width="70%" height="60%" />
+
+
 ## 插件使用
 
 - 在网关的 `pom.xml` 文件中添加 `redirect` 的支持。
@@ -36,13 +40,14 @@ description: redirect插件
 #### 重定向
 
 * 我们在 `Rule` 配置自定义路径时,应该为一个可达的服务路径。
-* 当匹配到请求后,根据自定义的路径,`Apache ShenYu 网关`会进行 `308` 服务跳转。
+* 当匹配到请求后,根据自定义的路径,`Apache ShenYu`网关会进行 `308` 服务跳转。
+
+<img src="/img/shenyu/plugin/redirect/redirect-plugin-rule-zh.png" width="70%" 
height="60%" />
 
-![重定向配置](/img/shenyu/plugin/redirect/redirect-01.png)
 
 #### 网关自身接口转发
 
 * 当满足匹配规则时,服务内部会使用 `DispatcherHandler` 内部接口转发。
 * 要实现网关自身接口转发,我们需要在配置路径使用 `/` 作为前缀开始,具体配置如下图。
 
-![自身接口转发](/img/shenyu/plugin/redirect/redirect-02.png)
+<img src="/img/shenyu/plugin/redirect/redirect-plugin-forward-rule-zh.png" 
width="70%" height="60%" />
diff --git a/static/img/shenyu/plugin/redirect/redirect-01.png 
b/static/img/shenyu/plugin/redirect/redirect-01.png
deleted file mode 100644
index 0b9f2ee..0000000
Binary files a/static/img/shenyu/plugin/redirect/redirect-01.png and /dev/null 
differ
diff --git a/static/img/shenyu/plugin/redirect/redirect-02.png 
b/static/img/shenyu/plugin/redirect/redirect-02.png
deleted file mode 100644
index 38f4d6d..0000000
Binary files a/static/img/shenyu/plugin/redirect/redirect-02.png and /dev/null 
differ
diff --git a/static/img/shenyu/plugin/redirect/redirect-plugin-enable-en.png 
b/static/img/shenyu/plugin/redirect/redirect-plugin-enable-en.png
new file mode 100644
index 0000000..d75500d
Binary files /dev/null and 
b/static/img/shenyu/plugin/redirect/redirect-plugin-enable-en.png differ
diff --git a/static/img/shenyu/plugin/redirect/redirect-plugin-enable-zh.png 
b/static/img/shenyu/plugin/redirect/redirect-plugin-enable-zh.png
new file mode 100644
index 0000000..9845df6
Binary files /dev/null and 
b/static/img/shenyu/plugin/redirect/redirect-plugin-enable-zh.png differ
diff --git 
a/static/img/shenyu/plugin/redirect/redirect-plugin-forward-rule-en.png 
b/static/img/shenyu/plugin/redirect/redirect-plugin-forward-rule-en.png
new file mode 100644
index 0000000..05a4d37
Binary files /dev/null and 
b/static/img/shenyu/plugin/redirect/redirect-plugin-forward-rule-en.png differ
diff --git 
a/static/img/shenyu/plugin/redirect/redirect-plugin-forward-rule-zh.png 
b/static/img/shenyu/plugin/redirect/redirect-plugin-forward-rule-zh.png
new file mode 100644
index 0000000..5651750
Binary files /dev/null and 
b/static/img/shenyu/plugin/redirect/redirect-plugin-forward-rule-zh.png differ
diff --git a/static/img/shenyu/plugin/redirect/redirect-plugin-rule-en.png 
b/static/img/shenyu/plugin/redirect/redirect-plugin-rule-en.png
new file mode 100644
index 0000000..dbfaae8
Binary files /dev/null and 
b/static/img/shenyu/plugin/redirect/redirect-plugin-rule-en.png differ
diff --git a/static/img/shenyu/plugin/redirect/redirect-plugin-rule-zh.png 
b/static/img/shenyu/plugin/redirect/redirect-plugin-rule-zh.png
new file mode 100644
index 0000000..f730eac
Binary files /dev/null and 
b/static/img/shenyu/plugin/redirect/redirect-plugin-rule-zh.png differ

Reply via email to