You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shenyu.apache.org by de...@apache.org on 2023/01/13 07:34:00 UTC

[shenyu-website] branch main updated: [type:refactor] adjust some code for pass ci. (#847)

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 28ac7e4407f [type:refactor] adjust some code for pass ci. (#847)
28ac7e4407f is described below

commit 28ac7e4407f358981317b753d7d5a451d0ba3aa9
Author: Shawn Jim <32...@users.noreply.github.com>
AuthorDate: Fri Jan 13 15:33:54 2023 +0800

    [type:refactor] adjust some code for pass ci. (#847)
---
 docs/user-guide/sdk-usage/shenyu-sdk-consul.md                    | 3 ++-
 docs/user-guide/sdk-usage/shenyu-sdk-etcd.md                      | 2 +-
 docs/user-guide/sdk-usage/shenyu-sdk-eureka.md                    | 2 +-
 docs/user-guide/sdk-usage/shenyu-sdk-nacos.md                     | 2 +-
 docs/user-guide/sdk-usage/shenyu-sdk-zookeeper.md                 | 2 +-
 .../current/deployment/deployment-cluster.md                      | 6 +++---
 .../current/user-guide/sdk-usage/shenyu-sdk-consul.md             | 7 ++++++-
 .../current/user-guide/sdk-usage/shenyu-sdk-etcd.md               | 7 ++++++-
 .../current/user-guide/sdk-usage/shenyu-sdk-eureka.md             | 8 ++++++--
 .../current/user-guide/sdk-usage/shenyu-sdk-nacos.md              | 7 ++++++-
 .../current/user-guide/sdk-usage/shenyu-sdk-zookeeper.md          | 7 ++++++-
 .../version-2.5.0/deployment/deployment-cluster.md                | 6 +++---
 12 files changed, 42 insertions(+), 17 deletions(-)

diff --git a/docs/user-guide/sdk-usage/shenyu-sdk-consul.md b/docs/user-guide/sdk-usage/shenyu-sdk-consul.md
index b389adbcc84..ef15991a5e3 100644
--- a/docs/user-guide/sdk-usage/shenyu-sdk-consul.md
+++ b/docs/user-guide/sdk-usage/shenyu-sdk-consul.md
@@ -71,6 +71,7 @@ shenyu:
 In the `pom.xml` file of the application client, introduce the following dependencies.
 
 - Shenyu-Sdk Core
+
 ```xml
 <dependencies>
     <dependency>
@@ -197,4 +198,4 @@ public interface ShenyuHttpClientApi {
 }
 ```
 
-For more information, refer to the sample project [shenyu-examples-sdk](https://github.com/apache/shenyu/tree/master/shenyu-examples/shenyu-examples-sdk)
\ No newline at end of file
+For more information, refer to the sample project [shenyu-examples-sdk](https://github.com/apache/shenyu/tree/master/shenyu-examples/shenyu-examples-sdk)
diff --git a/docs/user-guide/sdk-usage/shenyu-sdk-etcd.md b/docs/user-guide/sdk-usage/shenyu-sdk-etcd.md
index 14cd340c4d3..cbd2c46ce3e 100644
--- a/docs/user-guide/sdk-usage/shenyu-sdk-etcd.md
+++ b/docs/user-guide/sdk-usage/shenyu-sdk-etcd.md
@@ -177,4 +177,4 @@ public interface ShenyuHttpClientApi {
 }
 ```
 
-For more information, refer to the sample project [shenyu-examples-sdk](https://github.com/apache/shenyu/tree/master/shenyu-examples/shenyu-examples-sdk)
\ No newline at end of file
+For more information, refer to the sample project [shenyu-examples-sdk](https://github.com/apache/shenyu/tree/master/shenyu-examples/shenyu-examples-sdk)
diff --git a/docs/user-guide/sdk-usage/shenyu-sdk-eureka.md b/docs/user-guide/sdk-usage/shenyu-sdk-eureka.md
index f76d1e9d2f3..d2d079da6fe 100644
--- a/docs/user-guide/sdk-usage/shenyu-sdk-eureka.md
+++ b/docs/user-guide/sdk-usage/shenyu-sdk-eureka.md
@@ -177,4 +177,4 @@ public interface ShenyuHttpClientApi {
 }
 ```
 
-For more information, refer to the sample project [shenyu-examples-sdk](https://github.com/apache/shenyu/tree/master/shenyu-examples/shenyu-examples-sdk)
\ No newline at end of file
+For more information, refer to the sample project [shenyu-examples-sdk](https://github.com/apache/shenyu/tree/master/shenyu-examples/shenyu-examples-sdk)
diff --git a/docs/user-guide/sdk-usage/shenyu-sdk-nacos.md b/docs/user-guide/sdk-usage/shenyu-sdk-nacos.md
index 948408ccafd..db26cefdb44 100644
--- a/docs/user-guide/sdk-usage/shenyu-sdk-nacos.md
+++ b/docs/user-guide/sdk-usage/shenyu-sdk-nacos.md
@@ -178,4 +178,4 @@ public interface ShenyuHttpClientApi {
 }
 ```
 
-For more information, refer to the sample project [shenyu-examples-sdk](https://github.com/apache/shenyu/tree/master/shenyu-examples/shenyu-examples-sdk)
\ No newline at end of file
+For more information, refer to the sample project [shenyu-examples-sdk](https://github.com/apache/shenyu/tree/master/shenyu-examples/shenyu-examples-sdk)
diff --git a/docs/user-guide/sdk-usage/shenyu-sdk-zookeeper.md b/docs/user-guide/sdk-usage/shenyu-sdk-zookeeper.md
index 0247086b289..4bafbd18403 100644
--- a/docs/user-guide/sdk-usage/shenyu-sdk-zookeeper.md
+++ b/docs/user-guide/sdk-usage/shenyu-sdk-zookeeper.md
@@ -172,4 +172,4 @@ public interface ShenyuHttpClientApi {
 }
 ```
 
-For more information, refer to the sample project [shenyu-examples-sdk](https://github.com/apache/shenyu/tree/master/shenyu-examples/shenyu-examples-sdk)
\ No newline at end of file
+For more information, refer to the sample project [shenyu-examples-sdk](https://github.com/apache/shenyu/tree/master/shenyu-examples/shenyu-examples-sdk)
diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/deployment/deployment-cluster.md b/i18n/zh/docusaurus-plugin-content-docs/current/deployment/deployment-cluster.md
index aaee8d330b1..a16c563bcbf 100644
--- a/i18n/zh/docusaurus-plugin-content-docs/current/deployment/deployment-cluster.md
+++ b/i18n/zh/docusaurus-plugin-content-docs/current/deployment/deployment-cluster.md
@@ -92,9 +92,9 @@ server {
 >在集群模式下,Apache Shenyu支持部署多个Shenyu实例,随时可能有新的实例上线或下线。因此,Apache Shenyu引入了服务发现
 > OpenResty 模块来帮助客户端检测可用Shenyu实例。目前Apache Shenyu已经支持Zookeeper、Nacos、Etcd和Consul。Client或LoadBalancer
 > 可以通过这些Service注册中心获取可用的Shenyu实例。
-1. [Etcd](#Etcd开始)(支持)
-2. [Nacos](#Nacos开始)(支持)
-3. [Zookeeper](#Zookeeper开始)(支持)
+1. [Etcd](./deployment-cluster.md#Etcd开始)(支持)
+2. [Nacos](./deployment-cluster.md#Nacos开始)(支持)
+3. [Zookeeper](./deployment-cluster.md#Zookeeper开始)(支持)
 4. Consul(进行中)
 
 #### 入门
diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/sdk-usage/shenyu-sdk-consul.md b/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/sdk-usage/shenyu-sdk-consul.md
index 860b870f200..6574be35c63 100644
--- a/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/sdk-usage/shenyu-sdk-consul.md
+++ b/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/sdk-usage/shenyu-sdk-consul.md
@@ -5,6 +5,7 @@ description: Sdk使用
 ---
 
 ## 背景说明
+
 Shenyu提供了Shenyu-Sdk方便让服务能够快速接入shenyu网关, 客户端服务只需要依赖该sdk, 并做些简单配置, 即可类似调用本地接口一样调用网关暴露的API。
 
 <img src="/img/shenyu/sdk/shenyu-sdk_process.png" width="80%" height="50%" />
@@ -12,6 +13,7 @@ Shenyu提供了Shenyu-Sdk方便让服务能够快速接入shenyu网关, 客户
 客户端接入网关的注册中心支持(nacos、eureka、etcd、zookeeper、consul),下面为`shenyu-bootstrap`及`应用客户端`使用**Zookeeper**注册中心时的相关指引。
 
 ## 环境准备
+
 需要参考 `运维部署` , 选择一种方式启动`shenyu-admin`及`shenyu-bootstrap`.
 
 ## shenyu-bootstrap
@@ -69,6 +71,7 @@ shenyu:
 在应用客户端的`pom.xml`文件中引入如下依赖.
 
 - Shenyu-Sdk 核心包
+
 ```xml
 <dependencies>
     <dependency>
@@ -156,6 +159,7 @@ shenyu:
 **示例**
 
 项目启动类
+
 ```java
 @SpringBootApplication
 @EnableShenyuClients(basePackages = "org.apache.shenyu.examples.sdk.http.api")
@@ -173,6 +177,7 @@ public class ShenyuSdkHttpExampleApplication {
 ```
 
 网关API接口
+
 ```java
 @ShenyuClient(name = "shenyu-gateway", contextId = "ShenyuSdkApiName")
 public interface ShenyuHttpClientApi {
@@ -189,4 +194,4 @@ public interface ShenyuHttpClientApi {
 }
 ```
 
-更多可参考示例工程 [shenyu-examples-sdk](https://github.com/apache/shenyu/tree/master/shenyu-examples/shenyu-examples-sdk)
\ No newline at end of file
+更多可参考示例工程 [shenyu-examples-sdk](https://github.com/apache/shenyu/tree/master/shenyu-examples/shenyu-examples-sdk)
diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/sdk-usage/shenyu-sdk-etcd.md b/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/sdk-usage/shenyu-sdk-etcd.md
index bc307ced77d..1a4ce5d07f9 100644
--- a/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/sdk-usage/shenyu-sdk-etcd.md
+++ b/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/sdk-usage/shenyu-sdk-etcd.md
@@ -5,6 +5,7 @@ description: Sdk使用
 ---
 
 ## 背景说明
+
 Shenyu提供了Shenyu-Sdk方便让服务能够快速接入shenyu网关, 客户端服务只需要依赖该sdk, 并做些简单配置, 即可类似调用本地接口一样调用网关暴露的API。
 
 <img src="/img/shenyu/sdk/shenyu-sdk_process.png" width="80%" height="50%" />
@@ -12,6 +13,7 @@ Shenyu提供了Shenyu-Sdk方便让服务能够快速接入shenyu网关, 客户
 客户端接入网关的注册中心支持(nacos、eureka、etcd、zookeeper、consul),下面为`shenyu-bootstrap`及`应用客户端`使用**Zookeeper**注册中心时的相关指引。
 
 ## 环境准备
+
 需要参考 `运维部署` , 选择一种方式启动`shenyu-admin`及`shenyu-bootstrap`.
 
 ## shenyu-bootstrap
@@ -60,6 +62,7 @@ shenyu:
 在应用客户端的`pom.xml`文件中引入如下依赖.
 
 - Shenyu-Sdk 核心包
+
 ```xml
 <dependencies>
     <dependency>
@@ -142,6 +145,7 @@ shenyu:
 **示例**
 
 项目启动类
+
 ```java
 @SpringBootApplication
 @EnableShenyuClients(basePackages = "org.apache.shenyu.examples.sdk.http.api")
@@ -159,6 +163,7 @@ public class ShenyuSdkHttpExampleApplication {
 ```
 
 网关API接口
+
 ```java
 @ShenyuClient(name = "shenyu-gateway", contextId = "ShenyuSdkApiName")
 public interface ShenyuHttpClientApi {
@@ -175,4 +180,4 @@ public interface ShenyuHttpClientApi {
 }
 ```
 
-更多可参考示例工程 [shenyu-examples-sdk](https://github.com/apache/shenyu/tree/master/shenyu-examples/shenyu-examples-sdk)
\ No newline at end of file
+更多可参考示例工程 [shenyu-examples-sdk](https://github.com/apache/shenyu/tree/master/shenyu-examples/shenyu-examples-sdk)
diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/sdk-usage/shenyu-sdk-eureka.md b/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/sdk-usage/shenyu-sdk-eureka.md
index c9cb6d2d56f..2ec9be6a699 100644
--- a/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/sdk-usage/shenyu-sdk-eureka.md
+++ b/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/sdk-usage/shenyu-sdk-eureka.md
@@ -5,6 +5,7 @@ description: Sdk使用
 ---
 
 ## 背景说明
+
 Shenyu提供了Shenyu-Sdk方便让服务能够快速接入shenyu网关, 客户端服务只需要依赖该sdk, 并做些简单配置, 即可类似调用本地接口一样调用网关暴露的API。
 
 <img src="/img/shenyu/sdk/shenyu-sdk_process.png" width="80%" height="50%" />
@@ -12,6 +13,7 @@ Shenyu提供了Shenyu-Sdk方便让服务能够快速接入shenyu网关, 客户
 客户端接入网关时可使用注册中心做服务发现,支持的注册中心有`nacos、eureka、etcd、zookeeper、consul`, 下面为`shenyu-bootstrap`及`应用客户端`使用**eureka**为注册中心时的相关指引。
 
 ## 环境准备
+
 需要参考 `运维部署` , 选择一种方式启动`shenyu-admin`及`shenyu-bootstrap`.
 
 ## shenyu-bootstrap
@@ -60,6 +62,7 @@ eureka:
 在应用客户端的`pom.xml`文件中引入如下依赖.
 
 - Shenyu-Sdk 核心包
+
 ```xml
 <dependencies>
     <dependency>
@@ -139,6 +142,7 @@ shenyu:
 **示例**
 
 项目启动类
+
 ```java
 @SpringBootApplication
 @EnableShenyuClients(basePackages = "org.apache.shenyu.examples.sdk.http.api")
@@ -156,6 +160,7 @@ public class ShenyuSdkHttpExampleApplication {
 ```
 
 网关API接口
+
 ```java
 @ShenyuClient(name = "shenyu-bootstrap", contextId = "ShenyuSdkApiName")
 public interface ShenyuHttpClientApi {
@@ -172,5 +177,4 @@ public interface ShenyuHttpClientApi {
 }
 ```
 
-
-更多可参考示例工程 [shenyu-examples-sdk](https://github.com/apache/shenyu/tree/master/shenyu-examples/shenyu-examples-sdk)
\ No newline at end of file
+更多可参考示例工程 [shenyu-examples-sdk](https://github.com/apache/shenyu/tree/master/shenyu-examples/shenyu-examples-sdk)
diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/sdk-usage/shenyu-sdk-nacos.md b/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/sdk-usage/shenyu-sdk-nacos.md
index 1ebe35ddc45..09f7370c957 100644
--- a/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/sdk-usage/shenyu-sdk-nacos.md
+++ b/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/sdk-usage/shenyu-sdk-nacos.md
@@ -5,6 +5,7 @@ description: Sdk使用
 ---
 
 ## 背景说明
+
 Shenyu提供了Shenyu-Sdk方便让服务能够快速接入shenyu网关, 客户端服务只需要依赖该sdk, 并做些简单配置, 即可类似调用本地接口一样调用网关暴露的API。
 
 <img src="/img/shenyu/sdk/shenyu-sdk_process.png" width="80%" height="50%" />
@@ -12,6 +13,7 @@ Shenyu提供了Shenyu-Sdk方便让服务能够快速接入shenyu网关, 客户
 客户端接入网关的注册中心支持(nacos、eureka、etcd、zookeeper、consul),下面为`shenyu-bootstrap`及`应用客户端`使用**Zookeeper**注册中心时的相关指引。
 
 ## 环境准备
+
 需要参考 `运维部署` , 选择一种方式启动`shenyu-admin`及`shenyu-bootstrap`.
 
 ## shenyu-bootstrap
@@ -56,6 +58,7 @@ spring:
 在应用客户端的`pom.xml`文件中引入如下依赖.
 
 - Shenyu-Sdk 核心包
+
 ```xml
 <dependencies>
     <dependency>
@@ -140,6 +143,7 @@ shenyu:
 **示例**
 
 项目启动类
+
 ```java
 @SpringBootApplication
 @EnableShenyuClients(basePackages = "org.apache.shenyu.examples.sdk.http.api")
@@ -157,6 +161,7 @@ public class ShenyuSdkHttpExampleApplication {
 ```
 
 网关API接口
+
 ```java
 @ShenyuClient(name = "shenyu-bootstrap", contextId = "ShenyuSdkApiName")
 public interface ShenyuHttpClientApi {
@@ -173,4 +178,4 @@ public interface ShenyuHttpClientApi {
 }
 ```
 
-更多可参考示例工程 [shenyu-examples-sdk](https://github.com/apache/shenyu/tree/master/shenyu-examples/shenyu-examples-sdk)
\ No newline at end of file
+更多可参考示例工程 [shenyu-examples-sdk](https://github.com/apache/shenyu/tree/master/shenyu-examples/shenyu-examples-sdk)
diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/sdk-usage/shenyu-sdk-zookeeper.md b/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/sdk-usage/shenyu-sdk-zookeeper.md
index 07e6da4ced1..01921c26714 100644
--- a/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/sdk-usage/shenyu-sdk-zookeeper.md
+++ b/i18n/zh/docusaurus-plugin-content-docs/current/user-guide/sdk-usage/shenyu-sdk-zookeeper.md
@@ -5,6 +5,7 @@ description: Sdk使用
 ---
 
 ## 背景说明
+
 Shenyu提供了Shenyu-Sdk方便让服务能够快速接入shenyu网关, 客户端服务只需要依赖该sdk, 并做些简单配置, 即可类似调用本地接口一样调用网关暴露的API。
 
 <img src="/img/shenyu/sdk/shenyu-sdk_process.png" width="80%" height="50%" />
@@ -12,6 +13,7 @@ Shenyu提供了Shenyu-Sdk方便让服务能够快速接入shenyu网关, 客户
 客户端接入网关的注册中心支持(nacos、eureka、etcd、zookeeper、consul),下面为`shenyu-bootstrap`及`应用客户端`使用**Zookeeper**注册中心时的相关指引。
 
 ## 环境准备
+
 需要参考 `运维部署` , 选择一种方式启动`shenyu-admin`及`shenyu-bootstrap`.
  
 ## shenyu-bootstrap
@@ -60,6 +62,7 @@ shenyu:
 在应用客户端的`pom.xml`文件中引入如下依赖.
 
 - Shenyu-Sdk 核心包
+
 ```xml
 <dependencies>
     <dependency>
@@ -139,6 +142,7 @@ shenyu:
 **示例**
 
 项目启动类
+
 ```java
 @SpringBootApplication
 @EnableShenyuClients(basePackages = "org.apache.shenyu.examples.sdk.http.api")
@@ -156,6 +160,7 @@ public class ShenyuSdkHttpExampleApplication {
 ```
 
 网关API接口
+
 ```java
 @ShenyuClient(name = "shenyu-gateway", contextId = "ShenyuSdkApiName")
 public interface ShenyuHttpClientApi {
@@ -172,4 +177,4 @@ public interface ShenyuHttpClientApi {
 }
 ```
 
-更多可参考示例工程 [shenyu-examples-sdk](https://github.com/apache/shenyu/tree/master/shenyu-examples/shenyu-examples-sdk)
\ No newline at end of file
+更多可参考示例工程 [shenyu-examples-sdk](https://github.com/apache/shenyu/tree/master/shenyu-examples/shenyu-examples-sdk)
diff --git a/i18n/zh/docusaurus-plugin-content-docs/version-2.5.0/deployment/deployment-cluster.md b/i18n/zh/docusaurus-plugin-content-docs/version-2.5.0/deployment/deployment-cluster.md
index 3d9cdc16d85..2d8f8506d2c 100644
--- a/i18n/zh/docusaurus-plugin-content-docs/version-2.5.0/deployment/deployment-cluster.md
+++ b/i18n/zh/docusaurus-plugin-content-docs/version-2.5.0/deployment/deployment-cluster.md
@@ -91,9 +91,9 @@ server {
 >在集群模式下,Apache Shenyu支持部署多个Shenyu实例,随时可能有新的实例上线或下线。因此,Apache Shenyu引入了服务发现
 > OpenResty 模块来帮助客户端检测可用Shenyu实例。目前Apache Shenyu已经支持Zookeeper、Nacos、Etcd和Consul。Client或LoadBalancer
 > 可以通过这些Service注册中心获取可用的Shenyu实例。
-1. [Etcd](#Etcd开始)(支持)
-2. [Nacos](#Nacos开始)(支持)
-3. [Zookeeper](#Zookeeper开始)(支持)
+1. [Etcd](./deployment-cluster.md#Etcd开始)(支持)
+2. [Nacos](./deployment-cluster.md#Nacos开始)(支持)
+3. [Zookeeper](./deployment-cluster.md#Zookeeper开始)(支持)
 4. Consul(进行中)
 
 #### 入门