Skip to content

Commit 6f0f977

Browse files
committed
netlify
1 parent 1a87312 commit 6f0f977

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

Makefile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11
# Builds PEP files to HTML using sphinx
22

33
PYTHON=python3
4-
VENVDIR=.venv
4+
VENVDIR=./venv
55
JOBS=8
66
OUTPUT_DIR=build
77
RENDER_COMMAND=$(VENVDIR)/bin/python3 build.py -j $(JOBS) -o $(OUTPUT_DIR)
88

9+
## render-netlify to render PEPs to "pep-NNNN.html" files, without managing venv for netlify
10+
.PHONY: render-netlify
11+
render-netlify:
12+
$(RENDER_COMMAND)
13+
914
## render to render PEPs to "pep-NNNN.html" files
1015
.PHONY: render
1116
render: venv

netlify.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[build]
2+
command = "make render-netlify"
3+
publish = "build/"
4+
5+
[build.environment]
6+
PYTHON_VERSION = "3.8"
7+
IS_DEPLOYMENT_PREVIEW = "true"

0 commit comments

Comments
 (0)