diff options
author | Zachary Ware <zachary.ware@gmail.com> | 2014-04-18 20:10:40 (GMT) |
---|---|---|
committer | Zachary Ware <zachary.ware@gmail.com> | 2014-04-18 20:10:40 (GMT) |
commit | a37ff0fb80d59946c74af874c8dcc6d629541852 (patch) | |
tree | adf0924e9a4a1ad3c9ebce84a28f819c873cc37b /Doc/make.bat | |
parent | 14d7fabe949a59a0184dd525287dc2984643be79 (diff) | |
download | cpython-a37ff0fb80d59946c74af874c8dcc6d629541852.zip cpython-a37ff0fb80d59946c74af874c8dcc6d629541852.tar.gz cpython-a37ff0fb80d59946c74af874c8dcc6d629541852.tar.bz2 |
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.
Diffstat (limited to 'Doc/make.bat')
-rw-r--r-- | Doc/make.bat | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/make.bat b/Doc/make.bat index 0b5b56e..838820f 100644 --- a/Doc/make.bat +++ b/Doc/make.bat @@ -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 |