Skip to content

Commit 93ed7ae

Browse files
committed
fix typo ngnix to nginx
Signed-off-by: chengzw <[email protected]>
1 parent f813aee commit 93ed7ae

File tree

39 files changed

+154
-154
lines changed

39 files changed

+154
-154
lines changed

blog/2023-07-14-kcl-0.5.0-release/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -406,8 +406,8 @@ spec:
406406
params:
407407
name: app
408408
containers:
409-
ngnix:
410-
image: ngnix
409+
nginx:
410+
image: nginx
411411
ports:
412412
- containerPort: 80
413413
service:

blog/2023-09-08-dcm-using-kcl/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,8 @@ spec:
108108
params:
109109
name: app
110110
containers:
111-
ngnix:
112-
image: ngnix
111+
nginx:
112+
image: nginx
113113
ports:
114114
- containerPort: 80
115115
service:

docs/user_docs/concepts/type-and-definition.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ where $k$ is the attribute name, $v$ is the attributes value, and $T$ is the typ
1717
By default, KCL does not require type annotations and performs type checks at runtime.
1818

1919
```python
20-
name = "ngnix" # The type of `name` is `str`
20+
name = "nginx" # The type of `name` is `str`
2121
port = 80 # The type of `port` is `int`
2222
```
2323

docs/user_docs/guides/abstraction.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,15 +60,15 @@ import .app
6060

