From 6f0f977ce4499e70144ebe4d120dfbc5c29d1c32 Mon Sep 17 00:00:00 2001 From: Ee Durbin Date: Tue, 6 Dec 2022 08:34:14 -0500 Subject: [PATCH 1/2] netlify --- Makefile | 7 ++++++- netlify.toml | 7 +++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 netlify.toml diff --git a/Makefile b/Makefile index 3ced2d4b48c..a4e1a2e6f0a 100644 --- a/Makefile +++ b/Makefile @@ -1,11 +1,16 @@ # Builds PEP files to HTML using sphinx PYTHON=python3 -VENVDIR=.venv +VENVDIR=./venv JOBS=8 OUTPUT_DIR=build RENDER_COMMAND=$(VENVDIR)/bin/python3 build.py -j $(JOBS) -o $(OUTPUT_DIR) +## render-netlify to render PEPs to "pep-NNNN.html" files, without managing venv for netlify +.PHONY: render-netlify +render-netlify: + $(RENDER_COMMAND) + ## render to render PEPs to "pep-NNNN.html" files .PHONY: render render: venv diff --git a/netlify.toml b/netlify.toml new file mode 100644 index 00000000000..c6ae4310515 --- /dev/null +++ b/netlify.toml @@ -0,0 +1,7 @@ +[build] + command = "make render-netlify" + publish = "build/" + +[build.environment] + PYTHON_VERSION = "3.8" + IS_DEPLOYMENT_PREVIEW = "true" From 166e224980eefe042bb41f20b4f79df8ff44b7f3 Mon Sep 17 00:00:00 2001 From: Ee Durbin Date: Tue, 6 Dec 2022 09:02:48 -0500 Subject: [PATCH 2/2] bypass venv? --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index a4e1a2e6f0a..b6f2c2c0666 100644 --- a/Makefile +++ b/Makefile @@ -9,7 +9,7 @@ RENDER_COMMAND=$(VENVDIR)/bin/python3 build.py -j $(JOBS) -o $(OUTPUT_DIR) ## render-netlify to render PEPs to "pep-NNNN.html" files, without managing venv for netlify .PHONY: render-netlify render-netlify: - $(RENDER_COMMAND) + python3 build.py -j $(JOBS) -o $(OUTPUT_DIR) ## render to render PEPs to "pep-NNNN.html" files .PHONY: render