-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
60 lines (52 loc) · 1.63 KB
/
Copy pathMakefile
File metadata and controls
60 lines (52 loc) · 1.63 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
58
59
60
.PHONY: help install generate serve test test-full clean check-uv
help:
@echo "agentic-catalog"
@echo ""
@echo "Available targets:"
@echo " install - Install Python dependencies (requires uv)"
@echo " generate - Generate docs/data.json from pack data"
@echo " serve - Start local server on http://localhost:8000"
@echo " test - Generate + verify site"
@echo " test-full - Generate + serve with browser open"
@echo " clean - Remove generated files"
@echo ""
@echo "Requirements:"
@echo " uv - Install with: curl -LsSf https://astral.sh/uv/install.sh | sh"
check-uv:
@command -v uv >/dev/null 2>&1 || { \
echo "Error: uv is not installed"; \
echo ""; \
echo "Install uv with:"; \
echo " curl -LsSf https://astral.sh/uv/install.sh | sh"; \
echo ""; \
echo "Or visit: https://github.com/astral-sh/uv"; \
exit 1; \
}
install: check-uv
@echo "Installing Python dependencies with uv..."
@uv sync
@echo "Dependencies installed!"
generate: check-uv
@echo "Generating documentation..."
@uv run python scripts/build_website.py
@echo "Documentation generated in docs/"
serve:
@echo "Starting local server on http://localhost:8000"
@echo "Press Ctrl+C to stop the server"
@cd docs && python3 -m http.server 8000
test: generate
@echo ""
@echo "Running site verification..."
@./scripts/test_local.sh
@echo ""
@echo "To view the site locally, run: make serve"
test-full: test
@echo ""
@echo "Opening browser and starting server..."
@(sleep 2 && open http://localhost:8000) &
@make serve
clean:
@echo "Cleaning generated files..."
@rm -f docs/data.json
@rm -rf docs/collections/*.html
@echo "Cleaned!"