Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Revert "Cleanup destdir so old documents don't appear in the d.dp.com…

… 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...
commit 69ca152d9e29aa23db350c6a0bf5e6a0d571c620 1 parent cf97bf2
@jacobian jacobian authored
Showing with 2 additions and 4 deletions.
  1. +2 −4 django_website/docs/management/commands/update_docs.py
View
6 django_website/docs/management/commands/update_docs.py
@@ -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():
build_dir.mkdir(parents=True)
@@ -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.
Something went wrong with that request. Please try again.