summaryrefslogtreecommitdiffstats
path: root/Doc/make.bat
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/make.bat')
-rw-r--r--Doc/make.bat12
1 files changed, 7 insertions, 5 deletions
diff --git a/Doc/make.bat b/Doc/make.bat
index 6cb315f..c69cfae 100644
--- a/Doc/make.bat
+++ b/Doc/make.bat
@@ -5,18 +5,21 @@ pushd %~dp0
set this=%~n0
-call ..\PCBuild\find_python.bat %PYTHON%
-if not defined SPHINXBUILD if defined PYTHON (
+call ..\PCbuild\find_python.bat %PYTHON%
+
+if not defined PYTHON set PYTHON=py
+
+if not defined SPHINXBUILD (
%PYTHON% -c "import sphinx" > nul 2> nul
if errorlevel 1 (
echo Installing sphinx with %PYTHON%
- %PYTHON% -m pip install sphinx
+ %PYTHON% -m pip install sphinx python-docs-theme
if errorlevel 1 exit /B
)
set SPHINXBUILD=%PYTHON% -c "import sphinx, sys; sys.argv[0] = 'sphinx-build'; sphinx.main()"
)
-if not defined BLURB if defined PYTHON (
+if not defined BLURB (
%PYTHON% -c "import blurb" > nul 2> nul
if errorlevel 1 (
echo Installing blurb with %PYTHON%
@@ -26,7 +29,6 @@ if not defined BLURB if defined PYTHON (
set BLURB=%PYTHON% -m blurb
)
-if not defined PYTHON set PYTHON=py
if not defined SPHINXBUILD set SPHINXBUILD=sphinx-build
if not defined BLURB set BLURB=blurb