This is an automated email from the ASF dual-hosted git repository.
chenguangsheng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-eventmesh-site.git
The following commit(s) were added to refs/heads/master by this push:
new 410e83c8 add how to import code style to idea
new 050777d1 Merge pull request #68 from mxsm/eventmesh-site-addcodestyle
410e83c8 is described below
commit 410e83c8c1ce0bd7a5a417041f39ff5305c38361
Author: mxsm <[email protected]>
AuthorDate: Wed Feb 15 23:21:23 2023 +0800
add how to import code style to idea
---
community/contribute/01-contribute.md | 14 +++++++++++++-
.../current/contribute/01-contribute.md | 16 ++++++++++++++--
images/contribute/import-codestyle.png | Bin 0 -> 83579 bytes
3 files changed, 27 insertions(+), 3 deletions(-)
diff --git a/community/contribute/01-contribute.md
b/community/contribute/01-contribute.md
index 9ed5fe0a..b7890533 100644
--- a/community/contribute/01-contribute.md
+++ b/community/contribute/01-contribute.md
@@ -15,7 +15,19 @@ If you are a new contributor who wants to contribute to the
eventmesh community,
### Code Style
-Import [EventMesh
CheckStyle](https://github.com/apache/incubator-eventmesh/blob/master/style/checkStyle.xml)
file to your IDEA.
+#### Import Code Style
+
+File location: Import the
[`eventmesh-code-style.xml`](https://github.com/apache/incubator-eventmesh/blob/master/style/eventmesh-code-style.xml)
file located in the `incubator-eventmesh/style` directory of the source code
into **`IntelliJ IDEA`**.
+
+```
+Editor -> Code Style -> Import Scheme -> IntelliJ IDEA code style XML
+```
+
+
+
+#### Import Check Style
+
+File location: Import the
[`checkStyle.xml`](https://github.com/apache/incubator-eventmesh/blob/master/style/checkStyle.xml)file
located in the `incubator-eventmesh/style` directory of the source code into
**`IntelliJ IDEA`**.
For IDEA, you can import check style file by:
```shell
diff --git
a/i18n/zh/docusaurus-plugin-content-docs-community/current/contribute/01-contribute.md
b/i18n/zh/docusaurus-plugin-content-docs-community/current/contribute/01-contribute.md
index b492c386..e9756c5a 100644
---
a/i18n/zh/docusaurus-plugin-content-docs-community/current/contribute/01-contribute.md
+++
b/i18n/zh/docusaurus-plugin-content-docs-community/current/contribute/01-contribute.md
@@ -15,12 +15,24 @@ sidebar_position: 0
### 代码风格
-将 [EventMesh
CheckStyle](https://github.com/apache/incubator-eventmesh/blob/master/style/checkStyle.xml)
文件导入您的 IDEA。
+#### 导入Code Style
+
+文件位置:源码 `incubator-eventmesh/style`目录下面的
[`eventmesh-code-style.xml`](https://github.com/apache/incubator-eventmesh/blob/master/style/eventmesh-code-style.xml)
文件导入 **`IntelliJ IDEA`**。
+
+```
+Editor -> Code Style -> Import Scheme -> IntelliJ IDEA code style XML
+```
+
+
+
+#### 导入Check Style
+
+文件位置:源码源码 `incubator-eventmesh/style`目录下面的
[`checkStyle.xml`](https://github.com/apache/incubator-eventmesh/blob/master/style/checkStyle.xml)文件导入您的
**`IntelliJ IDEA`**。
对于 IDEA,您可以通过以下方式导入检查样式文件:
```shell
- Editor -> Code Style -> Java -> Scheme -> Import Scheme -> CheckStyle
Configuration
+Editor -> Code Style -> Java -> Scheme -> Import Scheme -> CheckStyle
Configuration
```
如果在Import Scheme下看不到CheckStyle Configuration部分,可以先安装CheckStyle-IDEA插件,就可以看到了。
diff --git a/images/contribute/import-codestyle.png
b/images/contribute/import-codestyle.png
new file mode 100644
index 00000000..33ac30ac
Binary files /dev/null and b/images/contribute/import-codestyle.png differ
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]