Skip to content

Commit

Permalink
ci(lint): fix the path of Chinese doc (#7063)
Browse files Browse the repository at this point in the history
Signed-off-by: spacewander <spacewanderlzx@gmail.com>
  • Loading branch information
spacewander authored May 17, 2022
1 parent 5966f86 commit 6ebe027
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/doc-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,4 @@ jobs:
wget -O- "https://github.com/huacnlee/autocorrect/releases/download/$version/autocorrect-linux-amd64.tar.gz" | tar -xzv
mv -v autocorrect /usr/local/bin/
autocorrect --version
git ls-files -- "docs/zh/latest/**/*.md" | xargs -t autocorrect --lint
git ls-files -- "docs/zh/latest/**.md" | xargs -t autocorrect --lint
16 changes: 8 additions & 8 deletions docs/zh/latest/FAQ.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Apache APISIX 在以下方面有所不同:

如果您想获取性能基准测试的具体结果,请查看 [benchmark](benchmark.md)

## Apache APISIX 支持哪些平台?
## Apache APISIX 支持哪些平台

Apache APISIX 是一个开源的云原生 API 网关,它支持在裸金属服务器上运行,也支持在 Kubernetes 上使用,甚至也可以运行在 Apple Silicon ARM 芯片上。

Expand Down Expand Up @@ -258,7 +258,7 @@ nginx_config:
默认情况下,APISIX 在处理 HTTP 请求时只监听 9080 端口。
要配置 Apache APISIX 监听多个端口,你可以:
要配置 Apache APISIX 监听多个端口,你可以
1. 修改 `conf/config.yaml` 中 HTTP 端口监听的参数 `node_listen`,示例:

Expand Down Expand Up @@ -306,12 +306,12 @@ apisix:

## 为什么 `error.log` 中会出现 "failed to fetch data from etcd, failed to read etcd dir, etcd key: xxxxxx" 的错误?

请按照以下步骤进行故障排除:
请按照以下步骤进行故障排除

1. 确保 Apache APISIX 和集群中的 etcd 部署之间没有任何网络问题。
2. 如果网络正常,请检查是否为 etcd 启用了[gRPC gateway](https://etcd.io/docs/v3.4.0/dev-guide/api_grpc_gateway/)。默认状态取决于你是使用命令行还是配置文件来启动 etcd 服务器。

- 如果使用命令行选项,默认启用 gRPC 网关。可以手动启用,如下所示:
- 如果使用命令行选项,默认启用 gRPC 网关。可以手动启用,如下所示

```shell
etcd --enable-grpc-gateway --data-dir=/path/to/data
Expand Down Expand Up @@ -362,7 +362,7 @@ make: *** [deps] Error 1

## 我如何通过 APISIX 代理访问 APISIX Dashboard?

你可以按照以下步骤进行配置:
你可以按照以下步骤进行配置

1. 为 Apache APISIX 代理和 Admin API 配置不同的端口,或者禁用 Admin API。

Expand Down Expand Up @@ -508,7 +508,7 @@ apisix:

## 如何基于 acme.sh 自动更新 APISIX SSL 证书?

你可以运行以下命令来实现这一点:
你可以运行以下命令来实现这一点

```bash
curl --output /root/.acme.sh/renew-hook-update-apisix.sh --silent https://gist.githubusercontent.com/anjia0532/9ebf8011322f43e3f5037bc2af3aeaa6/raw/65b359a4eed0ae990f9188c2afa22bacd8471652/renew-hook-update-apisix.sh
Expand Down Expand Up @@ -582,9 +582,9 @@ apisix:

解决办法是改变 APISIX 的安装目录,推荐安装在 `/usr/local` 目录下。

## 在Apache APISIX中,`plugin-metadata` 和 `plugin-configs` 有什么区别?
## 在 Apache APISIX 中,`plugin-metadata` 和 `plugin-configs` 有什么区别?

两者之间的差异如下:
两者之间的差异如下

| `plugin-metadata` | `plugin-config` |
| ---------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- |
Expand Down
2 changes: 1 addition & 1 deletion docs/zh/latest/admin-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ APISIX 的 Upstream 除了基本的负载均衡算法选择外,还支持对上
| checks | 可选 | health_checker | 配置健康检查的参数,详细可参考[health-check](health-check.md) | |
| retries | 可选 | 整型 | 使用底层的 Nginx 重试机制将请求传递给下一个上游,默认启用重试且次数为后端可用的 node 数量。如果指定了具体重试次数,它将覆盖默认值。`0` 代表不启用重试机制。 | |
| retry_timeout | 可选 | number | 限制是否继续重试的时间,若之前的请求和重试请求花费太多时间就不再继续重试。`0` 代表不启用重试超时机制。 | |
| timeout | 可选 | 超时时间对象 | 设置连接、发送消息、接收消息的超时时间(单位为秒) | |
| timeout | 可选 | 超时时间对象 | 设置连接、发送消息、接收消息的超时时间,以秒为单位 | |
| hash_on | 可选 | 辅助 | `hash_on` 支持的类型有 `vars`(Nginx 内置变量),`header`(自定义 header),`cookie``consumer`,默认值为 `vars` |
| name | 可选 | 辅助 | 标识上游服务名称、使用场景等。 | |
| desc | 可选 | 辅助 | 上游服务描述、使用场景等。 | |
Expand Down

0 comments on commit 6ebe027

Please sign in to comment.