Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a330efd

Browse files
authored
Merge pull request #24162 from story645/no-plot
windows doc build parity
2 parents 6397768 + 452fb13 commit a330efd

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

doc/make.bat

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,32 @@ if errorlevel 9009 (
2828
)
2929

3030
if "%1" == "" goto help
31+
if "%1" == "html-noplot" goto html-noplot
32+
if "%1" == "show" goto show
3133

3234
%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
35+
if "%1" == "clean" (
36+
REM workaround because sphinx does not completely clean up (#11139)
37+
rmdir /s /q "%SOURCEDIR%\build"
38+
rmdir /s /q "%SOURCEDIR%\api\_as_gen"
39+
rmdir /s /q "%SOURCEDIR%\gallery"
40+
rmdir /s /q "%SOURCEDIR%\plot_types"
41+
rmdir /s /q "%SOURCEDIR%\tutorials"
42+
rmdir /s /q "%SOURCEDIR%\savefig"
43+
rmdir /s /q "%SOURCEDIR%\sphinxext\__pycache__"
44+
)
3345
goto end
3446

3547
:help
3648
%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
49+
goto end
50+
51+
:html-noplot
52+
%SPHINXBUILD% -M html %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O% -D plot_gallery=0
53+
goto end
54+
55+
:show
56+
python -m webbrowser -t "%~dp0\build\html\index.html"
3757

3858
:end
3959
popd

0 commit comments

Comments
 (0)