kubernetes / website

Kubernetes website and documentation repo:
https://kubernetes.io
Creative Commons Attribution 4.0 International
4.47k stars 14.39k forks source link

[zh-cn] Umbrella issue - use code to replace codenew shortcode #42346

Closed mengjiao-liu closed 1 year ago

mengjiao-liu commented 1 year ago

Why we need it:

Help localizations swap to the new code shortcode, on their own timetable {{% codenew %}} shortcode is replaced by {{% code %}}.

subtask of https://github.com/kubernetes/website/issues/42203

Because codenew shortcode has been replaced by code, the Chinese version needs to be re-synchronized from English upstream.

Special notes

To avoid conflicts, please assign some tasks to yourself from the list of tasks provided. Please leave a comment when assigning yourself a task to let me know what section you are working on, and make sure you have pulled the latest main branch.

Before starting the task, make sure you have read the Chinese localization guide.

To understand what are the contents to be synced, run this for example:

./scripts/lsync.sh  content/en/docs/tasks/run-application/horizontal-pod-autoscale-walkthrough.md

Task list

- [ ] task-8

1 1 content/en/docs/tasks/manage-daemon/pods-some-nodes.md 2 2 content/en/docs/tasks/manage-daemon/update-daemon-set.md 1 1 content/en/docs/tasks/debug/debug-application/debug-running-pod.md 1 1 content/en/docs/tasks/debug/debug-application/get-shell-running-container.md 1 1 content/en/docs/tasks/debug/debug-application/determine-reason-pod-failure.md 1 1 content/en/docs/tasks/debug/debug-cluster/audit.md 2 2 content/en/docs/tasks/debug/debug-cluster/monitor-node-health.md 3 3 content/en/docs/tasks/debug/debug-cluster/resource-metrics-pipeline.md 2 8 content/en/docs/contribute/style/write-new-topic.md 8 6 content/en/docs/contribute/style/hugo-shortcodes/index.md

- [ ] task-9

1 1 content/en/docs/concepts/configuration/configmap.md 50 50 content/en/docs/concepts/security/rbac-good-practices.md 3 3 content/en/docs/concepts/scheduling-eviction/assign-pod-node.md 2 2 content/en/docs/concepts/scheduling-eviction/pod-scheduling-readiness.md 1 1 content/en/docs/concepts/scheduling-eviction/taint-and-toleration.md 3 3 content/en/docs/concepts/scheduling-eviction/topology-spread-constraints.md 3 3 content/en/docs/concepts/storage/projected-volumes.md

- [ ] task-10

7 7 content/en/docs/concepts/services-networking/network-policies.md 1 0 content/en/docs/concepts/services-networking/ingress-controllers.md 5 5 content/en/docs/concepts/services-networking/dual-stack.md 10 10 content/en/docs/concepts/services-networking/ingress.md 1 1 content/en/docs/concepts/services-networking/dns-pod-service.md

- [ ] task-11

2 2 content/en/docs/concepts/workloads/pods/_index.md 1 1 content/en/docs/concepts/workloads/controllers/cron-jobs.md 1 1 content/en/docs/concepts/workloads/controllers/daemonset.md 1 5 content/en/docs/concepts/workloads/controllers/deployment.md 3 3 content/en/docs/concepts/workloads/controllers/replicaset.md 2 2 content/en/docs/concepts/workloads/controllers/job.md 5 2 content/en/docs/concepts/workloads/controllers/replicationcontroller.md

- [ ] task-12

18 0 content/en/docs/concepts/extend-kubernetes/compute-storage-net/device-plugins.md 1 1 content/en/docs/concepts/overview/working-with-objects/_index.md 3 3 content/en/docs/concepts/policy/limit-range.md 1 1 content/en/docs/concepts/policy/resource-quotas.md 2 2 content/en/docs/tutorials/configuration/configure-redis-using-configmap.md 1 0 content/en/docs/tutorials/hello-minikube.md 1 1 content/en/docs/tutorials/security/apparmor.md 8 8 content/en/docs/tutorials/security/seccomp.md

- [ ] task-13

2 2 content/en/docs/tutorials/stateful-application/basic-stateful-set.md 2 2 content/en/docs/tutorials/stateful-application/mysql-wordpress-persistent-volume.md 2 2 content/en/docs/tutorials/stateful-application/cassandra.md 1 1 content/en/docs/tutorials/stateful-application/zookeeper.md 1 1 content/en/docs/tutorials/services/pods-and-endpoint-termination-flow.md 4 4 content/en/docs/tutorials/services/connect-applications-service.md 6 6 content/en/docs/tutorials/stateless-application/guestbook.md 1 1 content/en/docs/tutorials/stateless-application/expose-external-ip-address.md 1 1 content/en/docs/test.md

- [ ] task-14

0 2 content/en/docs/reference/kubernetes-api/common-definitions/node-selector-requirement.md 13 13 content/en/docs/reference/labels-annotations-taints/_index.md 1 1 content/en/docs/reference/config-api/kubelet-config.v1beta1.md 1 1 content/en/docs/reference/config-api/apiserver-webhookadmission.v1.md 1 3 content/en/docs/reference/config-api/kubelet-config.v1alpha1.md 1 1 content/en/docs/reference/config-api/apiserver-config.v1.md 1 1 content/en/docs/reference/access-authn-authz/service-accounts-admin.md 3 3 content/en/docs/reference/access-authn-authz/validating-admission-policy.md 1 1 content/en/docs/reference/access-authn-authz/rbac.md 3 3 content/en/docs/reference/access-authn-authz/certificate-signing-requests.md 2 2 content/en/docs/reference/using-api/server-side-apply.md

- [ ] task-15

1 1 content/en/blog/_posts/2019-04-26-latest-on-localization.md 1 0 content/en/blog/_posts/2022-02-17-updated-dockershim-faq.md 1 0 content/en/blog/_posts/2022-05-13-grpc-probes-in-beta.md 10 3 content/en/blog/_posts/2017-11-00-Autoscaling-In-Kubernetes.md 1 1 content/en/blog/_posts/2022-12-12-kubernetes-release-artifact-signing.md 1 1 content/en/blog/_posts/2022-03-15-meet-our-contributors-APAC-AU-NZ-region-02.md 5 3 content/en/blog/_posts/2022-08-31-cgroupv2-ga.md 1 1 content/en/blog/_posts/2018-06-28-Airflow-Kubernetes-Operator.md 2 3 content/en/blog/_posts/2022-05-03-kubernetes-release-1.24.md 3 3 content/en/blog/_posts/2023-05-15-kubernetes-1-27-updates-on-speeding-up-pod-startup.md 1 1 content/en/blog/_posts/2022-08-04-kubernetes-1.25-deprecations-and-removals.md



/language zh
mengjiao-liu commented 1 year ago

/triage accepted

mengjiao-liu commented 1 year ago

/help

sftim commented 1 year ago

/remove-help

We might rename the shortcode again, I would hold off on making this change.

mengjiao-liu commented 1 year ago

/close

k8s-ci-robot commented 1 year ago

@mengjiao-liu: Closing this issue.

In response to [this](https://github.com/kubernetes/website/issues/42346#issuecomment-1663370517): >/close > > > Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository.