|
27 | 27 | # The full version, including alpha/beta/rc tags |
28 | 28 | release = '0.0.1' |
29 | 29 |
|
30 | | -# -- Autodoc configuration --------------------------------------------------- |
31 | | - |
32 | | -autodoc_member_order = "bysource" |
33 | | -autosummary_generate = True |
34 | | - |
35 | 30 | # -- General configuration --------------------------------------------------- |
36 | 31 |
|
37 | 32 | # If your documentation needs a minimal Sphinx version, state it here. |
|
67 | 62 | # |
68 | 63 | # This is also used if you do content translation via gettext catalogs. |
69 | 64 | # Usually you set "language" from the command line for these cases. |
70 | | -language = None |
| 65 | +language = "en" |
71 | 66 |
|
72 | 67 | # List of patterns, relative to source directory, that match files and |
73 | 68 | # directories to ignore when looking for source files. |
74 | 69 | # This pattern also affects html_static_path and html_extra_path . |
75 | 70 | exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store'] |
76 | 71 |
|
77 | 72 | # The name of the Pygments (syntax highlighting) style to use. |
78 | | -pygments_style = 'sphinx' |
| 73 | +# pygments_style = 'sphinx' |
| 74 | + |
| 75 | +# If true, the current module name will be prepended to all description |
| 76 | +# unit titles (such as .. function::). |
| 77 | +add_module_names = False |
79 | 78 |
|
80 | 79 | # -- Options for HTML output ------------------------------------------------- |
81 | 80 |
|
82 | 81 | # The theme to use for HTML and HTML Help pages. See the documentation for |
83 | 82 | # a list of builtin themes. |
84 | 83 | # |
85 | | -html_theme = 'nature' |
| 84 | +on_rtd = os.environ.get('READTHEDOCS') == 'True' |
| 85 | +if on_rtd: |
| 86 | + html_theme = 'default' |
| 87 | +else: |
| 88 | + html_theme = 'sphinx_rtd_theme' |
86 | 89 |
|
87 | 90 | # Theme options are theme-specific and customize the look and feel of a theme |
88 | 91 | # further. For a list of options available for each theme, see the |
89 | 92 | # documentation. |
90 | 93 | # |
91 | 94 | # html_theme_options = {} |
92 | 95 |
|
| 96 | +html_use_index = False |
| 97 | + |
93 | 98 | # Add any paths that contain custom static files (such as style sheets) here, |
94 | 99 | # relative to this directory. They are copied after the builtin static files, |
95 | 100 | # so a file named "default.css" will overwrite the builtin "default.css". |
96 | 101 | html_static_path = ['_static'] |
97 | 102 |
|
| 103 | +html_context = { |
| 104 | + 'css_files': [ |
| 105 | + '_static/theme_overrides.css', # override wide tables in RTD theme |
| 106 | + ], |
| 107 | +} |
| 108 | + |
98 | 109 | # Custom sidebar templates, must be a dictionary that maps document names |
99 | 110 | # to template names. |
100 | 111 | # |
|
165 | 176 |
|
166 | 177 | # -- Extension configuration ------------------------------------------------- |
167 | 178 |
|
| 179 | +# -- Options for autodoc extension ------------------------------------------- |
| 180 | + |
| 181 | +autodoc_member_order = "bysource" |
| 182 | +autosummary_generate = True |
| 183 | + |
168 | 184 | # -- Options for todo extension ---------------------------------------------- |
169 | 185 |
|
170 | 186 | # If true, `todo` and `todoList` produce output, else they produce nothing. |
|
0 commit comments