Skip to content

[CI] Migrate to npm-managed local Hugo and standardise Makefile targets#117

Merged
CodexRaunak merged 10 commits into
meshery-extensions:masterfrom
hebypaul:feature/hebypaul/116
Jun 24, 2026
Merged

[CI] Migrate to npm-managed local Hugo and standardise Makefile targets#117
CodexRaunak merged 10 commits into
meshery-extensions:masterfrom
hebypaul:feature/hebypaul/116

Conversation

@hebypaul

@hebypaul hebypaul commented Jun 5, 2026

Copy link
Copy Markdown
Contributor

Notes for Reviewers

This PR migrates the meshery-academy build process to use an npm-managed local Hugo dependency, aligning it with the main Meshery repository standards.

Specific updates include:

  • Adding a check-deps target to the Makefile.
  • Rerouting site, serve, build, and clean commands to npm run scripts.
  • Adding dev:* scripts to package.json to handle Hugo commands without requiring a global installation.
  • Cleaning up outdated Makefile target references in README.md and CONTRIBUTING.md.

This PR fixes #116

Signed commits

  • Yes, I signed my commits.

hebypaul added 2 commits June 4, 2026 16:11
Signed-off-by: Heby T Paul <hebytpaul1111@gmail.com>
Signed-off-by: Heby T Paul <hebytpaul1111@gmail.com>
@github-actions

github-actions Bot commented Jun 5, 2026

Copy link
Copy Markdown
Contributor
PR Preview Action v1.6.3
Preview removed because the pull request was closed.
2026-06-24 16:54 UTC

hebypaul and others added 3 commits June 13, 2026 05:44
Signed-off-by: Heby T Paul <hebytpaul1111@gmail.com>
Signed-off-by: Heby T Paul <65991026+hebypaul@users.noreply.github.com>
Signed-off-by: Yī nuò <218099172+yi-nuo426@users.noreply.github.com>
@yi-nuo426

Copy link
Copy Markdown
Contributor

Resolved merge conflict

@suttonskate

Copy link
Copy Markdown
Member

@saurabhraghuvanshii wdyt?

Copilot AI left a comment

Copy link
Copy Markdown

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 updates meshery-academy’s local build workflow to use an npm-managed local hugo-extended binary and standardizes common Makefile targets to route through npm run scripts, reducing reliance on globally installed Hugo.

Changes:

  • Added a dependency preflight (check-deps) and updated build/site/serve/clean/theme-update Makefile targets to use npm scripts.
  • Added dev:* npm scripts to run Hugo commands using the locally installed binary.
  • Updated contributor docs (README.md, CONTRIBUTING.md) to reflect the revised make setupmake site / make build workflow.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.

File Description
README.md Updates local preview steps to use make setup and make site.
package.json Adds dev:* scripts and updates Hugo/serve-related script wiring.
Makefile Introduces check-deps and reroutes key targets through npm scripts.
CONTRIBUTING.md Replaces outdated “run-tests” guidance with make build build verification.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread Makefile Outdated
Comment on lines +69 to +70
echo "Updating to latest academy-theme..." && \
hugo mod get github.com/layer5io/academy-theme
npm run update:theme
Comment thread Makefile Outdated
## Local: Build site for local consumption
build:
hugo build
## Build site for preview (no drafts, no future, no expired content) with dynamically set baseURL.
Comment thread README.md Outdated
Comment on lines 50 to 51
- [Go](https://go.dev/dl/) ≥ 1.26
- [Hugo Extended](https://gohugo.io/getting-started/installing/) ≥ 0.158 (required for `hugo.Sites` in offline search index; CI uses 0.158)
Comment thread package.json Outdated
"update:dep": "npm install --save-dev autoprefixer@latest postcss-cli@latest",
"update:hugo": "npm install --save-dev --save-exact hugo-extended@latest",
"update:pkgs": "npx npm-check-updates -u"
"update:pkgs": "npx npm-check-updates -u",
@saurabhraghuvanshii

Copy link
Copy Markdown
Member

@suttonskate, I think we need this change because many systems don't have Hugo installed globally, which can make the setup process difficult. Having a single source of truth is a better approach and should help simplify the setup experience.

@KatalKavya96 KatalKavya96 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM!

@saurabhraghuvanshii

Copy link
Copy Markdown
Member

@hebypaul merge conflicts please take a look.

hebypaul and others added 3 commits June 24, 2026 18:19
Signed-off-by: Heby T Paul <hebytpaul1111@gmail.com>
Signed-off-by: Heby T Paul <hebytpaul1111@gmail.com>
@CodexRaunak CodexRaunak merged commit 694d002 into meshery-extensions:master Jun 24, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CI] Migrate to npm-managed local Hugo and standardise Makefile targets

8 participants