You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shenyu.apache.org by xi...@apache.org on 2022/06/15 03:12:54 UTC

[incubator-shenyu-website] branch main updated: add grpc doc (#595)

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 26f8a508c4 add grpc doc (#595)
26f8a508c4 is described below

commit 26f8a508c4d1dfba2ffcc7e48f216787229b52fd
Author: weihubeats <we...@163.com>
AuthorDate: Wed Jun 15 11:12:49 2022 +0800

    add grpc doc (#595)
---
 .../current/quick-start/quick-start-grpc.md            |   9 +++++----
 static/img/shenyu/quick-start/grpc/grpc-install.png    | Bin 0 -> 100100 bytes
 static/img/shenyu/quick-start/grpc/grpc-target.png     | Bin 0 -> 417021 bytes
 3 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/i18n/zh/docusaurus-plugin-content-docs/current/quick-start/quick-start-grpc.md b/i18n/zh/docusaurus-plugin-content-docs/current/quick-start/quick-start-grpc.md
index fe0f82b775..10650d1d29 100644
--- a/i18n/zh/docusaurus-plugin-content-docs/current/quick-start/quick-start-grpc.md
+++ b/i18n/zh/docusaurus-plugin-content-docs/current/quick-start/quick-start-grpc.md
@@ -40,11 +40,12 @@ mvn protobuf:compile //编译消息对象
 mvn protobuf:compile-custom //依赖消息对象,生成接口服务
 ```
 
-或者,如果你是通过 `IntelliJ IDEA` 打开 `Apache ShenYu` 工程,你可以在 `Maven` 工具栏中选中 `protobuf:compile` 和 `protobuf:compile-custom`,然后右键 `Run Maven Build` 一键生成 `proto` 文件对应的 `java`代码。
-
-
+或者,如果你是通过 `IntelliJ IDEA` 打开 `Apache ShenYu` 工程,首先在`maven root`下`install`整个项目
+<img src="/img/shenyu/quick-start/grpc/gen-install.png" width="40%" height="50%" />
+然后在 `Maven` 工具栏中选中 `protobuf:compile` 和 `protobuf:compile-custom`,然后右键 `Run Maven Build` 一键生成 `proto` 文件对应的 `java`代码。
 <img src="/img/shenyu/quick-start/grpc/gen-proto.png" width="40%" height="50%" />
-
+然后让`idea`识别生成的`target`文件夹
+<img src="/img/shenyu/quick-start/grpc/grpc-target.png" width="40%" height="50%" />
 
 运行 `org.apache.shenyu.examples.grpc.ShenyuTestGrpcApplication` 中的 `main` 方法启动项目。
 
diff --git a/static/img/shenyu/quick-start/grpc/grpc-install.png b/static/img/shenyu/quick-start/grpc/grpc-install.png
new file mode 100644
index 0000000000..0811700d4b
Binary files /dev/null and b/static/img/shenyu/quick-start/grpc/grpc-install.png differ
diff --git a/static/img/shenyu/quick-start/grpc/grpc-target.png b/static/img/shenyu/quick-start/grpc/grpc-target.png
new file mode 100644
index 0000000000..f1aaf1ef13
Binary files /dev/null and b/static/img/shenyu/quick-start/grpc/grpc-target.png differ