From 444afe0f0e4dfc2cfbaf82203d0d60bbc7219c40 Mon Sep 17 00:00:00 2001 From: Ralf Gommers Date: Sat, 30 May 2020 18:32:52 +0200 Subject: 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] --- doc/Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'doc/Makefile') 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')" + -- cgit v1.2.1