Skip to content

Conversation

aman4433
Copy link
Contributor

@aman4433 aman4433 commented Jul 18, 2025

Description

This PR updates the README to include examples for using Hugo segments when running the site locally — both with Docker and natively using Hugo.

By specifying segments (e.g., en, ko), contributors can limit the scope of the build to one or more languages, which significantly speeds up local development and refresh cycles.

Why is this needed?

Rendering the entire Kubernetes website locally can be slow and resource-intensive. Hugo segments allow contributors to build only the parts of the site they're actively working on, improving efficiency and developer experience.

Issue

Closes: #51646

Related PR

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Jul 18, 2025
@k8s-ci-robot k8s-ci-robot added sig/docs Categorizes an issue or PR as relevant to SIG Docs. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Jul 18, 2025
Copy link
Contributor

@lmktfy lmktfy left a comment

Choose a reason for hiding this comment

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

Thanks; I recommend some tweaks.

Copy link

netlify bot commented Jul 18, 2025

Pull request preview available for checking

Built without sensitive environment variables

Name Link
🔨 Latest commit f14b34b
🔍 Latest deploy log https://app.netlify.com/projects/kubernetes-io-main-staging/deploys/687a732f6aa5000008131acb
😎 Deploy Preview https://deploy-preview-51648--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
Contributor

@lmktfy lmktfy left a comment

Choose a reason for hiding this comment

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

/LGTM
/approve

Untested (mostly this is a note to my co-approvers). It does LGTM though.

Thank you @aman4433

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jul 18, 2025
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: 5ab7c24219ef2508a0c9d5712016e928bf1a1d5f

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: lmktfy

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

The pull request process is described here

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 k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 18, 2025
@k8s-ci-robot k8s-ci-robot merged commit 16b66a1 into kubernetes:main Jul 18, 2025
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. 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/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add instructions for hugo segments usage in README
3 participants