Skip to content

Commit b3bf1ca

Browse files
committed
Fixed calling html target from htmlview
1 parent f046df2 commit b3bf1ca

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

docs/make.bat

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -45,20 +45,20 @@ if "%1" == "clean" (
4545
goto end
4646
)
4747

48-
if "%1" == "html" (
48+
set html=false
49+
if "%1%" == "html" set html=true
50+
if "%1%" == "htmlview" set html=true
51+
if "%html%" == "true" (
4952
%SPHINXBUILD% -b html %ALLSPHINXOPTS% %BUILDDIR%/html
5053
if errorlevel 1 exit /b 1
5154
echo.
5255
echo.Build finished. The HTML pages are in %BUILDDIR%/html.
53-
goto end
54-
)
55-
56-
if "%1" == "htmlview" (
57-
cmd /C %this% html
5856

59-
if EXIST "%BUILDDIR%\html\index.html" (
60-
echo.Opening "%BUILDDIR%\html\index.html" in the default web browser...
61-
start "" "%BUILDDIR%\html\index.html"
57+
if "%1" == "htmlview" (
58+
if EXIST "%BUILDDIR%\html\index.html" (
59+
echo.Opening "%BUILDDIR%\html\index.html" in the default web browser...
60+
start "" "%BUILDDIR%\html\index.html"
61+
)
6262
)
6363

6464
goto end

0 commit comments

Comments
 (0)