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 2
2
#
3
3
WATCH_FILES = find .. -type f -not -path '*/\.*' | grep -i '.*[.]rst\$\|.*[.].md\|.*[.]py\$\|CHANGES\|TODO\|.*conf\.py' 2> /dev/null
4
4
SHELL := /bin/bash
5
- PYVERSION =$(shell python -c "import sys;v=sys.version_info[0];sys.stdout.write(str(v) )")
6
5
HTTP_PORT = 8031
7
6
8
7
# You can set these variables from the command line.
@@ -169,10 +168,7 @@ serve:
169
168
@echo ' docs server running at http://localhost:${HTTP_PORT}/'
170
169
@echo
171
170
@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
176
172
177
173
serve_py3 :
178
174
python -m http.server ${HTTP_PORT} --directory _build/html
You can’t perform that action at this time.
0 commit comments