mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 01:46:18 +03:00
Fixed calling html target from htmlview
This commit is contained in:
parent
f046df2aba
commit
b3bf1ca6d9
|
@ -45,21 +45,21 @@ if "%1" == "clean" (
|
||||||
goto end
|
goto end
|
||||||
)
|
)
|
||||||
|
|
||||||
if "%1" == "html" (
|
set html=false
|
||||||
|
if "%1%" == "html" set html=true
|
||||||
|
if "%1%" == "htmlview" set html=true
|
||||||
|
if "%html%" == "true" (
|
||||||
%SPHINXBUILD% -b html %ALLSPHINXOPTS% %BUILDDIR%/html
|
%SPHINXBUILD% -b html %ALLSPHINXOPTS% %BUILDDIR%/html
|
||||||
if errorlevel 1 exit /b 1
|
if errorlevel 1 exit /b 1
|
||||||
echo.
|
echo.
|
||||||
echo.Build finished. The HTML pages are in %BUILDDIR%/html.
|
echo.Build finished. The HTML pages are in %BUILDDIR%/html.
|
||||||
goto end
|
|
||||||
)
|
|
||||||
|
|
||||||
if "%1" == "htmlview" (
|
|
||||||
cmd /C %this% html
|
|
||||||
|
|
||||||
|
if "%1" == "htmlview" (
|
||||||
if EXIST "%BUILDDIR%\html\index.html" (
|
if EXIST "%BUILDDIR%\html\index.html" (
|
||||||
echo.Opening "%BUILDDIR%\html\index.html" in the default web browser...
|
echo.Opening "%BUILDDIR%\html\index.html" in the default web browser...
|
||||||
start "" "%BUILDDIR%\html\index.html"
|
start "" "%BUILDDIR%\html\index.html"
|
||||||
)
|
)
|
||||||
|
)
|
||||||
|
|
||||||
goto end
|
goto end
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user