We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cd7f1f1 commit b276182Copy full SHA for b276182
docs/make.bat
@@ -25,7 +25,20 @@ if errorlevel 9009 (
25
26
if "%1" == "" goto help
27
28
-%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
+:process_targets
29
+if "%1" == "clean" (
30
+ if exist "%BUILDDIR%" rmdir /s /q "%BUILDDIR%"
31
+ if exist "%SOURCEDIR%\api_generated" rmdir /s /q "%SOURCEDIR%\api_generated"
32
+ if exist "%SOURCEDIR%\auto_examples" rmdir /s /q "%SOURCEDIR%\auto_examples"
33
+ if exist "%SOURCEDIR%\sg_execution_times.rst" del /q "%SOURCEDIR%\sg_execution_times.rst"
34
+) else (
35
+ %SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
36
+ if errorlevel 1 goto end
37
+)
38
+
39
+shift
40
+if not "%1" == "" goto process_targets
41
42
goto end
43
44
:help
0 commit comments