Standardize docs Makefile and add documentation URL
This commit is contained in:
18
Makefile
18
Makefile
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user