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

Skip to content

Commit a37ff0f

Browse files
committed
Issue #21289: Fix documentation building on Windows using Doc/make.bat.
Also fixes a long-standing typo in Doc/README.txt. Initial patch by Dave Sawyer.
1 parent 14d7fab commit a37ff0f

3 files changed

Lines changed: 5 additions & 4 deletions

File tree

Doc/README.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ Without make
8181

8282
Install the Sphinx package and its dependencies from PyPI.
8383

84-
Then, from the ``Docs`` directory, run ::
84+
Then, from the ``Doc`` directory, run ::
8585

8686
sphinx-build -b<builder> . build/<builder>
8787

Doc/make.bat

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
@@echo off
22
setlocal
33

4-
if "%PYTHON%" EQU "" set PYTHON=py -2
4+
if "%SPHINXBUILD%" EQU "" set SPHINXBUILD=sphinx-build
5+
if "%PYTHON%" EQU "" set PYTHON=py
56
if "%HTMLHELP%" EQU "" set HTMLHELP=%ProgramFiles%\HTML Help Workshop\hhc.exe
67
if "%DISTVERSION%" EQU "" for /f "usebackq" %%v in (`%PYTHON% tools/sphinxext/patchlevel.py`) do set DISTVERSION=%%v
78

@@ -32,8 +33,7 @@ goto end
3233
if not exist build mkdir build
3334
if not exist build\%1 mkdir build\%1
3435
if not exist build\doctrees mkdir build\doctrees
35-
cmd /C %PYTHON% --version
36-
cmd /C %PYTHON% tools\sphinx-build.py -b%1 -dbuild\doctrees . build\%*
36+
cmd /C %SPHINXBUILD% -b%1 -dbuild\doctrees . build\%*
3737
if "%1" EQU "htmlhelp" "%HTMLHELP%" build\htmlhelp\python%DISTVERSION:.=%.hhp
3838
goto end
3939

Misc/ACKS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1152,6 +1152,7 @@ Mark Sapiro
11521152
Ty Sarna
11531153
Hugh Sasse
11541154
Bob Savage
1155+
Dave Sawyer
11551156
Ben Sayer
11561157
sbt
11571158
Marco Scataglini

0 commit comments

Comments
 (0)