-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
57 lines (48 loc) · 1.49 KB
/
Makefile
File metadata and controls
57 lines (48 loc) · 1.49 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
.PHONY: schemas build dev serve clean
# Install Node.js dependencies
npm:
@echo "Installing Node.js dependencies..."
@cd scripts && npm install
# Build CSS with Tailwind
css:
@echo "Building CSS..."
@cd docs && tailwindcss -i ./assets/css/styles.css -o ./assets/css/custom.css
# Generate schema documentation
schemas:
@echo "Generating schema documentation..."
@node scripts/build-schemas.js
# Generate registry content
registry:
@echo "Generating registry content..."
@node scripts/generate-content.js
# Build the Hugo site
build: npm css schemas registry
@echo "Building Hugo site..."
@cd docs && hugo --gc --minify
# Development server
dev: build
@echo "Starting development server..."
@echo "Site available at http://localhost:1313"
@echo "Press Ctrl+C to stop"
@cd docs/public && python3 -m http.server 1313
# Alias for dev
serve: dev
# Clean generated files
clean:
@echo "Cleaning generated files..."
@rm -f docs/assets/css/custom.css
@rm -f docs/content/specs/*-schema.md
@rm -f docs/.hugo_build.lock
@rm -rf docs/content/registry/
@rm -rf docs/public/
# Help
help:
@echo "Available commands:"
@echo " css - Build CSS with Tailwind"
@echo " schemas - Generate schema documentation from JSON schemas"
@echo " registry - Generate registry content"
@echo " build - Build complete site (schemas + Hugo)"
@echo " dev - Build and start development server"
@echo " serve - Alias for dev"
@echo " clean - Clean generated files"
@echo " help - Show this help"