diff --git a/Makefile b/Makefile index 3ced2d4b48c..b6f2c2c0666 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: + python3 build.py -j $(JOBS) -o $(OUTPUT_DIR) + ## 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"