File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed
Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -28,12 +28,32 @@ if errorlevel 9009 (
2828)
2929
3030if " %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+ )
3345goto 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
3959popd
You can’t perform that action at this time.
0 commit comments