Skip to content

Commit

Permalink
update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
AlinsRan committed Jan 3, 2024
1 parent e57c5a1 commit 2073c4f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 15 deletions.
10 changes: 2 additions & 8 deletions docs/en/latest/building-apisix.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ To build and package APISIX for a specific platform, see [apisix-build-tools](ht

## Building APISIX from source

First of all, we need to specify the version `APISIX_ VERSION` to be installed:
First of all, we need to specify the version `APISIX_VERSION` to be installed:

```shell
APISIX_VERSION='3.7.0'
Expand All @@ -57,12 +57,6 @@ Then, you can run the following command to clone the APISIX source code from Git
git clone --depth 1 --branch ${APISIX_VERSION} https://github.com/apache/apisix.git apisix-${APISIX_VERSION}
```

Now, by changing to the directory of the APISIX source code, you can install the dependencies with the following command:

```shell
cd apisix-${APISIX_VERSION}
```

Alternatively, you can also download the source package from the [Downloads](https://apisix.apache.org/downloads/) page. Note that source packages here are not distributed with test cases.

Next, navigate to the directory, install dependencies, and build APISIX.
Expand All @@ -73,7 +67,7 @@ make deps
make install
```

This will install the runtime-dependent Lua libraries and the `apisix` CLI tool.
This will install the runtime-dependent Lua libraries and `apisix-runtime` the `apisix` CLI tool.

:::note

Expand Down
9 changes: 2 additions & 7 deletions docs/zh/latest/building-apisix.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,24 +56,19 @@ APISIX_VERSION='3.7.0'
git clone --depth 1 --branch ${APISIX_VERSION} https://github.com/apache/apisix.git apisix-${APISIX_VERSION}
```

现在,切换到 APISIX 源码的目录,你可以通过以下命令安装依赖项:

```shell
cd apisix-${APISIX_VERSION}
```

你可以从[下载页面](https://apisix.apache.org/downloads/)下载源码包。但是官网的源码包缺少测试用例,可能会对你后续操作产生困扰。

另外,你也可以在该页面找到 APISIX Dashboard 和 APISIX Ingress Controller 的源码包。

然后切换到 APISIX 源码的目录,创建依赖项并安装 APISIX,命令如下所示:

```shell
cd apisix-${APISIX_VERSION}
make deps
make install
```

该命令将安装 APISIX 运行时依赖的 Lua 库和 `apisix` 命令。
该命令将安装 APISIX 运行时依赖的 Lua 库以及 `apisix-runtime` `apisix` 命令。

:::note

Expand Down

0 comments on commit 2073c4f

Please sign in to comment.