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 (
28
28
)
29
29
30
30
if " %1 " == " " goto help
31
+ if " %1 " == " html-noplot" goto html-noplot
32
+ if " %1 " == " show" goto show
31
33
32
34
%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
+ )
33
45
goto end
34
46
35
47
:help
36
48
%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"
37
57
38
58
:end
39
59
popd
You can’t perform that action at this time.
0 commit comments