Skip to content

Commit 4726d5c

Browse files
committed
build(docs): Update Makefile to the latest stuff
1 parent 9ed481a commit 4726d5c

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

doc/Makefile

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Makefile for Sphinx documentation
2-
WATCH_FILES= find .. -type f -not -path '*/\.*' | grep -i '.*[.]rst\|CHANGES\|TODO\|.*conf\.py\|.*[.]py$$' 2> /dev/null
2+
WATCH_FILES= find .. -type f -not -path '*/\.*' | grep -i '.*[.]rst\$\|.*[.].md\|.*[.]py\$\|CHANGES\|TODO\|.*conf\.py' 2> /dev/null
3+
SHELL := /bin/bash
34
PYVERSION=$(shell python -c "import sys;v=sys.version_info[0];sys.stdout.write(str(v))")
45
HTTP_PORT = 8023
56

@@ -164,13 +165,16 @@ watch:
164165
serve:
165166
@echo '=============================================================='
166167
@echo
167-
@echo 'docs server running at http://0.0.0.0:${HTTP_PORT}/_build/html'
168+
@echo 'docs server running at http://localhost:${HTTP_PORT}/'
168169
@echo
169170
@echo '=============================================================='
170171
@if test ${PYVERSION} -eq 2; then $(MAKE) serve_py2; else make serve_py3; fi
171172

172173
serve_py2:
173-
python -m SimpleHTTPServer ${HTTP_PORT}
174+
pushd _build/html; python2 -m SimpleHTTPServer ${HTTP_PORT}; popd
174175

175176
serve_py3:
176-
python -m http.server ${HTTP_PORT}
177+
python -m http.server ${HTTP_PORT} --directory _build/html
178+
179+
dev:
180+
$(MAKE) -j watch serve

0 commit comments

Comments
 (0)