Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Worked around a weird Sphinx bug building docs.

(See the comment in the diff for details.)
  • Loading branch information...
commit 47636601cde4e2097b5c6620ed8e005b066bc5f2 1 parent 45632fc
@jacobian jacobian authored
Showing with 6 additions and 1 deletion.
  1. +6 −1 django_website/docs/management/commands/
7 django_website/docs/management/commands/
@@ -34,7 +34,12 @@ def handle_noargs(self, **kwargs):
except (KeyError, TypeError, ValueError):
verbosity = 1
- for release in DocumentRelease.objects.all():
+ # Somehow, bizarely, there's a bug in Sphinx such that if I try to
+ # build 1.0 before other versions, things fail in weird ways. However,
+ # building newer versions first works. I suspect Sphinx is hanging onto
+ # some global state. Anyway, we can work around it by making sure that
+ # "dev" builds before "1.0". This is ugly, but oh well.
+ for release in DocumentRelease.objects.order_by('-version'):
if verbosity >= 1:
print "Updating %s..." % release
Please sign in to comment.
Something went wrong with that request. Please try again.