Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -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
Expand Down
7 changes: 7 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[build]
command = "make render-netlify"
publish = "build/"

[build.environment]
PYTHON_VERSION = "3.8"
IS_DEPLOYMENT_PREVIEW = "true"