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