diff options
author | Hugo van Kemenade <hugovk@users.noreply.github.com> | 2022-04-29 13:47:26 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-29 13:47:26 (GMT) |
commit | 89c6b2b8f615a1c1827a92c4582c213b1a5027fb (patch) | |
tree | f4e4996942f7d0e314d0a2e4c732d74b098aef36 /Doc/make.bat | |
parent | 64113a4ba801126028505c50a7383f3e9df29573 (diff) | |
download | cpython-89c6b2b8f615a1c1827a92c4582c213b1a5027fb.zip cpython-89c6b2b8f615a1c1827a92c4582c213b1a5027fb.tar.gz cpython-89c6b2b8f615a1c1827a92c4582c213b1a5027fb.tar.bz2 |
bpo-36329: Remove 'make -C Doc serve' in favour of 'make -C Doc htmlview' (GH-32354)
Also updated `make -C htmlview` so it used a full path with `file://`, because the original didn't open the page (macOS).
For example:
```sh
cd Doc
# Doesn't open anything:
python3 -c "import webbrowser; webbrowser.open('build/html/index.html')"
# Opens the docs page e.g. file:///Users/hugo/github/cpython/Doc/build/html/index.html :
python3 -c "import os, webbrowser; webbrowser.open('file://' + os.path.realpath('build/html/index.html'))"
```
https://bugs.python.org/issue36329
Diffstat (limited to 'Doc/make.bat')
-rw-r--r-- | Doc/make.bat | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/make.bat b/Doc/make.bat index f3e9b44..d9a7aa4 100644 --- a/Doc/make.bat +++ b/Doc/make.bat @@ -111,7 +111,7 @@ echo. Provided by Sphinx: echo. html, htmlhelp, latex, text echo. suspicious, linkcheck, changes, doctest echo. Provided by this script: -echo. clean, check, serve, htmlview +echo. clean, check, htmlview echo. echo.All arguments past the first one are passed through to sphinx-build as echo.filenames to build or are ignored. See README.rst in this directory or @@ -184,7 +184,7 @@ cmd /S /C "%SPHINXLINT% -i tools" goto end :serve -cmd /S /C "%PYTHON% ..\Tools\scripts\serve.py "%BUILDDIR%\html"" +echo.The serve target was removed, use htmlview instead (see bpo-36329) goto end :end |