Skip to content

Commit c416774

Browse files
Merge branch 'master' into docs/fix-digitalocean-reference
2 parents 55f7929 + 8a7311c commit c416774

3 files changed

Lines changed: 35 additions & 11 deletions

File tree

Lines changed: 6 additions & 0 deletions
Loading

Makefile

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,29 +18,42 @@ include .github/build/Makefile.show-help.mk
1818
#----------------------------------------------------------------------------
1919
# Academy
2020
# ---------------------------------------------------------------------------
21-
.PHONY: setup build site clean check-go theme-update
22-
2321
## ------------------------------------------------------------
2422
----LOCAL_BUILDS: Show help for available targets
2523

2624
## Local: Install site dependencies
2725
setup:
28-
npm i
26+
npm install
27+
28+
## Local: Build and run site locally with draft and future content enabled.
29+
site: check-go
30+
hugo server -D -F
2931

3032
## Local: Build site for local consumption
3133
build:
3234
hugo build
3335

34-
## Local: Build and run site locally with draft and future content enabled.
35-
site: check-go
36-
hugo server -D -F
37-
36+
## Build site for local consumption
37+
build-preview:
38+
hugo --baseURL=$(BASEURL)
39+
3840
## Empty build cache and run on your local machine.
3941
clean:
4042
hugo --cleanDestinationDir
4143
make setup
4244
make site
4345

46+
## Fix Markdown linting issues
47+
lint-fix:
48+
@echo "Checking for markdownlint-cli2..."
49+
@command -v markdownlint-cli2 > /dev/null || { \
50+
echo "markdownlint-cli2 not found. Attempting to install globally..."; \
51+
command -v npm > /dev/null || { echo "npm is not installed. Please install Node.js/npm and re-run 'make lint-fix'."; exit 1; }; \
52+
npm install -g markdownlint-cli2; \
53+
}
54+
@echo "Running markdownlint-cli2 --fix..."
55+
@markdownlint-cli2 --fix "**/*.md" "#node_modules" "#public" "#resources"
56+
4457
## ------------------------------------------------------------
4558
----MAINTENANCE: Show help for available targets
4659

@@ -53,3 +66,5 @@ check-go:
5366
theme-update:
5467
echo "Updating to latest academy-theme..." && \
5568
hugo mod get github.com/layer5io/academy-theme
69+
70+
.PHONY: setup build build-preview site clean lint-fix check-go theme-update

README.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
<img src=".github/assets/images/meshery-logo-dark-text-side.svg" width="70%" /> <br />
33
<img src="https://img.shields.io/badge/Meshery-Academy-00B39F?style=flat-square&logo=meshery&logoColor=white" />
44
<img alt="GitHub go.mod Go version" src="https://img.shields.io/github/go-mod/go-version/meshery-extensions/meshery-academy">
5-
5+
<img alt="Hugo" src="https://img.shields.io/badge/Hugo-Framework-FF4088?logo=hugo&logoColor=white">
66
</div>
77

8-
# Meshery Academy
8+
<h1><img src=".github/assets/images/meshery-academy-light.svg" alt="Meshery Academy" height="32px" valign="top" /> Meshery Academy</h1>
99

1010
This repo is the official content repository for the Meshery Academy, which can be run stand-alone or alongside your Meshery deployment(s) for an integrated learning experience. This academy contains learning paths, challenges, and certifications, helping engineers learn how to manage cloud-native infrastructure with Meshery.
1111

12-
**[Academies as Meshery Extensions](https://docs.meshery.io/extensions/academies/)**
12+
<img src=".github/assets/images/meshery-academy-light.svg" alt="Meshery Academy" height="20px" valign="top" /> **[Academies as Meshery Extensions](https://docs.meshery.io/extensions/academies/)**
1313

1414
Academies are modular, Git-native learning management systems (LMS), which can be run stand-alone and/or as an extension of your Meshery deployment(s) for an integrated learning experience. Academies emphasize hands-on, cloud-native education (AI, Cloud, Kubernetes, CNCF projects, configuration and infrastructure management) through structured curricula, interactive Labs, embedded visualizations, and verifiable credentials.
1515

@@ -103,9 +103,12 @@ The site will be available at `http://localhost:1313/academy/` (or the port show
103103
| Command | Description |
104104
|---------|-------------|
105105
| `make setup` | Install npm dependencies |
106-
| `make build` | Build the site for production |
107106
| `make site` | Build and run site locally with draft and future content enabled |
107+
| `make build` | Build the site for production |
108+
| `make build-preview` | Build site for preview draft and future content enabled (honors `BASEURL`) |
108109
| `make clean` | Clear build cache and restart the dev server |
110+
| `make lint-fix` | Fix Markdown linting issues with `markdownlint-cli2` |
111+
| `make check-go` | Verify Go is installed locally |
109112
| `make theme-update` | Update the `academy-theme` Hugo module to the latest version |
110113

111114
---

0 commit comments

Comments
 (0)