Skip to content
Browse files

Don't include the "doctrees" directory in the zipfile of the docs.

  • Loading branch information...
1 parent f564e5e commit 9bb655e40702f30614c5fcf51355ad54a42e5c4c @jacobian jacobian committed
Showing with 4 additions and 0 deletions.
  1. +4 −0 django_website/docs/management/commands/
4 django_website/docs/management/commands/
@@ -81,6 +81,10 @@ def handle_noargs(self, **kwargs):
if verbosity >= 2:
print " build zip (into %s)" % zipfile_path
+ def zipfile_inclusion_filter(f):
+ return f.isfile() and '.doctrees' not in f.components()
with closing(zipfile.ZipFile(zipfile_path, 'w')) as zf:
for f in html_build_dir.walk(filter=Path.isfile):
zf.write(f, html_build_dir.rel_path_to(f))

0 comments on commit 9bb655e

Please sign in to comment.
Something went wrong with that request. Please try again.