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

Skip to content

bpo-36345: Doc: make serve uses http.server instead of Tools/scripts/server.py #12408

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Doc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ check:
$(PYTHON) tools/rstlint.py -i tools -i $(VENVDIR) -i README.rst

serve:
$(PYTHON) ../Tools/scripts/serve.py build/html
$(PYTHON) -m http.server -d build/html

# Targets for daily automated doc build
# By default, Sphinx only rebuilds pages where the page content has changed.
Expand Down
2 changes: 1 addition & 1 deletion Doc/make.bat
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ cmd /S /C "%PYTHON% tools\rstlint.py -i tools"
goto end

:serve
cmd /S /C "%PYTHON% ..\Tools\scripts\serve.py "%BUILDDIR%\html""
cmd /S /C "%PYTHON% -m http.server -d "%BUILDDIR%\html""
goto end

:end
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
make serve uses :mod:`http.server` with ``-d`` parameter instead of
``Tools/scripts/server.py``. Contributed by Stéphane Wirtel