Skip to content

[zh-tw] Remove locale prefixes from internal documentation links#55763

Open
apullo777 wants to merge 1 commit into
kubernetes:dev-1.35-zh-tw.1from
apullo777:dev-1.35-zh-tw.1
Open

[zh-tw] Remove locale prefixes from internal documentation links#55763
apullo777 wants to merge 1 commit into
kubernetes:dev-1.35-zh-tw.1from
apullo777:dev-1.35-zh-tw.1

Conversation

@apullo777
Copy link
Copy Markdown
Contributor

This PR updates internal links in the zh-tw localized documentation to use canonical internal paths instead of manually prepending the locale path.

For example:

- /zh-tw/docs/tasks/tools/#kubectl
+ /docs/tasks/tools/#kubectl

Based on the clarification in #54937 (comment), localized pages do not need to manually add /zh-tw/ to internal link paths. The Hugo link render hook resolves localized pages automatically when the localized document exists.

This PR applies that guidance to already merged zh-tw pages on the dev branch.

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label May 14, 2026
@k8s-ci-robot k8s-ci-robot added area/localization General issues or PRs related to localization size/L Denotes a PR that changes 100-499 lines, ignoring generated files. language/zh-tw Issues or PRs related to Traditional Chinese language sig/docs Categorizes an issue or PR as relevant to SIG Docs. labels May 14, 2026
@apullo777
Copy link
Copy Markdown
Contributor Author

@seokho-son @tico88612 PTAL, thanks!

@netlify
Copy link
Copy Markdown

netlify Bot commented May 14, 2026

Pull request preview available for checking

Built without sensitive environment variables

Name Link
🔨 Latest commit 87a0a95
🔍 Latest deploy log https://app.netlify.com/projects/kubernetes-io-main-staging/deploys/6a0545308873de00085694fc
😎 Deploy Preview https://deploy-preview-55763--kubernetes-io-main-staging.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Copy Markdown
Member

@tico88612 tico88612 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, thank you!

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label May 14, 2026
@k8s-ci-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: tico88612
Once this PR has been reviewed and has the lgtm label, please assign a-mccarthy for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot
Copy link
Copy Markdown
Contributor

LGTM label has been added.

DetailsGit tree hash: c3d8508aa5b5b87bf3f4d2a045c627a064ea3056

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/localization General issues or PRs related to localization cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. language/zh-tw Issues or PRs related to Traditional Chinese language lgtm "Looks good to me", indicates that a PR is ready to be merged. sig/docs Categorizes an issue or PR as relevant to SIG Docs. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants