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