Switch language name 'zh' to 'zh-cn'

This is the first step to rename 'zh' to 'zh-cn'. There are several reasons why we rename the language name.

- The upstream docsy theme changed the language name, leading to many warnings during site build;
  The side-effect is that the i18n strings are no longer working.
- We believe renaming the language is the right thing to do, because this move can make room for other variants of Chinese language, such as 'zh-tw', 'zh-sg' etc.

There would be several follow-ups to this PR, such as fixing the intra-site links, adding redirects etc.

We will lock up changes to zh/zh-cn pages for the moment, until this one gets in.

This PR is based on commit cdad0a7342.
This commit is contained in:
Qiming Teng
2022-06-10 20:25:27 +08:00
parent 3d345b1816
commit c52818c03d
1347 changed files with 8 additions and 6 deletions
+113
View File
@@ -0,0 +1,113 @@
---
title: Kubernetes 文档
noedit: true
cid: docsHome
layout: docsportal_home
class: gridPage gridPageHome
linkTitle: "主页"
main_menu: true
weight: 10
hide_feedback: true
menu:
main:
title: "文档"
weight: 20
post: >
<p>通过概念、教程和参考文档了解如何使用 Kubernetes。你甚至可以<a href="/editdocs/" data-auto-burger-exclude data-proofer-ignore>帮助贡献文档</a></p>
# description: >
# Kubernetes is an open source container orchestration engine for automating deployment, scaling, and management of containerized applications. The open source project is hosted by the Cloud Native Computing Foundation.
description: >
Kubernetes 是一个开源的容器编排引擎,用来对容器化应用进行自动部署、 扩缩和管理。此开源项目由云原生计算基金会(CNCF)托管。
# overview:
# Kubernetes is an open source container orchestration engine for automating deployment, scaling, and management of containerized applications. The open source project is hosted by the Cloud Native Computing Foundation (<a href="https://www.cncf.io/about">CNCF</a>).
overview:
Kubernetes 是一个开源的容器编排引擎,用来对容器化应用进行自动化部署、 扩缩和管理。该项目托管在 <a href="https://www.cncf.io/about">CNCF</a>。
# cards:
# - name: concepts
# title: "Understand Kubernetes"
# description: "Learn about Kubernetes and its fundamental concepts."
# button: "View Concepts"
# button_path: "/docs/concepts"
# - name: tutorials
# title: "Try Kubernetes"
# description: "Follow tutorials to learn how to deploy applications in Kubernetes."
# button: "View Tutorials"
# button_path: "/docs/tutorials"
# - name: setup
# title: "Set up a K8s cluster"
# description: "Get Kubernetes running based on your resources and needs."
# button: "Set up Kubernetes"
# button_path: "/docs/setup"
# - name: tasks
# title: "Learn how to use Kubernetes"
# description: "Look up common tasks and how to perform them using a short sequence of steps."
# button: "View Tasks"
# button_path: "/docs/tasks"
# - name: training
# title: "Training"
# description: "Get certified in Kubernetes and make your cloud native projects successful!"
# button: "View training"
# button_path: "/training"
# - name: reference
# title: Look up reference information
# description: Browse terminology, command line syntax, API resource types, and setup tool documentation.
# button: View Reference
# button_path: /docs/reference
# - name: contribute
# title: Contribute to the docs
# description: Anyone can contribute, whether youre new to the project or youve been around a long time.
# button: Contribute to the docs
# button_path: /docs/contribute
# - name: release-notes
# title: K8s Release Notes
# description: If you are installing Kubernetes or upgrading to the newest version, refer to the current release notes.
# button: "Download Kubernetes"
# button_path: "/zh/docs/setup/release/notes"
# - name: about
# title: About the documentation
# description: This website contains documentation for the current and previous 4 versions of Kubernetes.
cards:
- name: concepts
title: "了解 Kubernetes"
description: "了解 Kubernetes 和其基础概念。"
button: "查看概念"
button_path: "/zh/docs/concepts"
- name: tutorials
title: "尝试 Kubernetes"
description: "按照教程学习如何在 Kubernetes 上部署应用。"
button: "查看教程"
button_path: "/zh/docs/tutorials"
- name: setup
title: "设置 K8s 集群"
description: "按照你的资源情况和需求运行 Kubernetes。"
button: "设置 Kubernetes"
button_path: "/zh/docs/setup"
- name: tasks
title: "了解如何使用 Kubernetes"
description: "查看常见任务以及如何使用简单步骤执行它们。"
button: "查看任务"
button_path: "/zh/docs/tasks"
- name: training
title: "培训"
description: "通过 Kubernetes 认证,助你的云原生项目成功!"
button: "查看培训"
button_path: "/zh/training"
- name: reference
title: 查阅参考信息
description: 浏览术语、命令行语法、API 资源类型和安装工具文档。
button: 查看参考
button_path: /zh/docs/reference
- name: contribute
title: 为文档作贡献
description: 任何人,无论对该项目熟悉与否,都能贡献自己的力量。
button: 为文档作贡献
button_path: /zh/docs/contribute
- name: release-notes
title: K8s 发布说明
description: 如果你正在安装或升级 Kubernetes,最好参考最新的发布说明。
button: "下载 Kubernetes"
button_path: "/releases/download"
- name: about
title: 关于文档
description: 本网站包含了当前及前 4 个版本的 Kubernetes 文档。
---
@@ -0,0 +1,13 @@
---
title: Kubernetes 文档支持的版本
content_type: custom
layout: supported-versions
card:
name: about
weight: 10
title: Kubernetes 文档支持的版本
---
<!-- overview -->
本网站包含当前版本和之前四个版本的 Kubernetes 文档。