From 6784e7fa0d9e62a84bc2390e47569f1582cc9167 Mon Sep 17 00:00:00 2001 From: Peefy Date: Mon, 30 Jan 2023 10:00:51 +0800 Subject: [PATCH] feat: add the kcl website link in the quick start document. (#205) --- docs/user_docs/getting-started/kcl.md | 4 ++++ .../current/user_docs/getting-started/kcl.md | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/docs/user_docs/getting-started/kcl.md b/docs/user_docs/getting-started/kcl.md index cea376a9..5ae11846 100644 --- a/docs/user_docs/getting-started/kcl.md +++ b/docs/user_docs/getting-started/kcl.md @@ -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. diff --git a/i18n/zh-CN/docusaurus-plugin-content-docs/current/user_docs/getting-started/kcl.md b/i18n/zh-CN/docusaurus-plugin-content-docs/current/user_docs/getting-started/kcl.md index ea441934..dd01cef7 100644 --- a/i18n/zh-CN/docusaurus-plugin-content-docs/current/user_docs/getting-started/kcl.md +++ b/i18n/zh-CN/docusaurus-plugin-content-docs/current/user_docs/getting-started/kcl.md @@ -150,3 +150,7 @@ servers = [ 其中 `ServerConfig` 的 `ip` 是字符串类型,并没有给出默认值。用户在生成 `ServerConfig` 类型的属性时必须手工添加 `ip` 属性的值,否则 KCL 将会报出缺少必填属性的错误。`role` 属性是 `"frontend" | "backend"` 枚举字符串类型。 此外,`schema` 还可以结合 `check`、`mixin`、可选属性、继承和扩展模块实现更为复杂的配置和策略数据的抽象,细节可以参考手册部分的文档。 + +## 更多文档 + +访问 [KCL 网站](https://kcl-lang.io/) 获取更多 KCL 信息。