Browse files

Revert "Cleanup destdir so old documents don't appear in the…

… site and tarball after docu refactorings."

Turns out this causes momentary errors (500s and 404s) while the docs are
building iIf a user hits the site between the directory being deleted and
the files being recreated.)

This reverts commit 08b9660.
  • Loading branch information...
1 parent cf97bf2 commit 69ca152d9e29aa23db350c6a0bf5e6a0d571c620 @jacobian jacobian committed Dec 6, 2011
Showing with 2 additions and 4 deletions.
  1. +2 −4 django_website/docs/management/commands/
6 django_website/docs/management/commands/
@@ -54,11 +54,9 @@ def handle_noargs(self, **kwargs):
# Use Sphinx to build the release docs into JSON and HTML documents.
for builder in ('json', 'html'):
- build_dir = destdir.child('_build', builder)
- # Remove old renderized versions of the docs
- build_dir.rmtree(parents=False)
# Make the directory for the built files - sphinx-build doesn't
# do it for us, apparently.
+ build_dir = destdir.child('_build', builder)
if not build_dir.exists():
@@ -104,7 +102,7 @@ def handle_noargs(self, **kwargs):
# Walk the tree we've just built looking for ".fjson" documents
# (just JSON, but Sphinx names them weirdly). Each one of those
# documents gets a corresponding Document object created which
- # we'll then ask Haystack to reindex.
+ # we'll then ask Sphinx to reindex.
# We have to be a bit careful to reverse-engineer the correct
# relative path component, especially for "index" documents,

0 comments on commit 69ca152

Please sign in to comment.