|
33 | 33 | # ones. |
34 | 34 |
|
35 | 35 | extensions = [ |
36 | | - "m2r", |
37 | | - # 'recommonmark', |
38 | | - "sphinxcontrib.programoutput", |
39 | | - "sphinx.ext.autodoc", |
40 | | - "sphinx.ext.autosummary", |
41 | | - "sphinx.ext.napoleon", |
42 | | - "sphinx.ext.doctest", |
43 | | - "sphinx.ext.intersphinx", |
44 | | - "sphinx.ext.todo", |
45 | | - "sphinx.ext.coverage", |
46 | | - "sphinx.ext.mathjax", |
47 | | - "sphinx.ext.viewcode", |
48 | | - "sphinx.ext.githubpages", |
49 | | - "sphinx.ext.graphviz", |
50 | | - ] |
| 36 | + "m2r", |
| 37 | + # 'recommonmark', |
| 38 | + "sphinxcontrib.programoutput", |
| 39 | + "sphinx.ext.autodoc", |
| 40 | + "sphinx.ext.autosummary", |
| 41 | + "sphinx.ext.napoleon", |
| 42 | + "sphinx.ext.doctest", |
| 43 | + "sphinx.ext.intersphinx", |
| 44 | + "sphinx.ext.todo", |
| 45 | + "sphinx.ext.coverage", |
| 46 | + "sphinx.ext.mathjax", |
| 47 | + "sphinx.ext.viewcode", |
| 48 | + "sphinx.ext.githubpages", |
| 49 | + "sphinx.ext.graphviz", |
| 50 | + ] |
51 | 51 |
|
52 | 52 | napoleon_use_ivar = True |
53 | 53 |
|
|
126 | 126 | # -- Options for LaTeX output --------------------------------------------- |
127 | 127 |
|
128 | 128 | latex_elements = { |
129 | | - # The paper size ('letterpaper' or 'a4paper'). |
130 | | - # |
131 | | - # 'papersize': 'letterpaper', |
132 | | - # The font size ('10pt', '11pt' or '12pt'). |
133 | | - # |
134 | | - # 'pointsize': '10pt', |
135 | | - # Additional stuff for the LaTeX preamble. |
136 | | - # |
137 | | - # 'preamble': '', |
138 | | - # Latex figure (float) alignment |
139 | | - # |
140 | | - # 'figure_align': 'htbp', |
141 | | - } |
| 129 | + # The paper size ('letterpaper' or 'a4paper'). |
| 130 | + # |
| 131 | + # 'papersize': 'letterpaper', |
| 132 | + # The font size ('10pt', '11pt' or '12pt'). |
| 133 | + # |
| 134 | + # 'pointsize': '10pt', |
| 135 | + # Additional stuff for the LaTeX preamble. |
| 136 | + # |
| 137 | + # 'preamble': '', |
| 138 | + # Latex figure (float) alignment |
| 139 | + # |
| 140 | + # 'figure_align': 'htbp', |
| 141 | + } |
142 | 142 |
|
143 | 143 | # Grouping the document tree into LaTeX files. List of tuples |
144 | 144 | # (source start file, target name, title, |
145 | 145 | # author, documentclass [howto, manual, or own class]). |
146 | 146 | latex_documents = [ |
147 | | - ( |
148 | | - master_doc, |
149 | | - "Agent.tex", |
150 | | - "Agent Documentation", |
151 | | - "Christian Heider Nielsen", |
152 | | - "manual", |
153 | | - ) |
154 | | - ] |
| 147 | + ( |
| 148 | + master_doc, |
| 149 | + "Agent.tex", |
| 150 | + "Agent Documentation", |
| 151 | + "Christian Heider Nielsen", |
| 152 | + "manual", |
| 153 | + ) |
| 154 | + ] |
155 | 155 |
|
156 | 156 | # -- Options for manual page output --------------------------------------- |
157 | 157 |
|
|
165 | 165 | # (source start file, target name, title, author, |
166 | 166 | # dir menu entry, description, category) |
167 | 167 | texinfo_documents = [ |
168 | | - ( |
169 | | - master_doc, |
170 | | - "agent", |
171 | | - "Agent Documentation", |
172 | | - author, |
173 | | - "Agent", |
174 | | - "One line description of project.", |
175 | | - "Miscellaneous", |
176 | | - ) |
177 | | - ] |
| 168 | + ( |
| 169 | + master_doc, |
| 170 | + "agent", |
| 171 | + "Agent Documentation", |
| 172 | + author, |
| 173 | + "Agent", |
| 174 | + "One line description of project.", |
| 175 | + "Miscellaneous", |
| 176 | + ) |
| 177 | + ] |
178 | 178 |
|
179 | 179 | # -- Options for Epub output ---------------------------------------------- |
180 | 180 |
|
|
198 | 198 |
|
199 | 199 | # Example configuration for intersphinx: refer to the Python standard library. |
200 | 200 | intersphinx_mapping = { |
201 | | - "python":("https://docs.python.org/", None), |
202 | | - "numpy": ("http://docs.scipy.org/doc/numpy/", None), |
203 | | - } |
| 201 | + "python":("https://docs.python.org/", None), |
| 202 | + "numpy": ("http://docs.scipy.org/doc/numpy/", None), |
| 203 | + } |
204 | 204 |
|
205 | 205 | # -- A patch that prevents Sphinx from cross-referencing ivar tags ------- |
206 | 206 | # See http://stackoverflow.com/a/41184353/3343043 |
@@ -233,14 +233,14 @@ def handle_item(fieldarg, content): |
233 | 233 | typename = typename.replace("float", "python:float") |
234 | 234 | typename = typename.replace("type", "python:type") |
235 | 235 | par.extend( |
236 | | - self.make_xrefs( |
237 | | - self.typerolename, |
238 | | - domain, |
239 | | - typename, |
240 | | - addnodes.literal_emphasis, |
241 | | - **kw, |
| 236 | + self.make_xrefs( |
| 237 | + self.typerolename, |
| 238 | + domain, |
| 239 | + typename, |
| 240 | + addnodes.literal_emphasis, |
| 241 | + **kw, |
| 242 | + ) |
242 | 243 | ) |
243 | | - ) |
244 | 244 | else: |
245 | 245 | par += fieldtype |
246 | 246 | par += nodes.Text(")") |
|
0 commit comments