Skip to content

Commit afc2808

Browse files
committed
Merge branch 'master' into feat/academy-update
Signed-off-by: Lee Calcote <[email protected]>
2 parents 023413d + d182de8 commit afc2808

File tree

9 files changed

+83
-52
lines changed

9 files changed

+83
-52
lines changed
Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,35 @@
11
.DEFAULT_GOAL := show-help
22
# See <https://gist.github.com/klmr/575726c7e05d8780505a> for explanation.
3+
# Modified to support multi-line comments and preserve target order
34
.PHONY: show-help
45
show-help:
5-
@echo "$$(tput bold)Please specify a build target. The choices are:$$(tput sgr0)";echo;sed -ne"/^## /{h;s/.*//;:d" -e"H;n;s/^## //;td" -e"s/:.*//;G;s/\\n## /---/;s/\\n/ /g;p;}" ${MAKEFILE_LIST}|LC_ALL='C' sort -f|awk -F --- -v n=$$(tput cols) -v i=19 -v a="$$(tput setaf 6)" -v z="$$(tput sgr0)" '{printf"%s%*s%s ",a,-i,$$1,z;m=split($$2,w," ");l=n-i;for(j=1;j<=m;j++){l-=length(w[j])+1;if(l<= 0){l=n-i-length(w[j])-1;printf"\n%*s ",-i," ";}printf"%s ",w[j];}printf"\n";}'|more $(shell test $(shell uname) == Darwin && echo '-Xr')
6+
@echo "$$(tput bold)Please specify a build target. The choices are:$$(tput sgr0)";echo; \
7+
awk ' \
8+
/^##/ { \
9+
gsub(/^## ?/, ""); \
10+
if (buffer == "") buffer = $$0; \
11+
else buffer = buffer " " $$0; \
12+
next; \
13+
} \
14+
/^[a-zA-Z_-]+:/ && $$0 !~ /:=/ && $$0 !~ /^\\./ { \
15+
split($$0, parts, ":"); \
16+
target = parts[1]; \
17+
if (target != "" && target !~ /^\./ && !(target in seen)) { \
18+
if (buffer != "") { \
19+
targets[++count] = target; \
20+
comments[target] = buffer; \
21+
seen[target] = 1; \
22+
} \
23+
buffer = ""; \
24+
} \
25+
} \
26+
!/^##/ && !/^[a-zA-Z_-]+:/ { \
27+
buffer = ""; \
28+
} \
29+
END { \
30+
for (i = 1; i <= count; i++) { \
31+
target = targets[i]; \
32+
comment = comments[target]; \
33+
printf "\033[36m%-19s\033[0m %s\n", target, comment; \
34+
} \
35+
}' ${MAKEFILE_LIST}

.github/build/Makefile.core.mk

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,7 @@ EXOSCALE_DEV="https://dev-sks.exoscale.com"
5454
#-----------------------------------------------------------------------------
5555
# Server
5656
#-----------------------------------------------------------------------------
57-
MESHERY_K8S_SKIP_COMP_GEN ?= TRUE
58-
APPLICATIONCONFIGPATH="./apps.json"
59-
PORT:=9081
57+
PORT:=1313
6058

6159
#-----------------------------------------------------------------------------
6260
# Build

.github/workflows/build-and-release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,13 @@ jobs:
5050
fi
5151
5252
echo "✅ Found module for orgId '$ORG_ID': $MODULE"
53-
make update-module module="$MODULE" version="$VERSION"
53+
make theme-update module="$MODULE" version="$VERSION"
5454
5555
- name: Install dependencies
56-
run: make academy-setup
56+
run: make setup
5757

5858
- name: Build Academy
59-
run: make academy-prod
59+
run: make prod-build
6060

6161
# - name: Pull changes from self master
6262
# run: git pull origin master

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@ RUN hugo version && go version && node -v && npm -v
1919
COPY . .
2020

2121
# Build Academy pages
22-
RUN make academy-setup
23-
RUN make academy-prod
22+
RUN make setup
23+
RUN make prod-build

Makefile

Lines changed: 32 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -18,44 +18,47 @@ include .github/build/Makefile-show-help.mk
1818
#----------------------------------------------------------------------------
1919
# Academy
2020
# ---------------------------------------------------------------------------
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
2222

23-
## Install site dependencies
24-
academy-setup:
23+
## ------------------------------------------------------------
24+
----LOCAL_BUILDS: Show help for available targets
25+
26+
## Local: Install site dependencies
27+
setup:
2528
npm i
2629

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
3040

3141
## Build site using Layer5 Cloud Staging as the baseURL
32-
academy-staging:
42+
stg-build:
3343
hugo --cleanDestinationDir --gc --minify --baseURL "https://staging-cloud.layer5.io/academy"
3444

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"
3848

39-
## Build and run site locally
40-
academy-dev-live:
41-
hugo serve
4249

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
5461
sync-with-cloud:
5562
rm -rf ../meshery-cloud/academy
5663
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/

go.mod

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
module github.com/layer5io/academy
22

3-
go 1.12
3+
go 1.24.5
44

55
require (
66
github.com/FortAwesome/Font-Awesome v0.0.0-20241216213156-af620534bfc3 // indirect
77
github.com/google/docsy v0.12.0 // indirect
8-
github.com/layer5io/academy-theme v0.1.15 // indirect
9-
github.com/layer5io/exoscale-academy v0.3.2 // indirect
10-
github.com/layer5io/layer5-academy v0.1.7 // indirect
8+
github.com/layer5io/academy-theme v0.1.19 // indirect
9+
github.com/layer5io/exoscale-academy v0.3.7 // indirect
10+
github.com/layer5io/layer5-academy v0.1.10 // indirect
1111
github.com/twbs/bootstrap v5.3.7+incompatible // indirect
1212
)

