Skip to content

Commit daf2858

Browse files
committed
docs: Remove python 3 from Makefile, watch md files
1 parent e6a3067 commit daf2858

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

docs/Makefile

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
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
32
SHELL := /bin/bash
4-
PYVERSION=$(shell python -c "import sys;v=sys.version_info[0];sys.stdout.write(str(v))")
53
HTTP_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.
87
SPHINXOPTS =
@@ -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

176172
serve_py3:
177173
python -m http.server ${HTTP_PORT} --directory _build/html

0 commit comments

Comments
 (0)