Commit 80ff2adf authored by Georg Brandl's avatar Georg Brandl

Update pydoc topics and adapt Topics builder to Sphinx 1.0.

parent 604ef370
...@@ -145,10 +145,10 @@ class PydocTopicsBuilder(Builder): ...@@ -145,10 +145,10 @@ class PydocTopicsBuilder(Builder):
for label in self.status_iterator(pydoc_topic_labels, for label in self.status_iterator(pydoc_topic_labels,
'building topics... ', 'building topics... ',
length=len(pydoc_topic_labels)): length=len(pydoc_topic_labels)):
if label not in self.env.labels: if label not in self.env.domaindata['std']['labels']:
self.warn('label %r not in documentation' % label) self.warn('label %r not in documentation' % label)
continue continue
docname, labelid, sectname = self.env.labels[label] docname, labelid, sectname = self.env.domaindata['std']['labels'][label]
doctree = self.env.get_and_resolve_doctree(docname, self) doctree = self.env.get_and_resolve_doctree(docname, self)
document = new_document('<section node>') document = new_document('<section node>')
document.append(doctree.ids[labelid]) document.append(doctree.ids[labelid])
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment