We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5a73ba8 commit 4cc6c65Copy full SHA for 4cc6c65
docs/sphinx/Makefile
@@ -48,6 +48,9 @@ help:
48
49
clean:
50
rm -rf $(BUILDDIR)/*
51
+ rm -rf source/generated
52
+ rm -rf source/auto_examples
53
+ rm -rf source/savefig
54
55
html:
56
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
docs/sphinx/make.bat
@@ -12,6 +12,17 @@ set BUILDDIR=build
12
13
if "%1" == "" goto help
14
15
+
16
+if "%1" == "clean" (
17
+ REM override the default `make clean` behavior of sphinx-build;
18
+ REM this lets us clean out the various build files in sphinx/source/
19
+ for /d %%i in (%BUILDDIR%\*) do rmdir /q /s %%i
20
+ rmdir /q /s %SOURCEDIR%\generated >nul 2>&1
21
+ rmdir /q /s %SOURCEDIR%\auto_examples >nul 2>&1
22
+ rmdir /q /s %SOURCEDIR%\savefig >nul 2>&1
23
+ goto end
24
+)
25
26
%SPHINXBUILD% >NUL 2>NUL
27
if errorlevel 9009 (
28
echo.
0 commit comments