-
Notifications
You must be signed in to change notification settings - Fork 323
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (22 loc) · 979 Bytes
/
Copy pathMakefile
File metadata and controls
32 lines (22 loc) · 979 Bytes
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
.PHONY: help install serve build docs tools-docs clean
VENV := .venv-docs
PIP := $(VENV)/bin/pip
MKDOCS := $(VENV)/bin/mkdocs
.DEFAULT_GOAL := help
help: ## Show available targets
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {printf " \033[36m%-12s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST)
$(VENV)/bin/activate:
python3 -m venv $(VENV)
install: $(VENV)/bin/activate ## Create .venv-docs and install docs dependencies
@$(PIP) install --quiet --upgrade pip
@$(PIP) install --quiet -r requirements-docs.txt
@echo "Docs environment ready."
tools-docs: ## Regenerate docs/tools/*.md from tools/registry.ts
npx tsx scripts/generate-tool-docs.ts
docs: tools-docs build ## Regenerate and build documentation
serve: install ## Preview docs at http://127.0.0.1:8000 (auto-reload)
$(MKDOCS) serve
build: install ## Build the production site to ./site (same as CI --strict)
$(MKDOCS) build --strict
clean: ## Remove venv and build output
rm -rf $(VENV) site/