Skip to content

Commit

Permalink
docs: move kusion commands under reference (#389)
Browse files Browse the repository at this point in the history
  • Loading branch information
healthjyk authored Jan 9, 2024
1 parent 0da75d3 commit ec467a2
Show file tree
Hide file tree
Showing 25 changed files with 8 additions and 13 deletions.
2 changes: 1 addition & 1 deletion docs/_develop/build-docs/build-docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,4 @@ $ npm run build

## 7. 更新模型文档

Konfig 中的 [模型文档](/docs/user_docs/reference/model) 是从 KCL 代码,通过 [docgen](/docs/user_docs/reference/cli/kcl/docgen) 工具自动提取产生(比如自动生成的 [ConfigMap](/docs/user_docs/reference/model/kusion_models/kube/frontend/configmap/doc_configmap) 模型文档)。如果希望完善模型文档,首先需要到 [Konfig 代码仓库](https://github.com/KusionStack/konfig) 添加或更新文档,然后重新生成文档(目前还不能自动同步,有兴趣的用户可以尝试 [提供帮助](/docs/governance/contribute/contribute-docs))。
Konfig 中的 [模型文档](/docs/user_docs/reference/model) 是从 KCL 代码,通过 [docgen](/docs/user_docs/reference/commands/kcl/docgen) 工具自动提取产生(比如自动生成的 [ConfigMap](/docs/user_docs/reference/model/kusion_models/kube/frontend/configmap/doc_configmap) 模型文档)。如果希望完善模型文档,首先需要到 [Konfig 代码仓库](https://github.com/KusionStack/konfig) 添加或更新文档,然后重新生成文档(目前还不能自动同步,有兴趣的用户可以尝试 [提供帮助](/docs/governance/contribute/contribute-docs))。
2 changes: 1 addition & 1 deletion docs/user_docs/getting-started/_konfig.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,6 @@ Konfig 配置大库整体结构如下:

![](/img/docs/user_docs/getting-started/konfig-arch-01.png)

核心模型内部通过前端模型和后端模型两层抽象简化前端用户的配置代码,底层模型则是通过 [KCL OpenAPI](/docs/user_docs/reference/cli/openapi) 工具自动生成。
核心模型内部通过前端模型和后端模型两层抽象简化前端用户的配置代码,底层模型则是通过 [KCL OpenAPI](/docs/user_docs/reference/commands/openapi) 工具自动生成。

模型的更详细文档可参考 [参考手册/Kusion 模型库](/docs/user_docs/reference/model)
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ The output of `kusion compile` is the spec format.

:::tip

For instructions on the kusion command line tool, execute `kusion -h`, or refer to the tool's online [documentation](/docs/user_docs/reference/cli/kusion/index)
For instructions on the kusion command line tool, execute `kusion -h`, or refer to the tool's online [documentation](../../reference/commands/index.md).
:::

## Applying
Expand Down
2 changes: 1 addition & 1 deletion docs/user_docs/intro/kusion-vs-x.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ It can be difficult to understand how different software compare to each other.

According to the [open GitOps principles](https://opengitops.dev/), GitOps systems typically have its desired state expressed declaratively, continuously observe actual system state and attempt to apply the desired state. In the design of Kusion toolchain, we refer to those principles but have no intention to reinvent any GitOps systems wheel.

Kusion adopts your GitOps process and improves it with richness of features. The declarative [AppConfiguration](/docs/user_docs/concepts/appconfiguration) model can be used to express desired intent, once intent is declared [Kusion CLI](/docs/user_docs/reference/cli/kusion) takes the role to make production match intent as safely as possible.
Kusion adopts your GitOps process and improves it with richness of features. The declarative [AppConfiguration](../concepts/appconfiguration.md) model can be used to express desired intent, once intent is declared [Kusion CLI](../reference/commands/index.md) takes the role to make production match intent as safely as possible.

**vs. PaaS (Heroku, Vercel, etc.)**

Expand Down
4 changes: 0 additions & 4 deletions docs/user_docs/reference/cli/_category_.json

This file was deleted.

1 change: 0 additions & 1 deletion docs/user_docs/reference/cli/index.md

This file was deleted.

File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,4 @@ $ npm run build

## 7. 更新模型文档

Konfig 中的 [模型文档](/docs/user_docs/reference/model) 是从 KCL 代码,通过 [docgen](/docs/user_docs/reference/cli/kcl/docgen) 工具自动提取产生(比如自动生成的 [ConfigMap](/docs/user_docs/reference/model/kusion_models/kube/frontend/configmap/doc_configmap) 模型文档)。如果希望完善模型文档,首先需要到 [Konfig 代码仓库](https://github.com/KusionStack/konfig) 添加或更新文档,然后重新生成文档(目前还不能自动同步,有兴趣的用户可以尝试 [提供帮助](/docs/governance/contribute/contribute-docs)
Konfig 中的 [模型文档](../../user_docs/reference/model) 是从 KCL 代码,通过 docgen 工具自动提取产生(比如自动生成的 [ConfigMap](../../user_docs/reference/model/kusion_models/kube/frontend/configmap/doc_configmap) 模型文档)。如果希望完善模型文档,首先需要到 [Konfig 代码仓库](https://github.com/KusionStack/konfig) 添加或更新文档,然后重新生成文档(目前还不能自动同步,有兴趣的用户可以尝试提供帮助
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,6 @@ Konfig 配置大库整体结构如下:

![](/img/docs/user_docs/getting-started/konfig-arch-01.png)

核心模型内部通过前端模型和后端模型两层抽象简化前端用户的配置代码,底层模型则是通过 [KCL OpenAPI](/docs/user_docs/reference/cli/openapi) 工具自动生成。
核心模型内部通过前端模型和后端模型两层抽象简化前端用户的配置代码,底层模型则是通过 KCL OpenAPI 工具自动生成。

模型的更详细文档可参考 [参考手册/Kusion 模型库](/docs/user_docs/reference/model)
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ The output of `kusion compile` is the spec format.

:::tip

For instructions on the kusion command line tool, execute `kusion -h`, or refer to the tool's online [documentation](/docs/user_docs/reference/cli/kusion/index)
For instructions on the kusion command line tool, execute `kusion -h`, or refer to the tool's online [documentation](../../reference/cli/kusion/index.md).
:::

## Applying
Expand Down
2 changes: 1 addition & 1 deletion versioned_docs/version-v0.9/user_docs/intro/kusion-vs-x.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ It can be difficult to understand how different software compare to each other.

According to the [open GitOps principles](https://opengitops.dev/), GitOps systems typically have its desired state expressed declaratively, continuously observe actual system state and attempt to apply the desired state. In the design of Kusion toolchain, we refer to those principles but have no intention to reinvent any GitOps systems wheel.

Kusion adopts your GitOps process and improves it with richness of features. The declarative [AppConfiguration](/docs/user_docs/concepts/appconfiguration) model can be used to express desired intent, once intent is declared [Kusion CLI](/docs/user_docs/reference/cli/kusion) takes the role to make production match intent as safely as possible.
Kusion adopts your GitOps process and improves it with richness of features. The declarative [AppConfiguration](../concepts/appconfiguration.md) model can be used to express desired intent, once intent is declared [Kusion CLI](../reference/cli/kusion/index.md) takes the role to make production match intent as safely as possible.

**vs. PaaS (Heroku, Vercel, etc.)**

Expand Down

0 comments on commit ec467a2

Please sign in to comment.