You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shenyu.apache.org by zh...@apache.org on 2021/09/14 07:58:17 UTC

[incubator-shenyu-website] branch main updated: refactor shenyu bolg (#276)

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

zhangyonglun 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 29e0f5a  refactor shenyu bolg (#276)
29e0f5a is described below

commit 29e0f5a862cd0e84e5d6ec4a00c867167628c544
Author: xiaoyu <xi...@apache.org>
AuthorDate: Tue Sep 14 15:58:11 2021 +0800

    refactor shenyu bolg (#276)
---
 ...Plugin.md => SourceCode-Analysis-Context-Path-Plugin.md} |   0
 ...Analysis.md => SourceCode-Analysis-MatchStrategy-SPI.md} |   4 ++--
 ...lugin.md => SourceCode-Analysis-Param-Mapping-Plugin.md} |   0
 ...nalysis.md => SourceCode-Analysis-PredicateJudge-SPI.md} |   0
 ...9-06-Start-Demo.md => SourceCode-Analysis-Start-Demo.md} |   0
 ...a-Sync.md => SourceCode-Analysis-WebSocket-Data-Sync.md} |   0
 ...Plugin.md => SourceCode-Analysis-Context-Path-Plugin.md} |   0
 .../SourceCode-Analysis-MatchStrategy-SPI.md                |   5 ++---
 ...lugin.md => SourceCode-Analysis-Param-Mapping-Plugin.md} |   0
 ...nalysis.md => SourceCode-Analysis-PredicateJudge-SPI.md} |   0
 ...9-06-Start-Demo.md => SourceCode-Analysis-Start-Demo.md} |   0
 ...a-Sync.md => SourceCode-Analysis-WebSocket-Data-Sync.md} |   0
 .../MatchStrategy-class-diagram.PNG                         | Bin
 13 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/blog/2021-08-20-Code-Analysis-Context-Path-Plugin.md b/blog/SourceCode-Analysis-Context-Path-Plugin.md
similarity index 100%
rename from blog/2021-08-20-Code-Analysis-Context-Path-Plugin.md
rename to blog/SourceCode-Analysis-Context-Path-Plugin.md
diff --git a/blog/MatchStrategy-SPI/en-MatchStrategy SPI-code Analysis.md b/blog/SourceCode-Analysis-MatchStrategy-SPI.md
similarity index 98%
rename from blog/MatchStrategy-SPI/en-MatchStrategy SPI-code Analysis.md
rename to blog/SourceCode-Analysis-MatchStrategy-SPI.md
index 52e3d2e..39317d1 100644
--- a/blog/MatchStrategy-SPI/en-MatchStrategy SPI-code Analysis.md	
+++ b/blog/SourceCode-Analysis-MatchStrategy-SPI.md
@@ -1,11 +1,11 @@
 ---
 title: "MatchStrategy  -- analyze the design based on SPI"
 author: "Huihui Yin"
+author_title: Apache ShenYu Contributor
 categories: "Apache ShenYu"
 tags: ["SPI","Apache ShenYu"]
 date: 2021-09-14
 ---
-[TOC]
 
 In most of the `plugins` ( such as `Dubbo`, `gRPC`,`Spring-cloud`, etc) of `Apache Shenyu`, the `routing`parameters are designed to support the combination of multiple conditions. In order to realize such requirements,  the parameters and behaviors are abstracted to three parts according to its `SPI` mechanism,  and implemented in ***shenyu-plugin-base***  module.
 
@@ -19,7 +19,7 @@ Relatively speaking, the `MatchStrategy` is the part that needs the least extens
 
 The implementation of `MatchStrategy` is in ***shenyu-plugin-base*** module. It has based on the SPI creation mechanism, and used factory pattern and strategy design pattern. The class diagram of `MatchStrategy` `is` showed as follows.
 
-![MatchStrategy-class-diagram](MatchStrategy-class-diagram.PNG)
+![MatchStrategy-class-diagram](/img/activities/code-analysis-matchstrategy-spi/MatchStrategy-class-diagram.PNG)
 
 Base on the interface `MatchStrategy` to design the implementation classes, and the  abstract class `AbstractMatchStrategy` supplies common method, while the factory class `MatchStrategyFactory` provides creation  functions.
 
