Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 38747ae

Browse files
committed
bpo-36329: Remove 'make -C Doc serve' in favour of 'make -C Doc htmlview'
1 parent 9616c6f commit 38747ae

File tree

6 files changed

+3
-53
lines changed

6 files changed

+3
-53
lines changed

Doc/Makefile

+1-6
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ PAPER =
1313
SOURCES =
1414
DISTVERSION = $(shell $(PYTHON) tools/extensions/patchlevel.py)
1515
SPHINXERRORHANDLING = -W
16-
SERVE_PORT =
1716

1817
# Internal variables.
1918
PAPEROPT_a4 = -D latex_elements.papersize=a4paper
@@ -23,7 +22,7 @@ ALLSPHINXOPTS = -b $(BUILDER) -d build/doctrees $(PAPEROPT_$(PAPER)) \
2322
$(SPHINXOPTS) $(SPHINXERRORHANDLING) . build/$(BUILDER) $(SOURCES)
2423

2524
.PHONY: help build html htmlhelp latex text texinfo changes linkcheck \
26-
suspicious coverage doctest pydoc-topics htmlview clean dist check serve \
25+
suspicious coverage doctest pydoc-topics htmlview clean dist check \
2726
autobuild-dev autobuild-stable venv
2827

2928
help:
@@ -45,7 +44,6 @@ help:
4544
@echo " dist to create a \"dist\" directory with archived docs for download"
4645
@echo " suspicious to check for suspicious markup in output text"
4746
@echo " check to run a check for frequent markup errors"
48-
@echo " serve to serve the documentation on the localhost (8000)"
4947

5048
build:
5149
-mkdir -p build
@@ -218,9 +216,6 @@ check:
218216
$(SPHINXLINT) -i tools -i $(VENVDIR) -i README.rst
219217
$(SPHINXLINT) ../Misc/NEWS.d/next/
220218

221-
serve:
222-
$(PYTHON) ../Tools/scripts/serve.py build/html $(SERVE_PORT)
223-
224219
# Targets for daily automated doc build
225220
# By default, Sphinx only rebuilds pages where the page content has changed.
226221
# This means it doesn't always pick up changes to preferred link targets, etc

Doc/library/wsgiref.rst

-4
Original file line numberDiff line numberDiff line change
@@ -782,7 +782,3 @@ This is a working "Hello World" WSGI application::
782782
httpd.serve_forever()
783783

784784

785-
Example of a WSGI application serving the current directory, accept optional
786-
directory and port number (default: 8000) on the command line:
787-
788-
.. literalinclude:: ../../Tools/scripts/serve.py

Doc/make.bat

+1-6
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ rem Targets that don't require sphinx-build
7474
if "%1" EQU "" goto help
7575
if "%1" EQU "help" goto help
7676
if "%1" EQU "check" goto check
77-
if "%1" EQU "serve" goto serve
7877
if "%1" == "clean" (
7978
rmdir /q /s "%BUILDDIR%"
8079
goto end
@@ -111,7 +110,7 @@ echo. Provided by Sphinx:
111110
echo. html, htmlhelp, latex, text
112111
echo. suspicious, linkcheck, changes, doctest
113112
echo. Provided by this script:
114-
echo. clean, check, serve, htmlview
113+
echo. clean, check, htmlview
115114
echo.
116115
echo.All arguments past the first one are passed through to sphinx-build as
117116
echo.filenames to build or are ignored. See README.rst in this directory or
@@ -183,9 +182,5 @@ goto end
183182
cmd /S /C "%SPHINXLINT% -i tools"
184183
goto end
185184

186-
:serve
187-
cmd /S /C "%PYTHON% ..\Tools\scripts\serve.py "%BUILDDIR%\html""
188-
goto end
189-
190185
:end
191186
popd
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Remove 'make -C Doc serve' in favour of 'make -C Doc htmlview'

Tools/scripts/README

-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ reindent.py Change .py files to use 4-space indents
5757
reindent-rst.py Fix-up reStructuredText file whitespace
5858
rgrep.py Reverse grep through a file (useful for big logfiles)
5959
run_tests.py Run the test suite with more sensible default options
60-
serve.py Small wsgiref-based web server, used in make serve in Doc
6160
stable_abi.py Stable ABI checks and file generators.
6261
suff.py Sort a list of files by suffix
6362
texi2html.py Convert GNU texinfo files into HTML

Tools/scripts/serve.py

-36
This file was deleted.

0 commit comments

Comments
 (0)