Skip to content

Commit

Permalink
doc: unite the static directory
Browse files Browse the repository at this point in the history
Signed-off-by: spacewander <spacewanderlzx@gmail.com>
  • Loading branch information
spacewander committed Aug 2, 2024
1 parent f9b6bc5 commit b4f0a8d
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 6 deletions.
Binary file removed images/HTNN-architecture.png
Binary file not shown.
Binary file removed images/HTNN.png
Binary file not shown.
Binary file removed images/filtermanager_main_path.jpg
Binary file not shown.
Binary file removed images/filtermanager_sub_path.jpg
Binary file not shown.
Binary file removed images/wechat_group.png
Binary file not shown.
4 changes: 2 additions & 2 deletions site/content/en/docs/developer-guide/plugin_development.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ When processing a request, the call order is `Authn -> Authz -> Traffic`.
When processing a response, the call order is `Traffic -> Authz -> Authn`.
When logging requests, the call order is `Authn -> Authz -> Traffic`.

![filter manager](/images/filtermanager_main_path.jpg)
![filter manager](/static/images/filtermanager_main_path.jpg)

Note that this picture shows the main path. The execution path may have slight differences. For example,

Expand Down Expand Up @@ -132,7 +132,7 @@ If `WaitAllData` is returned from `DecodeHeaders`, we will:
3. execute the `DecodeRequest` of this plugin
4. back to the original path, continue to execute the `DecodeHeaders` of the next plugin

![filter manager, with DecodeWholeRequestFilter, buffer the whole request](/images/filtermanager_sub_path.jpg)
![filter manager, with DecodeWholeRequestFilter, buffer the whole request](/static/images/filtermanager_sub_path.jpg)

Note: `DecodeRequest` is only executed if `DecodeHeaders` returns `WaitAllData`. So if `DecodeRequest` is defined, `DecodeHeaders` must be defined as well.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ filter manager 实现了以下特性:
处理响应时,调用顺序是 `Traffic -> Authz -> Authn`
记录请求时,调用顺序是 `Authn -> Authz -> Traffic`

![过滤器管理器](/images/filtermanager_main_path.jpg)
![过滤器管理器](/static/images/filtermanager_main_path.jpg)

请注意,这张图片显示的是主路径。实际执行路径可能有细微差别。例如,

Expand All @@ -127,7 +127,7 @@ filter manager 实现了以下特性:
3. 执行此插件的 `DecodeRequest`
4. 回到原始路径,继续执行下一个插件的 `DecodeHeaders`

![过滤器管理器,带有 DecodeWholeRequestFilter,缓冲整个请求](/images/filtermanager_sub_path.jpg)
![过滤器管理器,带有 DecodeWholeRequestFilter,缓冲整个请求](/static/images/filtermanager_sub_path.jpg)

注意:`DecodeRequest` 仅在 `DecodeHeaders` 返回 `WaitAllData` 时才被执行。所以如果定义了 `DecodeRequest`,一定要定义 `DecodeHeaders`

Expand Down
4 changes: 2 additions & 2 deletions site/content/zh-hans/docs/getting-started/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ title: 概览简介

HTNN(Hyper Trust-Native Network)是一款基于云原生技术的 L3&L4&L7 Cross-Layer 网络全局解决方案产品。

![HTNN](/images/HTNN.png)
![HTNN](/static/images/HTNN.png)

目前开源的只是其中的一部分,L7 南北向接入网关。简单起见,本文先用 HTNN 来代指 HTNN L7 南北向接入网关。

Expand Down Expand Up @@ -34,7 +34,7 @@ Golang 作为新一代的语言,具有高性能、简洁易学、并发支持

HTNN 是全栈开源的完整产品,从数据面,到控制面,到 console 和 Dashboard(Coming soon),我们都会完整的开源。

![HTNN-architecture](/images/HTNN-architecture.png)
![HTNN-architecture](/static/images/HTNN-architecture.png)

整个架构是从下往上,逐级抽象的体现,越底层通用性越强,往上抽象则更倾向于具体场景。

Expand Down
3 changes: 3 additions & 0 deletions site/hugo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,9 @@ github_subdir = "site"
# or specify a new value if you want to reference another branch in your GitHub links
github_branch= "main"

# Use pwd as the static directory root so the same image can be shown in GitHub and website
staticDir = "."

# Google Custom Search Engine ID. Remove or comment out to disable search.
#gcs_engine_id = "d72aa9b2712488cc3"

Expand Down

0 comments on commit b4f0a8d

Please sign in to comment.