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

Skip to content

Commit d9c766e

Browse files
authored
Merge pull request #12706 from timhoffm/doc-make-clean
Extend sphinx Makefile to cleanup completely
2 parents e704fe9 + a299ff9 commit d9c766e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

doc/Makefile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,16 @@ help:
1414

1515
.PHONY: help Makefile
1616

17+
# workaround because sphinx does not completely clean up (#11139)
18+
clean:
19+
@$(SPHINXBUILD) -M clean "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
20+
rm -rf "$(SOURCEDIR)/build"
21+
rm -rf "$(SOURCEDIR)/api/_as_gen"
22+
rm -rf "$(SOURCEDIR)/gallery"
23+
rm -rf "$(SOURCEDIR)/tutorials"
24+
rm -rf "$(SOURCEDIR)/savefig"
25+
rm -rf "$(SOURCEDIR)/sphinxext/__pycache__"
26+
1727
# Catch-all target: route all unknown targets to Sphinx using the new
1828
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
1929
%: Makefile

0 commit comments

Comments
 (0)