Skip to content

Commit 7277931

Browse files
authored
Merge pull request #55 from layer5io/update-academy-theme-fix
fix make file
2 parents 80ee19d + 17e799a commit 7277931

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Makefile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,16 @@ theme-update:
6060
echo "Updating to latest academy-theme..." && \
6161
hugo mod get github.com/layer5io/academy-theme
6262

63+
64+
## Update a specific Hugo module to a specific version.
65+
update-module:
66+
@if [ -z "$(module)" ] || [ -z "$(version)" ]; then \
67+
echo "Usage: make update-module module=<module-path> version=<version>"; \
68+
exit 1; \
69+
fi && \
70+
echo "Updating Hugo module: $(module) to version $(version)" && \
71+
hugo mod get $(module)@$(version)
72+
6373
## Publish Academy build to Layer5 Cloud.
6474
## Copy built site from public/ to
6575
## ../meshery-cloud/academy directory

0 commit comments

Comments
 (0)