This is an automated email from the ASF dual-hosted git repository.
sylviasu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix.git
The following commit(s) were added to refs/heads/master by this push:
new ff3c545bf docs: fix building apisix misled (#8189)
ff3c545bf is described below
commit ff3c545bfdd1b5e007e852de0f91046eaf4f6148
Author: Joanthan Chen <[email protected]>
AuthorDate: Fri Oct 28 17:23:53 2022 +0800
docs: fix building apisix misled (#8189)
* doc: fix building apisix misled
* docs: fix building apisix misled
* Update docs/en/latest/building-apisix.md
Co-authored-by: Sylvia <[email protected]>
Co-authored-by: Sylvia <[email protected]>
---
docs/en/latest/building-apisix.md | 12 ++++--------
docs/zh/latest/building-apisix.md | 14 +++++---------
2 files changed, 9 insertions(+), 17 deletions(-)
diff --git a/docs/en/latest/building-apisix.md
b/docs/en/latest/building-apisix.md
index f12fbfe08..dd2aecb6f 100644
--- a/docs/en/latest/building-apisix.md
+++ b/docs/en/latest/building-apisix.md
@@ -56,19 +56,15 @@ APISIX_VERSION='3.0.0'
mkdir apisix-${APISIX_VERSION}
```
-You can now download the APISIX source code by running the command below:
+You can now clone the APISIX source code from Github by running the command
below:
```shell
-wget
https://downloads.apache.org/apisix/${APISIX_VERSION}/apache-apisix-${APISIX_VERSION}-src.tgz
+git clone --depth 1 --branch ${APISIX_VERSION}
https://github.com/apache/apisix.git apisix-${APISIX_VERSION}
```
-You can also download the source package from the [Downloads
page](https://apisix.apache.org/downloads/). You will also find source packages
for APISIX Dashboard and APISIX Ingress Controller.
+You can also download the source package from the [Downloads
page](https://apisix.apache.org/downloads/). But the source package missing the
test case. This may affect subsequent operations.
-After you have downloaded the package, you can extract the files to the folder
created previously:
-
-```shell
-tar zxvf apache-apisix-${APISIX_VERSION}-src.tgz -C apisix-${APISIX_VERSION}
-```
+And you will also find source packages for APISIX Dashboard and APISIX Ingress
Controller from [Downloads page](https://apisix.apache.org/downloads/).
Now, navigate to the directory, create dependencies, and install APISIX as
shown below:
diff --git a/docs/zh/latest/building-apisix.md
b/docs/zh/latest/building-apisix.md
index d9ebd6386..6a358b8f3 100644
--- a/docs/zh/latest/building-apisix.md
+++ b/docs/zh/latest/building-apisix.md
@@ -57,21 +57,17 @@ APISIX_VERSION='3.0.0'
mkdir apisix-${APISIX_VERSION}
```
-现在,你可以运行以下命令来下载 APISIX 源码包:
+现在,你可以运行以下命令,从 Github 克隆 APISIX 源码:
```shell
-wget
https://downloads.apache.org/apisix/${APISIX_VERSION}/apache-apisix-${APISIX_VERSION}-src.tgz
+git clone --depth 1 --branch ${APISIX_VERSION}
https://github.com/apache/apisix.git apisix-${APISIX_VERSION}
```
-你可以从[下载页面](https://apisix.apache.org/downloads/)下载源码包。你也可以在该页面找到 APISIX
Dashboard 和 APISIX Ingress Controller 的源码包。
+你可以从[下载页面](https://apisix.apache.org/downloads/)下载源码包。但是官网的源码包缺少测试用例,可能会对你后续操作产生困扰。
-下载源码包后,你可以将文件解压到之前创建的文件夹中:
+另外,你也可以在该页面找到 APISIX Dashboard 和 APISIX Ingress Controller 的源码包。
-```shell
-tar zxvf apache-apisix-${APISIX_VERSION}-src.tgz -C apisix-${APISIX_VERSION}
-```
-
-然后切换到解压的目录,创建依赖项并安装 APISIX,如下所示:
+然后切换到 APISIX 源码的目录,创建依赖项并安装 APISIX,命令如下所示:
```shell
cd apisix-${APISIX_VERSION}