|
14 | 14 |
|
15 | 15 | import sys |
16 | 16 | import os |
17 | | -import shlex |
18 | 17 | import sphinx |
19 | | -from sphinx.errors import VersionRequirementError |
20 | | -import sphinx_rtd_theme |
21 | 18 | import time |
22 | 19 | import importlib.metadata |
23 | 20 |
|
|
32 | 29 | _DISTRIBUTION_METADATA = importlib.metadata.metadata("ezyrb") |
33 | 30 | project = _DISTRIBUTION_METADATA["Name"] |
34 | 31 | copyright = f'2016-{time.strftime("%Y")}, EZyRB contributors' |
35 | | -author = _DISTRIBUTION_METADATA["Author"] |
| 32 | +author = _DISTRIBUTION_METADATA["Author-email"] |
36 | 33 |
|
37 | 34 |
|
38 | 35 | # -- General configuration ------------------------------------------------ |
39 | 36 |
|
40 | | -# If your documentation needs a minimal Sphinx version, state it here. |
41 | | -needs_sphinx = '1.4' |
42 | | -if needs_sphinx > sphinx.__display_version__: |
43 | | - message = 'This project needs at least Sphinx v{0!s}'.format(needs_sphinx) |
44 | | - raise VersionRequirementError(message) |
45 | | - |
46 | 37 | # Add any Sphinx extension module names here, as strings. They can be |
47 | 38 | # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom |
48 | 39 | # ones. |
|
56 | 47 | 'sphinx.ext.todo', |
57 | 48 | 'sphinx.ext.viewcode', |
58 | 49 | 'sphinx.ext.coverage', |
59 | | - 'sphinx.ext.imgmath', |
60 | 50 | 'sphinx.ext.ifconfig', |
| 51 | + 'sphinx.ext.mathjax', |
61 | 52 | ] |
62 | 53 |
|
63 | | -intersphinx_mapping = {'python': ('http://docs.python.org/2', None), |
64 | | - 'numpy': ('http://docs.scipy.org/doc/numpy/', None), |
65 | | - 'scipy': ('http://docs.scipy.org/doc/scipy/reference/', None), |
66 | | - 'matplotlib': ('http://matplotlib.sourceforge.net/', None)} |
| 54 | +intersphinx_mapping = { |
| 55 | + "python": ("https://docs.python.org/3", None), |
| 56 | + "numpy": ("https://numpy.org/doc/stable/", None), |
| 57 | + "scipy": ("https://docs.scipy.org/doc/scipy/", None), |
| 58 | + "matplotlib": ("https://matplotlib.org/stable", None), |
| 59 | +} |
67 | 60 |
|
68 | 61 | # Add any paths that contain templates here, relative to this directory. |
69 | 62 | templates_path = ['_templates'] |
|
97 | 90 | # |
98 | 91 | # This is also used if you do content translation via gettext catalogs. |
99 | 92 | # Usually you set "language" from the command line for these cases. |
100 | | -language = None |
| 93 | +language = 'en' |
101 | 94 |
|
102 | 95 | # There are two options for replacing |today|: either, you set today to some |
103 | 96 | # non-false value, then it is used: |
|
142 | 135 | # classes and attributes. As side effects, this option ... ??? |
143 | 136 | # If false, ... ???. |
144 | 137 | # The default is True. |
145 | | -viewcode_import = True |
| 138 | +viewcode_follow_imported_members = True |
146 | 139 |
|
147 | 140 | # -- Options for HTML output ---------------------------------------------- |
148 | 141 |
|
|
157 | 150 | #html_theme_options = {} |
158 | 151 |
|
159 | 152 | # Add any paths that contain custom themes here, relative to this directory. |
160 | | -html_theme_path = [sphinx_rtd_theme.get_html_theme_path()] |
| 153 | +# html_theme_path = [sphinx_rtd_theme.get_html_theme_path()] |
161 | 154 |
|
162 | 155 | # The name for this set of Sphinx documents. If None, it defaults to |
163 | 156 | # "<project> v<release> documentation". |
|
0 commit comments