| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent bad9a58 commit ff01797
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -15,6 +15,7 @@ | |||
| 15 | 15 | from docutils import nodes, utils | |
| 16 | 16 | from docutils.parsers.rst import Directive | |
| 17 | 17 | ||
| 18 | + from sphinx.util import status_iterator | ||
| 18 | 19 | from sphinx.util.nodes import split_explicit_title | |
| 19 | 20 | from sphinx.writers.html import HTMLTranslator | |
| 20 | 21 | from sphinx.writers.latex import LaTeXTranslator | |
@@ -158,8 +159,11 @@ def run(self): | |||
| 158 | 159 | class PydocTopicsBuilder(Builder): | |
| 159 | 160 | name = 'pydoc-topics' | |
| 160 | 161 | ||
| 162 | + default_translator_class = TextTranslator | ||
| 163 | + | ||
| 161 | 164 | def init(self): | |
| 162 | 165 | self.topics = {} | |
| 166 | + self.secnumbers = {} | ||
| 163 | 167 | ||
| 164 | 168 | def get_outdated_docs(self): | |
| 165 | 169 | return 'all pydoc topics' | |
@@ -169,9 +173,9 @@ def get_target_uri(self, docname, typ=None): | |||
| 169 | 173 | ||
| 170 | 174 | def write(self, *ignored): | |
| 171 | 175 | writer = TextWriter(self) | |
| 172 | - for label in self.status_iterator(pydoc_topic_labels, | ||
| 173 | - 'building topics... ', | ||
| 174 | - length=len(pydoc_topic_labels)): | ||
| 176 | + for label in status_iterator(pydoc_topic_labels, | ||
| 177 | + 'building topics... ', | ||
| 178 | + length=len(pydoc_topic_labels)): | ||
| 175 | 179 | if label not in self.env.domaindata['std']['labels']: | |
| 176 | 180 | self.warn('label %r not in documentation' % label) | |
| 177 | 181 | continue | |
| Back | FazBrowse Home | New Git URL |
0 commit comments