-
Notifications
You must be signed in to change notification settings - Fork 15.1k
docs: document Hugo segment usage to improve local site rendering #51648
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this 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.
✅ Pull request preview available for checkingBuilt without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify project configuration. |
0ef2a41
to
f14b34b
Compare
There was a problem hiding this 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
LGTM label has been added. Git tree hash: 5ab7c24219ef2508a0c9d5712016e928bf1a1d5f
|
[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 |
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
Makefile
andhugo.toml