Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

…d tarball after docu refactorings.
  • Loading branch information...
commit 08b96606e932a5ece464425d0c73c3154b5bef3f 1 parent d92c4d3
Ramiro Morales authored

Showing 1 changed file with 4 additions and 2 deletions. Show diff stats Hide diff stats

  1. +4 2 django_website/docs/management/commands/update_docs.py
6 django_website/docs/management/commands/update_docs.py
@@ -54,9 +54,11 @@ def handle_noargs(self, **kwargs):
54 54 # Use Sphinx to build the release docs into JSON and HTML documents.
55 55 #
56 56 for builder in ('json', 'html'):
  57 + build_dir = destdir.child('_build', builder)
  58 + # Remove old renderized versions of the docs
  59 + build_dir.rmtree(parents=False)
57 60 # Make the directory for the built files - sphinx-build doesn't
58 61 # do it for us, apparently.
59   - build_dir = destdir.child('_build', builder)
60 62 if not build_dir.exists():
61 63 build_dir.mkdir(parents=True)
62 64
@@ -102,7 +104,7 @@ def handle_noargs(self, **kwargs):
102 104 # Walk the tree we've just built looking for ".fjson" documents
103 105 # (just JSON, but Sphinx names them weirdly). Each one of those
104 106 # documents gets a corresponding Document object created which
105   - # we'll then ask Sphinx to reindex.
  107 + # we'll then ask Haystack to reindex.
106 108 #
107 109 # We have to be a bit careful to reverse-engineer the correct
108 110 # relative path component, especially for "index" documents,

0 comments on commit 08b9660

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