Skip to content

Commit e242d82

Browse files
committed
feat: add doc cards for overview documents in user guides
Signed-off-by: peefy <xpf6677@163.com>
1 parent e1a08a0 commit e242d82

File tree

8 files changed

+136
-0
lines changed

8 files changed

+136
-0
lines changed

docs/user_docs/guides/working-with-k8s/0-overview.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ title: "Overview"
33
sidebar_position: 0
44
---
55

6+
import DocsCard from '@site/src/components/global/DocsCard';
7+
import DocsCards from '@site/src/components/global/DocsCards';
8+
69
## Kubernetes
710

811
[Kubernetes](https://kubernetes.io/) is an open source project for running and managing containerized applications on a cluster of machines.
@@ -14,3 +17,17 @@ sidebar_position: 0
1417
- **Dynamic configuration policy management**: **Create**, **orchestrate**, **mutate** or **validate** Kubernetes API resources for application workloads using the modern language including the use of **functions**, **schemas**, **conditionals** and **rich IDE features** (auto-completion, type & error checking, linting, refactoring, etc.) instead of YAML, JSON, scripts and templates.
1518
- **Import from existing Kubernetes ecosystem**: Convert **Kubernetes manifests** and **custom resource types** to KCL.
1619
- **Kubernetes package management**: **Install** or **publish** KCL modules from the [registry](https://artifacthub.io/packages/search?org=kcl&sort=relevance&page=1) for application workload, container and service modules.
20+
21+
## Docs
22+
23+
<DocsCards>
24+
<DocsCard header="Adopt from Kubernetes" href="adopt-from-kubernetes">
25+
<p>Provides the guide to import Kubernetes manifests and CRDs to KCL.</p>
26+
</DocsCard>
27+
<DocsCard header="Generate Kubernetes" href="generate-k8s-manifests">
28+
<p>Provides the guide to generate Kubernetes manifests using KCL.</p>
29+
</DocsCard>
30+
<DocsCard header="Kubernetes Tool Integrations" href="mutate-manifests/kubectl-kcl-plugin">
31+
<p>Provides some Kubernetes tool integrations to mutate or validate Kubernetes manifests using KCL modules.</p>
32+
</DocsCard>
33+
</DocsCards>

docs/user_docs/guides/working-with-konfig/1-overview.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ id: overview
33
sidebar_label: Overview
44
---
55

6+
import DocsCard from '@site/src/components/global/DocsCard';
7+
import DocsCards from '@site/src/components/global/DocsCards';
8+
69
# Konfig Overview
710

811
In KCL, it is recommended to uniformly manage all configurations and model libraries in the way of **configuration library**, that is, to store not only KCL definitions of the abstract model itself, but also various types of configurations, such as application operation and maintenance configuration, policy, etc. The configuration is recommended to be hosted in various VCS systems to facilitate configuration rollback and drift check. The best practice code of the configuration repository is Konfig, and the repository is hosted in [Github](https://github.com/kcl-lang/konfig)
@@ -28,3 +31,17 @@ Konfig provides users with an out-of-the-box and highly abstract configuration i
2831
- **Domain model**: It is a model that does not contain any implementation logic and abstraction. It is often generated by tool transformation and does not need to be modified. It corresponds to the real effective YAML attribute one by one. The domain model needs to be further abstracted and is generally not directly used by users. For example, `kusion_kubernetes` is the domain model library of Kubernetes scenarios.
2932

3033
In addition, the core model simplifies the configuration code of front-end users through two layers of abstraction: the front-end model and the back-end model. The domain model is automatically generated through the [KCL OpenAPI tool](/docs/tools/cli/openapi/quick-start).
34+
35+
## Docs
36+
37+
<DocsCards>
38+
<DocsCard header="Structure" href="structure">
39+
<p>Provides the explanation of the Konfig directory and code structure.</p>
40+
</DocsCard>
41+
<DocsCard header="Quick Start" href="guide">
42+
<p>Provides the quick guide to use Konfig.</p>
43+
</DocsCard>
44+
<DocsCard header="Best Practice" href="practice">
45+
<p>Provides the guide of the best practices for integrating new models into the Konfig library and designing, building and writing KCL codes.</p>
46+
</DocsCard>
47+
</DocsCards>

i18n/zh-CN/docusaurus-plugin-content-docs/current/user_docs/guides/working-with-k8s/0-overview.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ title: "概述"
33
sidebar_position: 0
44
---
55

6+
import DocsCard from '@site/src/components/global/DocsCard';
7+
import DocsCards from '@site/src/components/global/DocsCards';
8+
69
## Kubernetes
710

811
[Kubernetes](https://kubernetes.io/) 是一个开源项目,用于在一组机器集群上运行和管理容器化应用程序。
@@ -14,3 +17,17 @@ sidebar_position: 0
1417
- **动态配置策略管理**:使用现代语言(包括函数、类型、条件语句和丰富的 IDE 集成开发环境功能)来创建、编排、更改或验证应用负载的 Kubernetes API 资源,而不是使用 YAML、JSON、脚本和模板等方式。
1518
- **接入 Kubernetes 已有生态**:将 Kubernetes 配置清单和自定义资源类型转换为 KCL 配置和 Schema 并使用。
1619
- **Kubernetes 包管理**:使用 KCL 包管理工具从 Registry 下载安装和发布应用负载、容器和服务等模型。
20+
21+
## 文档
22+
23+
<DocsCards>
24+
<DocsCard header="Adopt from Kubernetes" href="adopt-from-kubernetes">
25+
<p>将 Kubernetes 清单和 CRD 转换为 KCL 代码的指南。</p>
26+
</DocsCard>
27+
<DocsCard header="Generate Kubernetes" href="generate-k8s-manifests">
28+
<p>使用 KCL 生成 Kubernetes 清单的指南。</p>
29+
</DocsCard>
30+
<DocsCard header="Kubernetes Tool Integrations" href="mutate-manifests/kubectl-kcl-plugin">
31+
<p>提供一些 Kubernetes 工具集成,以及使用 KCL 模块对 Kubernetes 清单进行变异或验证的指南。</p>
32+
</DocsCard>
33+
</DocsCards>

i18n/zh-CN/docusaurus-plugin-content-docs/current/user_docs/guides/working-with-konfig/1-overview.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ id: overview
33
sidebar_label: 概述
44
---
55

6+
import DocsCard from '@site/src/components/global/DocsCard';
7+
import DocsCards from '@site/src/components/global/DocsCards';
8+
69
# Konfig 概述
710

811
在 KCL 中推荐通过**配置库**的方式统一管理所有的配置清单和模型库,即不仅存放抽象模型本身的 KCL 定义,还存放各种类型的配置清单,比如应用的运维配置、策略配置等。配置大库推荐托管在各类 VCS 系统中,以方便做配置的回滚和漂移检查。配置大库的最佳实践代号为 Konfig,仓库托管在 [Github](https://github.com/kcl-lang/konfig)
@@ -28,3 +31,17 @@ Konfig 提供给用户开箱即用、高度抽象的配置界面,模型库最
2831
- **领域模型**:是不包含任何实现逻辑和抽象的模型,往往由工具转换生成,无需修改,和真正生效的 YAML 属性一一对应,底层模型需要经过进一步抽象,一般不直接被用户使用。比如,kusion_kubernetes 是 Kubernetes 场景的底层模型库。
2932

3033
此外,核心模型内部通过前端模型和后端模型两层抽象简化前端用户的配置代码,底层模型则是通过 [KCL OpenAPI 工具](/docs/tools/cli/openapi/quick-start) 自动生成。
34+
35+
## 文档
36+
37+
<DocsCards>
38+
<DocsCard header="Structure" href="structure">
39+
<p>Konfig 仓库目录和代码结构的说明。</p>
40+
</DocsCard>
41+
<DocsCard header="Quick Start" href="guide">
42+
<p>使用 Konfig 的快速指南。</p>
43+
</DocsCard>
44+
<DocsCard header="Best Practice" href="practice">
45+
<p>将新模型集成到 Konfig 以及 KCL 代码编写的最佳实践指南。</p>
46+
</DocsCard>
47+
</DocsCards>

i18n/zh-CN/docusaurus-plugin-content-docs/version-0.7.0/user_docs/guides/working-with-k8s/0-overview.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ title: "概述"
33
sidebar_position: 0
44
---
55

6+
import DocsCard from '@site/src/components/global/DocsCard';
7+
import DocsCards from '@site/src/components/global/DocsCards';
8+
69
## Kubernetes
710

811
[Kubernetes](https://kubernetes.io/) 是一个开源项目,用于在一组机器集群上运行和管理容器化应用程序。
@@ -14,3 +17,17 @@ sidebar_position: 0
1417
- **动态配置策略管理**:使用现代语言(包括函数、类型、条件语句和丰富的 IDE 集成开发环境功能)来创建、编排、更改或验证应用负载的 Kubernetes API 资源,而不是使用 YAML、JSON、脚本和模板等方式。
1518
- **接入 Kubernetes 已有生态**:将 Kubernetes 配置清单和自定义资源类型转换为 KCL 配置和 Schema 并使用。
1619
- **Kubernetes 包管理**:使用 KCL 包管理工具从 Registry 下载安装和发布应用负载、容器和服务等模型。
20+
21+
## 文档
22+
23+
<DocsCards>
24+
<DocsCard header="Adopt from Kubernetes" href="adopt-from-kubernetes">
25+
<p>将 Kubernetes 清单和 CRD 转换为 KCL 代码的指南。</p>
26+
</DocsCard>
27+
<DocsCard header="Generate Kubernetes" href="generate-k8s-manifests">
28+
<p>使用 KCL 生成 Kubernetes 清单的指南。</p>
29+
</DocsCard>
30+
<DocsCard header="Kubernetes Tool Integrations" href="mutate-manifests/kubectl-kcl-plugin">
31+
<p>提供一些 Kubernetes 工具集成,以及使用 KCL 模块对 Kubernetes 清单进行变异或验证的指南。</p>
32+
</DocsCard>
33+
</DocsCards>

i18n/zh-CN/docusaurus-plugin-content-docs/version-0.7.0/user_docs/guides/working-with-konfig/1-overview.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ id: overview
33
sidebar_label: 概述
44
---
55

6+
import DocsCard from '@site/src/components/global/DocsCard';
7+
import DocsCards from '@site/src/components/global/DocsCards';
8+
69
# Konfig 概述
710

811
在 KCL 中推荐通过**配置库**的方式统一管理所有的配置清单和模型库,即不仅存放抽象模型本身的 KCL 定义,还存放各种类型的配置清单,比如应用的运维配置、策略配置等。配置大库推荐托管在各类 VCS 系统中,以方便做配置的回滚和漂移检查。配置大库的最佳实践代号为 Konfig,仓库托管在 [Github](https://github.com/kcl-lang/konfig)
@@ -28,3 +31,17 @@ Konfig 提供给用户开箱即用、高度抽象的配置界面,模型库最
2831
- **领域模型**:是不包含任何实现逻辑和抽象的模型,往往由工具转换生成,无需修改,和真正生效的 YAML 属性一一对应,底层模型需要经过进一步抽象,一般不直接被用户使用。比如,kusion_kubernetes 是 Kubernetes 场景的底层模型库。
2932

3033
此外,核心模型内部通过前端模型和后端模型两层抽象简化前端用户的配置代码,底层模型则是通过 [KCL OpenAPI 工具](/docs/tools/cli/openapi/quick-start) 自动生成。
34+
35+
## 文档
36+
37+
<DocsCards>
38+
<DocsCard header="Structure" href="structure">
39+
<p>Konfig 仓库目录和代码结构的说明。</p>
40+
</DocsCard>
41+
<DocsCard header="Quick Start" href="guide">
42+
<p>使用 Konfig 的快速指南。</p>
43+
</DocsCard>
44+
<DocsCard header="Best Practice" href="practice">
45+
<p>将新模型集成到 Konfig 以及 KCL 代码编写的最佳实践指南。</p>
46+
</DocsCard>
47+
</DocsCards>

versioned_docs/version-0.7.0/user_docs/guides/working-with-k8s/0-overview.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ title: "Overview"
33
sidebar_position: 0
44
---
55

6+
import DocsCard from '@site/src/components/global/DocsCard';
7+
import DocsCards from '@site/src/components/global/DocsCards';
8+
69
## Kubernetes
710

811
[Kubernetes](https://kubernetes.io/) is an open source project for running and managing containerized applications on a cluster of machines.
@@ -14,3 +17,17 @@ sidebar_position: 0
1417
- **Dynamic configuration policy management**: **Create**, **orchestrate**, **mutate** or **validate** Kubernetes API resources for application workloads using the modern language including the use of **functions**, **schemas**, **conditionals** and **rich IDE features** (auto-completion, type & error checking, linting, refactoring, etc.) instead of YAML, JSON, scripts and templates.
1518
- **Import from existing Kubernetes ecosystem**: Convert **Kubernetes manifests** and **custom resource types** to KCL.
1619
- **Kubernetes package management**: **Install** or **publish** KCL modules from the [registry](https://artifacthub.io/packages/search?org=kcl&sort=relevance&page=1) for application workload, container and service modules.
20+
21+
## Docs
22+
23+
<DocsCards>
24+
<DocsCard header="Adopt from Kubernetes" href="adopt-from-kubernetes">
25+
<p>Provides the guide to import Kubernetes manifests and CRDs to KCL.</p>
26+
</DocsCard>
27+
<DocsCard header="Generate Kubernetes" href="generate-k8s-manifests">
28+
<p>Provides the guide to generate Kubernetes manifests using KCL.</p>
29+
</DocsCard>
30+
<DocsCard header="Kubernetes Tool Integrations" href="mutate-manifests/kubectl-kcl-plugin">
31+
<p>Provides some Kubernetes tool integrations to mutate or validate Kubernetes manifests using KCL modules.</p>
32+
</DocsCard>
33+
</DocsCards>

versioned_docs/version-0.7.0/user_docs/guides/working-with-konfig/1-overview.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ id: overview
33
sidebar_label: Overview
44
---
55

6+
import DocsCard from '@site/src/components/global/DocsCard';
7+
import DocsCards from '@site/src/components/global/DocsCards';
8+
69
# Konfig Overview
710

811
In KCL, it is recommended to uniformly manage all configurations and model libraries in the way of **configuration library**, that is, to store not only KCL definitions of the abstract model itself, but also various types of configurations, such as application operation and maintenance configuration, policy, etc. The configuration is recommended to be hosted in various VCS systems to facilitate configuration rollback and drift check. The best practice code of the configuration repository is Konfig, and the repository is hosted in [Github](https://github.com/kcl-lang/konfig)
@@ -28,3 +31,17 @@ Konfig provides users with an out-of-the-box and highly abstract configuration i
2831
- **Domain model**: It is a model that does not contain any implementation logic and abstraction. It is often generated by tool transformation and does not need to be modified. It corresponds to the real effective YAML attribute one by one. The domain model needs to be further abstracted and is generally not directly used by users. For example, `kusion_kubernetes` is the domain model library of Kubernetes scenarios.
2932

3033
In addition, the core model simplifies the configuration code of front-end users through two layers of abstraction: the front-end model and the back-end model. The domain model is automatically generated through the [KCL OpenAPI tool](/docs/tools/cli/openapi/quick-start).
34+
35+
## Docs
36+
37+
<DocsCards>
38+
<DocsCard header="Structure" href="structure">
39+
<p>Provides the explanation of the Konfig directory and code structure.</p>
40+
</DocsCard>
41+
<DocsCard header="Quick Start" href="guide">
42+
<p>Provides the quick guide to use Konfig.</p>
43+
</DocsCard>
44+
<DocsCard header="Best Practice" href="practice">
45+
<p>Provides the guide of the best practices for integrating new models into the Konfig library and designing, building and writing KCL codes.</p>
46+
</DocsCard>
47+
</DocsCards>

0 commit comments

Comments
 (0)