#18930 closed Bug (fixed)
Website docs builder should clean to get rid of old docs
Reported by: | James Bennett | Owned by: | nobody |
---|---|---|---|
Component: | *.djangoproject.com | Version: | 1.4 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Accepted | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Currently it doesn't, which is why we got ticket #18699, and why this document still exists on-site even though it was removed from the docs months ago.
A step should be added to clean out old generated HTML, so we don't run into this again.
Change History (4)
comment:1 by , 12 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:2 by , 12 years ago
Resolution: | fixed |
---|---|
Status: | closed → new |
I wiped the Document table as well as the xapian index in production.
Then I did a single rebuild of the docs, and I tried adding a unique index on (version, path).
It failed because of duplicates, which appear to be pages that have been converted into directories at some point (ie. topics/auth.txt => topics/auth/index.txt).
>>> from docs.models import * >>> from django.db.models import * >>> sorted(Document.objects.values_list('release', 'path').annotate(count=Count('pk')).filter(count__gt=1).values_list('release__version', 'path', 'count')) [(u'1.5', u'topics/auth', 2), (u'1.5', u'topics/testing', 2), (u'dev', u'ref/class-based-views', 2), (u'dev', u'ref/contrib/gis/install', 2), (u'dev', u'topics/auth', 2), (u'dev', u'topics/class-based-views', 2), (u'dev', u'topics/testing', 2)]
comment:3 by , 12 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
In 1af4480ae19db8c39b07c28df32a12df72a38f0a/djangoproject.com: