S3_BUCKET = s3://docs.makingwithcode.org/gseai/
CF_DISTRIBUTION = EPA6NHZ2LEH1A

.PHONY: build deploy clean

build:
	$(MAKE) -C docs html SPHINXBUILD="uv run sphinx-build"

deploy: build
	aws s3 sync docs/_build/html $(S3_BUCKET)
	aws cloudfront create-invalidation --distribution-id $(CF_DISTRIBUTION) --paths "/gseai/*"

clean:
	$(MAKE) -C docs clean
