8000 Merge branch 'doc_cleanup' of https://github.com/mdboom/matplotlib in… · radford/matplotlib@af378c2 · GitHub
[go: up one dir, main page]

Skip to content

Commit af378c2

Browse files
committed
Merge branch 'doc_cleanup' of https://github.com/mdboom/matplotlib into mdboom-doc_cleanup
2 parents 17a1d11 + cfa165c commit af378c2

File tree

2 files changed

+7
-74
lines changed

2 files changed

+7
-74
lines changed

doc/make.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,13 @@ def html():
3939
figures_dest_path = 'build/html/pyplots'
4040
if os.path.exists(figures_dest_path):
4141
shutil.rmtree(figures_dest_path)
42-
shutil.copytree('pyplots', figures_dest_path)
42+
shutil.copytree(
43+
'pyplots', figures_dest_path,
44+
ignore=shutil.ignore_patterns("*.pyc"))
45+
46+
# Clean out PDF files from the _images directory
47+
for filename in glob.glob('build/html/_images/*.pdf'):
48+
os.remove(filename)
4349

4450
def latex():
4551
check_build()

doc/pyplots/make.py

Lines changed: 0 additions & 73 deletions
This file was deleted.

0 commit comments

Comments
 (0)
0