File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments