@@ -18,40 +18,47 @@ include .github/build/Makefile-show-help.mk
18
18
# ----------------------------------------------------------------------------
19
19
# Academy
20
20
# ---------------------------------------------------------------------------
21
- .PHONY : setup academy-dev staging -build prod-build update-module
21
+ .PHONY : setup build stg -build prod-build theme- update sync-with-cloud site
22
22
23
- # # Install site dependencies
23
+ # # ------------------------------------------------------------
24
+ ----LOCAL_BUILDS : Show help for available targets
25
+
26
+ # # Local: Install site dependencies
24
27
setup :
25
28
npm i
26
29
30
+ # # Local: Build site for local consumption
31
+ build :
32
+ hugo build
33
+
34
+ # # Local: Build and run site locally
35
+ site :
36
+ hugo serve
37
+
38
+ # # ------------------------------------------------------------
39
+ ----REMOTE_BUILDS : Show help for available targets
40
+
41
+ # # Build site using Layer5 Cloud Staging as the baseURL
42
+ stg-build :
43
+ hugo --cleanDestinationDir --gc --minify --baseURL " https://staging-cloud.layer5.io/academy"
44
+
27
45
# # Build site using Layer5 Cloud as the baseURL
28
46
prod-build :
29
47
hugo --cleanDestinationDir --gc --minify --baseURL " https://cloud.layer5.io/academy"
30
48
31
- # # Build site using Layer5 Cloud Staging as the baseURL
32
- staging-build :
33
- hugo --cleanDestinationDir --gc --minify --baseURL " https://staging-cloud.layer5.io/academy"
34
49
35
- # # Build site for local consumption
36
- academy-dev :
37
- hugo build
50
+ # # ------------------------------------------------------------
51
+ ----MAINTENANCE : Show help for available targets
38
52
39
- # # Build and run site locally
40
- site :
41
- hugo serve
53
+ # # Update the academy-theme package to latest version
54
+ theme-update :
55
+ echo " Updating to latest academy-theme..." && \
56
+ hugo mod get -u
42
57
43
- # # Upgrade site's theme to latest version
44
- # # Change to "theme-upgrade"
45
- update-module :
46
- @if [ -z " $( module) " ] || [ -z " $( version) " ]; then \
47
- echo " Usage: make update-module module=<module-path> version=<version>" ; \
48
- exit 1; \
49
- fi && \
50
- echo " Updating Hugo module: $( module) to version $( version) " && \
51
- hugo mod get $(module ) @$(version )
52
-
53
- # # Publish Academy build to Layer5 Cloud
58
+ # # Publish Academy build to Layer5 Cloud.
59
+ # # Copy built site from public/ to
60
+ # # ../meshery-cloud/academy directory
54
61
sync-with-cloud :
55
62
rm -rf ../meshery-cloud/academy
56
63
mkdir -p ../meshery-cloud/academy
57
- rsync -av --delete public/ ../meshery-cloud/academy/
64
+ rsync -av --delete public/ ../meshery-cloud/academy/
0 commit comments