8000 enable netlify by ewdurbin · Pull Request #2912 · python/peps · GitHub
[go: up one dir, main page]

Skip to content

enable netlify #2912

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
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"
0