Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 9bb655e40702f30614c5fcf51355ad54a42e5c4c 1 parent f564e5e
Jacob Kaplan-Moss jacobian authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 django_website/docs/management/commands/update_docs.py
4 django_website/docs/management/commands/update_docs.py
View
@@ -81,6 +81,10 @@ def handle_noargs(self, **kwargs):
zipfile_path.parent.mkdir(parents=True)
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))
Please sign in to comment.
Something went wrong with that request. Please try again.