summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalf Gommers <ralf.gommers@gmail.com>2020-05-30 18:32:52 +0200
committerRalf Gommers <ralf.gommers@gmail.com>2020-05-31 13:26:24 +0200
commit444afe0f0e4dfc2cfbaf82203d0d60bbc7219c40 (patch)
tree450b30621da9dacad24c98ddd5d3551641e8ce42
parentcbde47818a821ef951ca73e851579ca75d23a82b (diff)
downloadnumpy-444afe0f0e4dfc2cfbaf82203d0d60bbc7219c40.tar.gz
DOC: add a "make show" command to doc/Makefile
Opens the front page of the docs built with `make html` in the default web browser. Idea copied from SciPy [ci skip]
-rw-r--r--doc/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/doc/Makefile b/doc/Makefile
index 688e52d07..dd63702de 100644
--- a/doc/Makefile
+++ b/doc/Makefile
@@ -29,7 +29,7 @@ ALLSPHINXOPTS = -WT --keep-going -d build/doctrees $(PAPEROPT_$(PAPER)) \
.PHONY: help clean html web pickle htmlhelp latex changes linkcheck \
dist dist-build gitwash-update version-check html-build latex-build \
- merge-doc
+ merge-doc show
#------------------------------------------------------------------------------
@@ -46,6 +46,7 @@ help:
@echo " gitwash-update GITWASH=path/to/gitwash update gitwash developer docs"
@echo " upload USERNAME=... RELEASE=... to upload built docs to docs.scipy.org"
@echo " merge-doc TAG=... to clone numpy/doc and archive documentation into it"
+ @echo " show to show the html output in a browser"
clean:
-rm -rf build/*
@@ -253,3 +254,7 @@ info:
@echo "Running Texinfo files through makeinfo..."
make -C build/texinfo info
@echo "makeinfo finished; the Info files are in build/texinfo."
+
+show:
+ @python -c "import webbrowser; webbrowser.open_new_tab('file://$(PWD)/build/html/index.html')"
+