|
41 | 41 | 'sphinx.ext.autosummary', |
42 | 42 | 'sphinx.ext.doctest', |
43 | 43 | 'sphinx.ext.intersphinx', |
44 | | - 'sphinx.ext.pngmath', |
45 | 44 | 'sphinx.ext.todo', |
46 | 45 | 'numpydoc', |
47 | 46 | 'sphinx.ext.ifconfig', |
48 | 47 | 'sphinx.ext.viewcode', |
49 | 48 | ] |
50 | 49 |
|
| 50 | +try: |
| 51 | + import sphinx.ext.imgmath # noqa |
| 52 | +except ImportError: |
| 53 | + extensions.append('sphinx.ext.pngmath') |
| 54 | +else: |
| 55 | + extensions.append('sphinx.ext.imgmath') |
| 56 | + |
51 | 57 | # Add any paths that contain templates here, relative to this directory. |
52 | 58 | templates_path = ['_templates'] |
53 | 59 |
|
|
149 | 155 | html_sidebars = {} |
150 | 156 |
|
151 | 157 | html_title = "%s v%s Manual" % (project, version) |
152 | | -html_static_path = ['_static'] |
153 | 158 | html_last_updated_fmt = '%b %d, %Y' |
154 | 159 |
|
155 | 160 | # Add any paths that contain custom static files (such as style sheets) here, |
156 | 161 | # relative to this directory. They are copied after the builtin static files, |
157 | 162 | # so a file named "default.css" will overwrite the builtin "default.css". |
158 | | -html_static_path = ['_static'] |
| 163 | +html_static_path = [] # ['_static'] |
159 | 164 |
|
160 | 165 | # Add any extra paths that contain custom files (such as robots.txt or |
161 | 166 | # .htaccess) here, relative to this directory. These files are copied |
|
264 | 269 | # Example configuration for intersphinx: refer to the Python standard library. |
265 | 270 | intersphinx_mapping = { |
266 | 271 | 'python': ('http://docs.python.org/', None), |
267 | | - 'scikit-learn': ('http://scikit-learn.org/stable/', None), |
| 272 | + 'scikitlearn': ('http://scikit-learn.org/stable/', None), |
268 | 273 | } |
0 commit comments