-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Makefile
36 lines (29 loc) · 846 Bytes
/
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
.PHONY: all rebuild theme clean format
all: format theme
theme: clean
python3 tools/theme_assembler.py
clean:
@echo "Cleaning theme directory..."
rm -rf theme/*
@echo "Theme directory cleaned."
dev:
chmod +x tools/rebuild_dev.sh
./tools/rebuild_dev.sh
format:
@echo "Formatting YAML files..."
pre-commit install
pre-commit run --all-files
@echo "YAML formatting complete."
docs-dev:
@echo "Starting vitepress..."
yarn add -D vitepress
yarn docs:dev
help:
@echo "Available targets:"
@echo " all - Run theme assembly (default)"
@echo " theme - Run the theme assembler"
@echo " clean - Remove generated files"
@echo " dev - Run rebuild dev script"
@echo " docs-dev - Run local VitePress"
@echo " format - Format YAML files in src and theme directories"
@echo " help - Show this help message"