Skip to content

Commit f8643ec

Browse files
committed
build(docs,Makefile): Python 3 only
1 parent 587e230 commit f8643ec

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

docs/Makefile

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -170,13 +170,7 @@ serve:
170170
@echo 'docs server running at http://localhost:${HTTP_PORT}/'
171171
@echo
172172
@echo '=============================================================='
173-
@if test ${PYVERSION} -eq 2; then $(MAKE) serve_py2; else make serve_py3; fi
174-
175-
serve_py2:
176-
pushd _build/html; python2 -m SimpleHTTPServer ${HTTP_PORT}; popd
177-
178-
serve_py3:
179-
python -m http.server ${HTTP_PORT} --directory _build/html
173+
poetry run python -m http.server ${HTTP_PORT} --directory _build/html
180174

181175
dev:
182176
$(MAKE) -j watch serve

0 commit comments

Comments
 (0)