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

Skip to content

Commit 4aca025

Browse files
committed
Reduce the size of the generated documentation -- bug reported by Jason Grout on mailing list
1 parent 3bf76b9 commit 4aca025

2 files changed

Lines changed: 7 additions & 74 deletions

File tree

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)