6161
app.App {
6262
name = "app"
63-
containers.ngnix = {
64-
image = "ngnix"
63+
containers.nginx = {
64+
image = "nginx"
6565
ports = [{containerPort = 80}]
6666
}
6767
service.ports = [{ port = 80 }]
6868
}
6969
```
7070

71-
In the above code, we defined a configuration using the `App` schema, where we configured an `ngnix` container and configured it with an `80` service port.
71+
In the above code, we defined a configuration using the `App` schema, where we configured an `nginx` container and configured it with an `80` service port.
7272

7373
Besides, KCL allows developers to define the resources required for their applications in a declarative manner and is tied to a platform such as Docker Compose or Kubernetes manifests and allows to generate a platform-specific configuration file such as `docker-compose.yaml` or a Kubernetes `manifests.yaml` file. Next, let's generate the corresponding configuration.
7474

@@ -85,7 +85,7 @@ The output is
8585
```yaml
8686
services:
8787
app:
88-
image: ngnix
88+
image: nginx
8989
ports:
9090
- published: 80
9191
target: 80
@@ -120,8 +120,8 @@ spec:
120120
app: app
121121
spec:
122122
containers:
123-
- name: ngnix
124-
image: ngnix
123+
- name: nginx
124+
image: nginx
125125
ports:
126126
- protocol: TCP
127127
containerPort: 80

examples/abstraction/main.k

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import .app
22

33
app.App {
44
name = "app"
5-
containers.ngnix = {
6-
image = "ngnix"
5+
containers.nginx = {
6+
image = "nginx"
77
ports = [{containerPort = 80}]
88
}
99
service.ports = [{ port = 80 }]

i18n/zh-CN/docusaurus-plugin-content-blog/2023-07-14-kcl-0.5.0-release/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -408,8 +408,8 @@ spec:
408408
params:
409409
name: app
410410
containers:
411-
ngnix:
412-
image: ngnix
411+
nginx:
412+
image: nginx
413413
ports:
414414
- containerPort: 80
415415
service:

i18n/zh-CN/docusaurus-plugin-content-blog/2023-09-08-dcm-using-kcl/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,8 @@ spec:
108108
params:
109109
name: app
110110
containers:
111-
ngnix:
112-
image: ngnix
111+
nginx:
112+
image: nginx
113113
ports:
114114
- containerPort: 80
115115
service:

i18n/zh-CN/docusaurus-plugin-content-docs/current/user_docs/concepts/type-and-definition.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ where $k$ is the attribute name, $v$ is the attributes value, and $T$ is the typ
1717
By default, KCL does not require type annotations and performs type checks at runtime.
1818

1919
```python
20-
name = "ngnix" # The type of `name` is `str`
20+
name = "nginx" # The type of `name` is `str`
2121
port = 80 # The type of `port` is `int`
2222
```
2323

i18n/zh-CN/docusaurus-plugin-content-docs/current/user_docs/guides/abstraction.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,15 +58,15 @@ import .app
5858

5959
app.App {
6060
name = "app"
61-
containers.ngnix = {
62-
image = "ngnix"
61+
containers.nginx = {
62+
image = "nginx"
6363
ports = [{containerPort = 80}]
6464
}
6565
service.ports = [{ port = 80 }]
6666
}
6767
```
6868

69-
在上面的代码中,我们使用 `App` schema 定义了一个配置,其中我们配置了一个 `ngnix` 容器,并开启 `80` 端口配置。
69+
在上面的代码中,我们使用 `App` schema 定义了一个配置,其中我们配置了一个 `nginx` 容器,并开启 `80` 端口配置。
7070

7171
此外,KCL 允许开发人员以声明式的方式定义应用程序所需的资源,并允许生成特定于平台的配置文件,如 `docker_compose.yaml` 或 Kubernetes `manifests.yaml` 文件。接下来,让我们生成相应的配置。
7272

@@ -83,7 +83,7 @@ kcl main.k docker_compose_render.k
8383
```yaml
8484
services:
8585
app:
86-
image: ngnix
86+
image: nginx
8787
ports:
8888
- published: 80
8989
target: 80
@@ -118,8 +118,8 @@ spec:
118118
app: app
119119
spec:
120120
containers:
121-
- name: ngnix
122-
image: ngnix
121+
- name: nginx
122+
image: nginx
123123
ports:
124124
- protocol: TCP
125125
containerPort: 80

i18n/zh-CN/docusaurus-plugin-content-docs/version-0.4.6/user_docs/guides/abstraction.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,15 @@ import .app
5454

5555
app.App {
5656
name = "app"
57-
containers.ngnix = {
58-
image = "ngnix"
57+
containers.nginx = {
58+
image = "nginx"
5959
ports = [{containerPort = 80}]
6060
}
6161
service.ports = [{ port = 80 }]
6262
}
6363
```
6464

65-
在上面的代码中,我们使用 `App` schema 定义了一个配置,其中我们配置了一个 `ngnix` 容器,并开启 `80` 端口配置。
65+
在上面的代码中,我们使用 `App` schema 定义了一个配置,其中我们配置了一个 `nginx` 容器,并开启 `80` 端口配置。
6666

6767
此外,KCL 允许开发人员以声明式的方式定义应用程序所需的资源,并允许生成特定于平台的配置文件,如 `docker_compose.yaml` 或 Kubernetes `manifests.yaml` 文件。接下来,让我们生成相应的配置。
6868

@@ -74,7 +74,7 @@ app.App {
7474
$ kcl main.k docker_compose_render.k
7575
services:
7676
app:
77-
image: ngnix
77+
image: nginx
7878
ports:
7979
- published: 80
8080
target: 80
@@ -104,8 +104,8 @@ spec:
104104
app: app
105105
spec:
106106
containers:
107-
- name: ngnix
108-
image: ngnix
107+
- name: nginx
108+
image: nginx
109109
ports:
110110
- protocol: TCP
111111
containerPort: 80

i18n/zh-CN/docusaurus-plugin-content-docs/version-0.5.0/user_docs/guides/abstraction.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,15 @@ import .app
5454

5555
app.App {
5656
name = "app"
57-
containers.ngnix = {
58-
image = "ngnix"
57+
containers.nginx = {
58+
image = "nginx"
5959
ports = [{containerPort = 80}]
6060
}
6161
service.ports = [{ port = 80 }]
6262
}
6363
```
6464

65-
在上面的代码中,我们使用 `App` schema 定义了一个配置,其中我们配置了一个 `ngnix` 容器,并开启 `80` 端口配置。
65+
在上面的代码中,我们使用 `App` schema 定义了一个配置,其中我们配置了一个 `nginx` 容器,并开启 `80` 端口配置。
6666

6767
此外,KCL 允许开发人员以声明式的方式定义应用程序所需的资源,并允许生成特定于平台的配置文件,如 `docker_compose.yaml` 或 Kubernetes `manifests.yaml` 文件。接下来,让我们生成相应的配置。
6868

@@ -79,7 +79,7 @@ kcl main.k docker_compose_render.k
7979
```yaml
8080
services:
8181
app:
82-
image: ngnix
82+
image: nginx
8383
ports:
8484
- published: 80
8585
target: 80
@@ -114,8 +114,8 @@ spec:
114114
app: app
115115
spec:
116116
containers:
117-
- name: ngnix
118-
image: ngnix
117+
- name: nginx
118+
image: nginx
119119
ports:
120120
- protocol: TCP
121121
containerPort: 80

i18n/zh-CN/docusaurus-plugin-content-docs/version-0.5.1/user_docs/guides/abstraction.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,15 @@ import .app
5454

5555
app.App {
5656
name = "app"
57-
containers.ngnix = {
58-
image = "ngnix"
57+
containers.nginx = {
58+
image = "nginx"
5959
ports = [{containerPort = 80}]
6060
}
6161
service.ports = [{ port = 80 }]
6262
}
6363
```
6464

65-
在上面的代码中,我们使用 `App` schema 定义了一个配置,其中我们配置了一个 `ngnix` 容器,并开启 `80` 端口配置。
65+
在上面的代码中,我们使用 `App` schema 定义了一个配置,其中我们配置了一个 `nginx` 容器,并开启 `80` 端口配置。
6666

6767
此外,KCL 允许开发人员以声明式的方式定义应用程序所需的资源,并允许生成特定于平台的配置文件,如 `docker_compose.yaml` 或 Kubernetes `manifests.yaml` 文件。接下来,让我们生成相应的配置。
6868

@@ -79,7 +79,7 @@ kcl main.k docker_compose_render.k
7979
```yaml
8080
services:
8181
app:
82-
image: ngnix
82+
image: nginx
8383
ports:
8484
- published: 80
8585
target: 80
@@ -114,8 +114,8 @@ spec:
114114
app: app
115115
spec:
116116
containers:
117-
- name: ngnix
118-
image: ngnix
117+
- name: nginx
118+
image: nginx
119119
ports:
120120
- protocol: TCP
121121
containerPort: 80

i18n/zh-CN/docusaurus-plugin-content-docs/version-0.5.2/user_docs/guides/abstraction.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,15 +58,15 @@ import .app
5858

5959
app.App {
6060
name = "app"
61-
containers.ngnix = {
62-
image = "ngnix"
61+
containers.nginx = {
62+
image = "nginx"
6363
ports = [{containerPort = 80}]
6464
}
6565
service.ports = [{ port = 80 }]
6666
}
6767
```
6868

69-
在上面的代码中,我们使用 `App` schema 定义了一个配置,其中我们配置了一个 `ngnix` 容器,并开启 `80` 端口配置。
69+
在上面的代码中,我们使用 `App` schema 定义了一个配置,其中我们配置了一个 `nginx` 容器,并开启 `80` 端口配置。
7070

7171
此外,KCL 允许开发人员以声明式的方式定义应用程序所需的资源,并允许生成特定于平台的配置文件,如 `docker_compose.yaml` 或 Kubernetes `manifests.yaml` 文件。接下来,让我们生成相应的配置。
7272

@@ -83,7 +83,7 @@ kcl main.k docker_compose_render.k
8383
```yaml
8484
services:
8585
app:
86-
image: ngnix
86+
image: nginx
8787
ports:
8888
- published: 80
8989
target: 80
@@ -118,8 +118,8 @@ spec:
118118
app: app
119119
spec:
120120
containers:
121-
- name: ngnix
122-
image: ngnix
121+
- name: nginx
122+
image: nginx
123123
ports:
124124
- protocol: TCP
125125
containerPort: 80

i18n/zh-CN/docusaurus-plugin-content-docs/version-0.5.3/user_docs/guides/abstraction.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,15 +58,15 @@ import .app
5858

5959
app.App {
6060
name = "app"
61-
containers.ngnix = {
62-
image = "ngnix"
61+
containers.nginx = {
62+
image = "nginx"
6363
ports = [{containerPort = 80}]
6464
}
6565
service.ports = [{ port = 80 }]
6666
}
6767
```
6868

69-
在上面的代码中,我们使用 `App` schema 定义了一个配置,其中我们配置了一个 `ngnix` 容器,并开启 `80` 端口配置。
69+
在上面的代码中,我们使用 `App` schema 定义了一个配置,其中我们配置了一个 `nginx` 容器,并开启 `80` 端口配置。
7070

7171
此外,KCL 允许开发人员以声明式的方式定义应用程序所需的资源,并允许生成特定于平台的配置文件,如 `docker_compose.yaml` 或 Kubernetes `manifests.yaml` 文件。接下来,让我们生成相应的配置。
7272

@@ -83,7 +83,7 @@ kcl main.k docker_compose_render.k
8383
```yaml
8484
services:
8585
app:
86-
image: ngnix
86+
image: nginx
8787
ports:
8888
- published: 80
8989
target: 80
@@ -118,8 +118,8 @@ spec:
118118
app: app
119119
spec:
120120
containers:
121-
- name: ngnix
122-
image: ngnix
121+
- name: nginx
122+
image: nginx
123123
ports:
124124
- protocol: TCP
125125
containerPort: 80

i18n/zh-CN/docusaurus-plugin-content-docs/version-0.5.4/user_docs/concepts/type-and-definition.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ where $k$ is the attribute name, $v$ is the attributes value, and $T$ is the typ
1717
By default, KCL does not require type annotations and performs type checks at runtime.
1818

1919
```python
20-
name = "ngnix" # The type of `name` is `str`
20+
name = "nginx" # The type of `name` is `str`
2121
port = 80 # The type of `port` is `int`
2222
```
2323

i18n/zh-CN/docusaurus-plugin-content-docs/version-0.5.4/user_docs/guides/abstraction.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,15 +58,15 @@ import .app
5858

5959
app.App {
6060
name = "app"
61-
containers.ngnix = {
62-
image = "ngnix"
61+
containers.nginx = {
62+
image = "nginx"
6363
ports = [{containerPort = 80}]
6464
}
6565
service.ports = [{ port = 80 }]
6666
}
6767
```
6868

69-
在上面的代码中,我们使用 `App` schema 定义了一个配置,其中我们配置了一个 `ngnix` 容器,并开启 `80` 端口配置。
69+
在上面的代码中,我们使用 `App` schema 定义了一个配置,其中我们配置了一个 `nginx` 容器,并开启 `80` 端口配置。
7070

7171
此外,KCL 允许开发人员以声明式的方式定义应用程序所需的资源,并允许生成特定于平台的配置文件,如 `docker_compose.yaml` 或 Kubernetes `manifests.yaml` 文件。接下来,让我们生成相应的配置。
7272

@@ -83,7 +83,7 @@ kcl main.k docker_compose_render.k
8383
```yaml
8484
services:
8585
app:
86-
image: ngnix
86+
image: nginx
8787
ports:
8888
- published: 80
8989
target: 80
@@ -118,8 +118,8 @@ spec:
118118
app: app
119119
spec:
120120
containers:
121-
- name: ngnix
122-
image: ngnix
121+
- name: nginx
122+
image: nginx
123123
ports:
124124
- protocol: TCP
125125
containerPort: 80

0 commit comments

Comments
 (0)