File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed
Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change 22#
33WATCH_FILES = find .. -type f -not -path '*/\.*' | grep -i '.*[.]rst\$\|.*[.].md\|.*[.]py\$\|CHANGES\|TODO\|.*conf\.py' 2> /dev/null
44SHELL := /bin/bash
5- PYVERSION =$(shell python -c "import sys;v=sys.version_info[0];sys.stdout.write(str(v) )")
65HTTP_PORT = 8031
76
87# You can set these variables from the command line.
@@ -169,10 +168,7 @@ serve:
169168 @echo ' docs server running at http://localhost:${HTTP_PORT}/'
170169 @echo
171170 @echo ' =============================================================='
172- @if test ${PYVERSION} -eq 2; then $(MAKE ) serve_py2; else make serve_py3; fi
173-
174- serve_py2 :
175- pushd _build/html; python2 -m SimpleHTTPServer ${HTTP_PORT} ; popd
171+ @$(MAKE ) serve_py3
176172
177173serve_py3 :
178174 python -m http.server ${HTTP_PORT} --directory _build/html
You can’t perform that action at this time.
0 commit comments