@@ -18,44 +18,47 @@ include .github/build/Makefile-show-help.mk
18
18
# ----------------------------------------------------------------------------
19
19
# Academy
20
20
# ---------------------------------------------------------------------------
21
- .PHONY : academy- setup academy-dev academy-staging academy- prod update-module academy -update
21
+ .PHONY : setup build stg-build prod-build theme -update sync-with-cloud site
22
22
23
- # # Install site dependencies
24
- academy-setup :
23
+ # # ------------------------------------------------------------
24
+ ----LOCAL_BUILDS : Show help for available targets
25
+
26
+ # # Local: Install site dependencies
27
+ setup :
25
28
npm i
26
29
27
- # # Build site using Layer5 Cloud as the baseURL
28
- academy-prod :
29
- hugo --cleanDestinationDir --gc --minify --baseURL " https://cloud.layer5.io/academy"
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
30
40
31
41
# # Build site using Layer5 Cloud Staging as the baseURL
32
- academy-staging :
42
+ stg-build :
33
43
hugo --cleanDestinationDir --gc --minify --baseURL " https://staging-cloud.layer5.io/academy"
34
44
35
- # # Build site for local consumption
36
- academy-dev :
37
- hugo build
45
+ # # Build site using Layer5 Cloud as the baseURL
46
+ prod-build :
47
+ hugo --cleanDestinationDir --gc --minify --baseURL " https://cloud.layer5.io/academy "
38
48
39
- # # Build and run site locally
40
- academy-dev-live :
41
- hugo serve
42
49
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
50
+ # # ------------------------------------------------------------
51
+ ----MAINTENANCE : Show help for available targets
52
+
53
+ # # Update the academy-theme package to latest version
54
+ theme-update :
55
+ echo " Updating to latest academy-theme... " && \
56
+ hugo mod get -u
57
+
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/
58
-
59
- # # Update the academy-theme package to latest version
60
- academy-update :
61
- hugo mod get -u
64
+ rsync -av --delete public/ ../meshery-cloud/academy/
0 commit comments