go.sum

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
github.com/FortAwesome/Font-Awesome v0.0.0-20241216213156-af620534bfc3 h1:/iluJkJiyTAdnqrw3Yi9rH2HNHhrrtCmj8VJe7I6o3w=
22
github.com/FortAwesome/Font-Awesome v0.0.0-20241216213156-af620534bfc3/go.mod h1:IUgezN/MFpCDIlFezw3L8j83oeiIuYoj28Miwr/KUYo=
3+
github.com/FortAwesome/Font-Awesome v4.7.0+incompatible h1:3trjm7NtX5NXlju1AxSWSzedDMq2hsfH78Qtqrc8EgY=
4+
github.com/FortAwesome/Font-Awesome v4.7.0+incompatible/go.mod h1:IUgezN/MFpCDIlFezw3L8j83oeiIuYoj28Miwr/KUYo=
35
github.com/google/docsy v0.12.0 h1:CddZKL39YyJzawr8GTVaakvcUTCJRAAYdz7W0qfZ2P4=
46
github.com/google/docsy v0.12.0/go.mod h1:1bioDqA493neyFesaTvQ9reV0V2vYy+xUAnlnz7+miM=
5-
github.com/layer5io/academy-theme v0.1.10/go.mod h1:kAidN16xIX6Dx2TBz7y0u3DeU8UnfUcoQZ/rVogXN80=
6-
github.com/layer5io/academy-theme v0.1.15 h1:cDIOgNOM8qF6o4HVLnQnhyWBpTaaVvUz+ANJzwcTfLA=
77
github.com/layer5io/academy-theme v0.1.15/go.mod h1:kAidN16xIX6Dx2TBz7y0u3DeU8UnfUcoQZ/rVogXN80=
8-
github.com/layer5io/exoscale-academy v0.3.2 h1:zs1qvrpUqLuja7cdXJuD2IZbUev4T6DKbJmpgJqvKh0=
9-
github.com/layer5io/exoscale-academy v0.3.2/go.mod h1:1S4qs8cy686HvTkvvZt+yhyi3Ey6SRREmPQsl+s7Cxw=
8+
github.com/layer5io/academy-theme v0.1.19 h1:X2BiWBGRi83lzQkXfz1DNKF5bgrxmj1raZYSxebB84Q=
9+
github.com/layer5io/academy-theme v0.1.19/go.mod h1:Dv72UWsREOvX4Zg4mJjrpoyDxdgxxpiDotxqYBXMjXo=
10+
github.com/layer5io/exoscale-academy v0.3.7 h1:pk0d4cahGUJVSPATGltuMksqEe38DaLB9ikrMXy629U=
11+
github.com/layer5io/exoscale-academy v0.3.7/go.mod h1:5UDX9hXqKw2xBwFt5uY2lV1eMKuIPY0eDsMvPX9Jkt4=
1012
github.com/layer5io/hugo-academy-theme v0.0.0-20250715053027-36f46b5c4741/go.mod h1:Kp2xgJUAqGztDN/j6T30ApwSaK1Yxs1IvrSgOoRFKnI=
11-
github.com/layer5io/layer5-academy v0.1.6 h1:imcz2Wsjvv0Dl++P5mGeMF1n9AaIP5qdHtxr7x9Imt4=
12-
github.com/layer5io/layer5-academy v0.1.6/go.mod h1:43Vsb+x/qWod1ukqqHZYVfrvLxbCCBwusMZpzouVs/U=
13-
github.com/layer5io/layer5-academy v0.1.7 h1:PB0Q0rfYiJNe44Plcn098ELtKH9hO5V4mOWlWUH/+7I=
14-
github.com/layer5io/layer5-academy v0.1.7/go.mod h1:mxithFlM+rYS6Dfqu95OyCpLN0NJz8Rmg50x8zRzEuw=
13+
github.com/layer5io/layer5-academy v0.1.10 h1:DY9aDc4WCXoIKZHUgpWYX1xqzel6gKbuEk7dg9MkyFM=
14+
github.com/layer5io/layer5-academy v0.1.10/go.mod h1:4TFQzqags5gs+2Ljv3wc05ec/YxBo+38ilrNcWTHPcQ=
1515
github.com/twbs/bootstrap v5.3.6+incompatible/go.mod h1:fZTSrkpSf0/HkL0IIJzvVspTt1r9zuf7XlZau8kpcY0=
1616
github.com/twbs/bootstrap v5.3.7+incompatible h1:ea1W8TOWZFkqSK2M0McpgzLiUQVru3bz8aHb0j/XtuM=
1717
github.com/twbs/bootstrap v5.3.7+incompatible/go.mod h1:fZTSrkpSf0/HkL0IIJzvVspTt1r9zuf7XlZau8kpcY0=

resources/_gen/assets/scss/main.scss_a7b64cfe358ca0f98a9b572608f3a01d.content

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"Target":"/scss/main.min.60d1725029b5790d890eb5caf20127b56a58a6f40c523d1bdb891fc60526193a.css","MediaType":"text/css","Data":{"Integrity":"sha256-YNFyUCm1eQ2JDrXK8gEntWpYpvQMUj0b24kfxgUmGTo="}}
1+
{"Target":"/scss/main.min.3654fa7f65fe6598afaa6264f8f39c4d3fdc02cc5e0a119a4549147e9e4bb2c9.css","MediaType":"text/css","Data":{"Integrity":"sha256-NlT6f2X+ZZivqmJk+POcTT/cAsxeChGaRUkUfp5Lssk="}}

0 commit comments

Comments
 (0)