]> granicus.if.org Git - python/commitdiff
Issue #21289: Fix documentation building on Windows using Doc/make.bat.
authorZachary Ware <zachary.ware@gmail.com>
Fri, 18 Apr 2014 20:10:40 +0000 (15:10 -0500)
committerZachary Ware <zachary.ware@gmail.com>
Fri, 18 Apr 2014 20:10:40 +0000 (15:10 -0500)
Also fixes a long-standing typo in Doc/README.txt.

Initial patch by Dave Sawyer.

Doc/README.txt
Doc/make.bat
Misc/ACKS

index 8e0241096b458a8d0fb1ca7fb16d076d4c0c919b..0bc163807e23557692f9cf5763ec38c9d83e625c 100644 (file)
@@ -81,7 +81,7 @@ Without make
 
 Install the Sphinx package and its dependencies from PyPI.
 
-Then, from the ``Docs`` directory, run ::
+Then, from the ``Doc`` directory, run ::
 
    sphinx-build -b<builder> . build/<builder>
 
index 0b5b56e428c70ac95b5e0e6021c37fd701c72cc5..838820fc9c7f36d3b4d686eefa2a784d4a93ef8a 100644 (file)
@@ -1,7 +1,8 @@
 @@echo off
 setlocal
 
-if "%PYTHON%" EQU "" set PYTHON=py -2
+if "%SPHINXBUILD%" EQU "" set SPHINXBUILD=sphinx-build
+if "%PYTHON%" EQU "" set PYTHON=py
 if "%HTMLHELP%" EQU "" set HTMLHELP=%ProgramFiles%\HTML Help Workshop\hhc.exe
 if "%DISTVERSION%" EQU "" for /f "usebackq" %%v in (`%PYTHON% tools/sphinxext/patchlevel.py`) do set DISTVERSION=%%v
 
@@ -32,8 +33,7 @@ goto end
 if not exist build mkdir build
 if not exist build\%1 mkdir build\%1
 if not exist build\doctrees mkdir build\doctrees
-cmd /C %PYTHON% --version
-cmd /C %PYTHON% tools\sphinx-build.py -b%1 -dbuild\doctrees . build\%*
+cmd /C %SPHINXBUILD% -b%1 -dbuild\doctrees . build\%*
 if "%1" EQU "htmlhelp" "%HTMLHELP%" build\htmlhelp\python%DISTVERSION:.=%.hhp
 goto end
 
index 14eabd4280c04da6f71b5b00178519e8536e40e6..40f7cbefb224819c5b0887c7e0ebd42f26610434 100644 (file)
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -1152,6 +1152,7 @@ Mark Sapiro
 Ty Sarna
 Hugh Sasse
 Bob Savage
+Dave Sawyer
 Ben Sayer
 sbt
 Marco Scataglini