Standardize docs Makefile and add documentation URL

This commit is contained in:
Chris Proctor
2026-06-22 22:18:59 -04:00
parent 5f74dbba8d
commit 426e59a54e
3 changed files with 18 additions and 9 deletions

View File

@@ -1,8 +1,14 @@
.PHONY: docs deploy
S3_BUCKET = s3://docs.makingwithcode.org/retro-gamer/
CF_DISTRIBUTION = EPA6NHZ2LEH1A
docs:
uv run --group documentation sphinx-build -b html docs docs/_build/html
.PHONY: build deploy clean
deploy: docs
aws s3 sync docs/_build/html s3://docs.makingwithcode.org/retro-gamer/
aws cloudfront create-invalidation --distribution-id EPA6NHZ2LEH1A --paths "/retro-gamer/*"
build:
uv run --group documentation $(MAKE) -C docs html
deploy: build
aws s3 sync docs/_build/html $(S3_BUCKET)
aws cloudfront create-invalidation --distribution-id $(CF_DISTRIBUTION) --paths "/retro-gamer/*"
clean:
$(MAKE) -C docs clean