-
Notifications
You must be signed in to change notification settings - Fork 117
Upgrade Hugo to v0.152.2 and migrate site to Docsy Go module #714
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
✅ Deploy Preview for kubernetes-sigs-lws canceled.
|
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.
Pull request overview
This PR upgrades the Hugo documentation tooling from v0.92.0 to v0.152.2 and migrates from npm-based Docsy theme management to Hugo's Go module system, modernizing the documentation infrastructure.
Key changes:
- Hugo upgraded from v0.92.0 to v0.152.2 across all environments (Netlify and local development)
- Docsy theme migrated from npm to Go modules (v0.13.0)
- Configuration migrated from
config.tomltohugo.tomlwith Hugo module imports
Reviewed changes
Copilot reviewed 6 out of 7 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| Makefile | Updated hugo installation to v0.152.2 with extended tags, added site-server target, and updated prepare-release-branch to reference hugo.toml |
| netlify.toml | Updated Hugo version to v0.152.2 across all deployment contexts (production, deploy-preview, branch-deploy) |
| site/hugo.toml | Migrated from config.toml, removed npm theme configuration, added Go module imports for Docsy, and changed disableKinds from ["taxonomy", "taxonomyTerm"] to ["taxonomy"] |
| site/go.mod | Created new Go module file for site with Docsy v0.13.0 dependency |
| site/go.sum | Added checksums for Docsy v0.13.0 and its dependencies (Font-Awesome, Bootstrap) |
| site/layouts/partials/head.html | Simplified Google Analytics template logic to use single internal template |
| site/layouts/partials/feedback.html | Fixed template references to correctly access feedback configuration via .Site.Params.ui.feedback |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
98b1755 to
3778530
Compare
Signed-off-by: Kay Yan <[email protected]>
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Edwinhr716, yankay 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 |
What type of PR is this?
/kind cleanup
What this PR does / why we need it
Description
Due to the current Hugo and Docsy versions being too outdated for maintenance.
This PR upgrades the Hugo version for the documentation site to v0.152.2 and migrates the Docsy theme management to use Go modules. Reference: kubernetes-sigs/kueue#1884
Changes
hugotarget to install v0.152.2 with extended tags. Addedsite-servertarget. Updatedprepare-release-branchto modifyhugo.toml.netlify.tomlto use Hugo v0.152.2site/config.tomltosite/hugo.tomland initializedsite/go.modto managegithub.com/google/docsy..Site.Params.ui.feedback.Which issue(s) this PR fixes
Fixes #
Special notes for your reviewer
Does this PR introduce a user-facing change?