Skip to content

Commit a851952

Browse files
authored
docs: update variable in building apisix from source (#11640)
1 parent a6c7f47 commit a851952

File tree

3 files changed

+14
-7
lines changed

3 files changed

+14
-7
lines changed

.ignore_words

+2
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,5 @@ nd
77
hel
88
nulll
99
smove
10+
aks
11+
nin

docs/en/latest/building-apisix.md

+7-4
Original file line numberDiff line numberDiff line change
@@ -45,24 +45,27 @@ To build and package APISIX for a specific platform, see [apisix-build-tools](ht
4545

4646
## Building APISIX from source
4747

48-
First of all, we need to specify the version `APISIX_VERSION` to be installed:
48+
First of all, we need to specify the branch to be built:
4949

5050
```shell
51-
APISIX_VERSION='3.12.0'
51+
APISIX_BRANCH='release/3.11.0'
52+
APISIX_VERSION='release/3.12.0'
5253
```
5354

5455
Then, you can run the following command to clone the APISIX source code from Github:
5556

5657
```shell
57-
git clone --depth 1 --branch ${APISIX_VERSION} https://github.com/apache/apisix.git apisix-${APISIX_VERSION}
58+
git clone --depth 1 --branch ${APISIX_BRANCH} https://github.com/apache/apisix.git apisix-${APISIX_BRANCH}
5859
```
5960

6061
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.
6162

63+
Before installation, install [OpenResty](https://openresty.org/en/installation.html).
64+
6265
Next, navigate to the directory, install dependencies, and build APISIX.
6366

6467
```shell
65-
cd apisix-${APISIX_VERSION}
68+
cd apisix-${APISIX_BRANCH}
6669
make deps
6770
make install
6871
```

docs/zh/latest/building-apisix.md

+5-3
Original file line numberDiff line numberDiff line change
@@ -47,23 +47,25 @@ import TabItem from '@theme/TabItem';
4747
首先,我们需要指定需要安装的版本`APISIX_VERSION`:
4848

4949
```shell
50-
APISIX_VERSION='3.12.0'
50+
APISIX_BRANCH='release/3.12.0'
5151
```
5252

5353
然后,你可以运行以下命令,从 Github 克隆 APISIX 源码:
5454

5555
```shell
56-
git clone --depth 1 --branch ${APISIX_VERSION} https://github.com/apache/apisix.git apisix-${APISIX_VERSION}
56+
git clone --depth 1 --branch ${APISIX_BRANCH} https://github.com/apache/apisix.git apisix-${APISIX_BRANCH}
5757
```
5858

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

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

63+
安装之前,请安装[OpenResty](https://openresty.org/en/installation.html)
64+
6365
然后切换到 APISIX 源码的目录,创建依赖项并安装 APISIX,命令如下所示:
6466

6567
```shell
66-
cd apisix-${APISIX_VERSION}
68+
cd apisix-${APISIX_BRANCH}
6769
make deps
6870
make install
6971
```

0 commit comments

Comments
 (0)