Skip to content

Commit

Permalink
feat: add the kcl website link in the quick start document. (#205)
Browse files Browse the repository at this point in the history
  • Loading branch information
Peefy authored Jan 30, 2023
1 parent 690098b commit 6784e7f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/user_docs/getting-started/kcl.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,3 +150,7 @@ servers = [
The attribute `ip` of `ServerConfig` is a string type, and no default value is given. We must manually add the value of the `ip` attribute when generating the `ServerConfig` type attribute, otherwise the KCL will report a missing required attribute error. The `role` attribute is a `"frontend" | "backend"` enumerated string type.

In addition, `schema` can also combine `check`, `mixin`, optional attributes, inheritance and extension modules to achieve more complex configuration and policy data abstraction, details can be found at [here](../../reference/lang/lang/tour.md).

## More Documents

Visit the [KCL website](https://kcl-lang.io/) for more documents.
Original file line number Diff line number Diff line change
Expand Up @@ -150,3 +150,7 @@ servers = [
其中 `ServerConfig` 的 `ip` 是字符串类型,并没有给出默认值。用户在生成 `ServerConfig` 类型的属性时必须手工添加 `ip` 属性的值,否则 KCL 将会报出缺少必填属性的错误。`role` 属性是 `"frontend" | "backend"` 枚举字符串类型。

此外,`schema` 还可以结合 `check`、`mixin`、可选属性、继承和扩展模块实现更为复杂的配置和策略数据的抽象,细节可以参考手册部分的文档。

## 更多文档

访问 [KCL 网站](https://kcl-lang.io/) 获取更多 KCL 信息。

0 comments on commit 6784e7f

Please sign in to comment.