diff --git a/blog/2021-09-05-Code-Analysis-Param-Mapping-Plugin.md b/blog/SourceCode-Analysis-Param-Mapping-Plugin.md
similarity index 100%
rename from blog/2021-09-05-Code-Analysis-Param-Mapping-Plugin.md
rename to blog/SourceCode-Analysis-Param-Mapping-Plugin.md
diff --git a/blog/PredicateJudge-SPI-code Analysis.md b/blog/SourceCode-Analysis-PredicateJudge-SPI.md
similarity index 100%
rename from blog/PredicateJudge-SPI-code Analysis.md
rename to blog/SourceCode-Analysis-PredicateJudge-SPI.md
diff --git a/blog/2021-09-06-Start-Demo.md b/blog/SourceCode-Analysis-Start-Demo.md
similarity index 100%
rename from blog/2021-09-06-Start-Demo.md
rename to blog/SourceCode-Analysis-Start-Demo.md
diff --git a/blog/2021-09-13-SourceCode-Analysis-WebSocket-Data-Sync.md b/blog/SourceCode-Analysis-WebSocket-Data-Sync.md
similarity index 100%
rename from blog/2021-09-13-SourceCode-Analysis-WebSocket-Data-Sync.md
rename to blog/SourceCode-Analysis-WebSocket-Data-Sync.md
diff --git a/i18n/zh/docusaurus-plugin-content-blog/2021-08-20-Code-Analysis-Context-Path-Plugin.md b/i18n/zh/docusaurus-plugin-content-blog/SourceCode-Analysis-Context-Path-Plugin.md
similarity index 100%
rename from i18n/zh/docusaurus-plugin-content-blog/2021-08-20-Code-Analysis-Context-Path-Plugin.md
rename to i18n/zh/docusaurus-plugin-content-blog/SourceCode-Analysis-Context-Path-Plugin.md
diff --git a/blog/MatchStrategy-SPI/cn-MatchStrategy SPI-code Analysis.md b/i18n/zh/docusaurus-plugin-content-blog/SourceCode-Analysis-MatchStrategy-SPI.md
similarity index 97%
rename from blog/MatchStrategy-SPI/cn-MatchStrategy SPI-code Analysis.md
rename to i18n/zh/docusaurus-plugin-content-blog/SourceCode-Analysis-MatchStrategy-SPI.md
index 983edc6..d9c83c7 100644
--- a/blog/MatchStrategy-SPI/cn-MatchStrategy SPI-code Analysis.md	
+++ b/i18n/zh/docusaurus-plugin-content-blog/SourceCode-Analysis-MatchStrategy-SPI.md
@@ -1,13 +1,12 @@
 ---
 title: "MatchStrategy--基于SPI的代码分析"
 author: "Huihui Yin"
+author_title: Apache ShenYu Contributor
 categories: "Apache ShenYu"
 tags: ["SPI","Apache ShenYu"]
 date: 2021-09-14
 ---
 
-[TOC]
-
 `Apache Shenyu` 网关的各个`Plugin`(包括`Dubbo`, `gRPC`,`Spring-cloud`等) 中,`routing`参数均设计为可以接受多个条件的组合。 为了实现这样的目的,遵循其`SPI`的机制进行将参数及行为抽象为如下三部分,这些`SPI` 在***shenyu-plugin-base***模组中实现
 
 - `ParameterData`-参数资料
@@ -20,7 +19,7 @@ date: 2021-09-14
 
 `MatchStrategy`的实现代码在***shenyu-plugin-base***模组中,基于`Apache Shenyu`的`SPI`创建机制, 设计上结合了工厂模式和策略模式,整体`MatchStrategy`的设计类图如下下:
 
-![MatchStrategy-class-diagram](MatchStrategy-class-diagram.PNG)
+![MatchStrategy-class-diagram](/img/activities/code-analysis-matchstrategy-spi/MatchStrategy-class-diagram.PNG)
 
 以接口`MatchStrategy`为基础,设计实现类,并由抽象类`AbstractMatchStrategy`实现公共方法,由工厂类`MatchStrategyFactory`提供创建和外部调用功能。
 
diff --git a/i18n/zh/docusaurus-plugin-content-blog/2021-09-05-Code-Analysis-Param-Mapping-Plugin.md b/i18n/zh/docusaurus-plugin-content-blog/SourceCode-Analysis-Param-Mapping-Plugin.md
similarity index 100%
rename from i18n/zh/docusaurus-plugin-content-blog/2021-09-05-Code-Analysis-Param-Mapping-Plugin.md
rename to i18n/zh/docusaurus-plugin-content-blog/SourceCode-Analysis-Param-Mapping-Plugin.md
diff --git a/i18n/zh/docusaurus-plugin-content-blog/PredicateJudge-SPI-code Analysis.md b/i18n/zh/docusaurus-plugin-content-blog/SourceCode-Analysis-PredicateJudge-SPI.md
similarity index 100%
rename from i18n/zh/docusaurus-plugin-content-blog/PredicateJudge-SPI-code Analysis.md
rename to i18n/zh/docusaurus-plugin-content-blog/SourceCode-Analysis-PredicateJudge-SPI.md
diff --git a/i18n/zh/docusaurus-plugin-content-blog/2021-09-06-Start-Demo.md b/i18n/zh/docusaurus-plugin-content-blog/SourceCode-Analysis-Start-Demo.md
similarity index 100%
rename from i18n/zh/docusaurus-plugin-content-blog/2021-09-06-Start-Demo.md
rename to i18n/zh/docusaurus-plugin-content-blog/SourceCode-Analysis-Start-Demo.md
diff --git a/i18n/zh/docusaurus-plugin-content-blog/2021-09-13-SourceCode-Analysis-WebSocket-Data-Sync.md b/i18n/zh/docusaurus-plugin-content-blog/SourceCode-Analysis-WebSocket-Data-Sync.md
similarity index 100%
rename from i18n/zh/docusaurus-plugin-content-blog/2021-09-13-SourceCode-Analysis-WebSocket-Data-Sync.md
rename to i18n/zh/docusaurus-plugin-content-blog/SourceCode-Analysis-WebSocket-Data-Sync.md
diff --git a/blog/MatchStrategy-SPI/MatchStrategy-class-diagram.PNG b/static/img/activities/code-analysis-matchstrategy-spi/MatchStrategy-class-diagram.PNG
similarity index 100%
rename from blog/MatchStrategy-SPI/MatchStrategy-class-diagram.PNG
rename to static/img/activities/code-analysis-matchstrategy-spi/MatchStrategy-class-diagram.PNG