forked from serverpod/serverpod_docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
45 lines (37 loc) · 1.04 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
.PHONY: install start version format lint clean
# Default target
all: install
# Install dependencies
install:
npm install
# Start development server
start:
npm start
# Create a new version
version:
@if [ "$(VERSION)" = "" ]; then \
echo "Error: VERSION is required. Usage: make version VERSION=X.X.X"; \
exit 1; \
fi
npm run docusaurus docs:version $(VERSION)
# Format markdown files
format:
markdownlint './docs/**/*.md'
# Install markdownlint globally
install-linter:
npm install -g markdownlint-cli
# Clean build artifacts
clean:
rm -rf build
rm -rf .docusaurus
rm -rf node_modules
# Help command
help:
@echo "Available commands:"
@echo " make install - Install dependencies"
@echo " make start - Start development server"
@echo " make version - Create new version (requires VERSION=X.X.X)"
@echo " make format - Format markdown files"
@echo " make install-linter - Install markdownlint globally"
@echo " make clean - Clean build artifacts"
@echo " make help - Show this help message"