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:
|
.PHONY: build deploy clean
|
||||||
uv run --group documentation sphinx-build -b html docs docs/_build/html
|
|
||||||
|
|
||||||
deploy: docs
|
build:
|
||||||
aws s3 sync docs/_build/html s3://docs.makingwithcode.org/retro-gamer/
|
uv run --group documentation $(MAKE) -C docs html
|
||||||
aws cloudfront create-invalidation --distribution-id EPA6NHZ2LEH1A --paths "/retro-gamer/*"
|
|
||||||
|
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
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[project]
|
[project]
|
||||||
name = "retro-gamer"
|
name = "retro-gamer"
|
||||||
version = "0.1.0"
|
version = "0.1.1"
|
||||||
description = "A toolkit for learning reinforcement learning by training agents to play retro games"
|
description = "A toolkit for learning reinforcement learning by training agents to play retro games"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
requires-python = ">=3.11"
|
requires-python = ">=3.11"
|
||||||
@@ -16,6 +16,9 @@ dependencies = [
|
|||||||
"seaborn>=0.13",
|
"seaborn>=0.13",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[project.urls]
|
||||||
|
documentation = "https://docs.makingwithcode.org/retro-gamer"
|
||||||
|
|
||||||
[project.scripts]
|
[project.scripts]
|
||||||
retro-gamer = "retro_gamer.cli:cli"
|
retro-gamer = "retro_gamer.cli:cli"
|
||||||
|
|
||||||
|
|||||||
4
uv.lock
generated
4
uv.lock
generated
@@ -1154,7 +1154,7 @@ wheels = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "retro-gamer"
|
name = "retro-gamer"
|
||||||
version = "0.1.0"
|
version = "0.1.1"
|
||||||
source = { editable = "." }
|
source = { editable = "." }
|
||||||
dependencies = [
|
dependencies = [
|
||||||
{ name = "click" },
|
{ name = "click" },
|
||||||
@@ -1196,7 +1196,7 @@ documentation = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "retro-games"
|
name = "retro-games"
|
||||||
version = "2.4.0"
|
version = "2.4.1"
|
||||||
source = { editable = "../retro" }
|
source = { editable = "../retro" }
|
||||||
dependencies = [
|
dependencies = [
|
||||||
{ name = "blessed" },
|
{ name = "blessed" },
|
||||||
|
|||||||
Reference in New Issue
Block a user