Skip to content

Commit 047ad3b

Browse files
committed
MNT: Fix doc makefiles
- match make.bat with Makefile - clean sg_execution_times.rst and git ignore it (see sphinx gallery matplotlib#1198)
1 parent 07a6f66 commit 047ad3b

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ result_images
8383
doc/_static/constrained_layout*.png
8484
doc/.mpl_skip_subdirs.yaml
8585
doc/_tags
86+
sg_execution_times.rst
8687

8788
# Nose/Pytest generated files #
8889
###############################

doc/Makefile

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ clean:
2626
rm -rf "$(SOURCEDIR)/savefig"
2727
rm -rf "$(SOURCEDIR)/sphinxext/__pycache__"
2828
rm -f $(SOURCEDIR)/_static/constrained_layout*.png
29+
rm -f $(SOURCEDIR)/sg_execution_times.rst
2930

3031
show:
3132
@python -c "import webbrowser; webbrowser.open_new_tab('file://$(shell pwd)/build/html/index.html')"

doc/make.bat

+3
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,11 @@ if "%1" == "clean" (
4040
rmdir /s /q "%SOURCEDIR%\gallery"
4141
rmdir /s /q "%SOURCEDIR%\plot_types"
4242
rmdir /s /q "%SOURCEDIR%\tutorials"
43+
rmdir /s /q "%SOURCEDIR%\users\explain"
4344
rmdir /s /q "%SOURCEDIR%\savefig"
4445
rmdir /s /q "%SOURCEDIR%\sphinxext\__pycache__"
46+
del /q "%SOURCEDIR%\_static\constrained_layout*.png"
47+
del /q "%SOURCEDIR%\sg_execution_times.rst"
4548
)
4649
goto end
4750

0 commit comments

Comments
 (0)