|
14 | 14 | import sys, os |
15 | 15 | import datetime |
16 | 16 |
|
17 | | -import sphinx_rtd_theme |
18 | | - |
19 | 17 | # If extensions (or modules to document with autodoc) are in another directory, |
20 | 18 | # add these directories to sys.path here. If the directory is relative to the |
21 | 19 | # documentation root, use os.path.abspath to make it absolute, like shown here. |
|
39 | 37 | 'sphinx.ext.mathjax', 'sphinx.ext.viewcode', |
40 | 38 | 'sphinx.ext.napoleon', 'sphinx.ext.todo', |
41 | 39 | 'sphinx.ext.autosummary', |
42 | | - 'sphinx_sitemap', |
43 | | - 'sphinx_rtd_theme'] |
| 40 | + 'sphinx_sitemap'] |
44 | 41 |
|
45 | 42 | mathjax_path = 'https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-AMS-MML_HTMLorMML' |
46 | 43 |
|
|
123 | 120 | # The theme to use for HTML and HTML Help pages. See the documentation for |
124 | 121 | # a list of builtin themes. |
125 | 122 |
|
126 | | -html_theme = 'sphinx_rtd_theme' |
| 123 | +html_theme = 'mdanalysis_sphinx_theme' |
127 | 124 |
|
128 | | -html_theme_path = [ |
129 | | - sphinx_rtd_theme.get_html_theme_path() |
130 | | -] |
| 125 | +# html_theme_path = [] |
131 | 126 |
|
132 | 127 | # Theme options are theme-specific and customize the look and feel of a theme |
133 | 128 | # further. For a list of options available for each theme, see the |
|
141 | 136 | # /* MDAnalysis white: #FFFFFF */ |
142 | 137 | # /* MDAnalysis black: #000000 */ |
143 | 138 |
|
144 | | -html_theme_options = { |
145 | | - 'canonical_url': '', |
146 | | - 'logo_only': True, |
147 | | - 'display_version': True, |
148 | | - 'prev_next_buttons_location': 'bottom', |
149 | | - 'style_external_links': False, |
150 | | - 'style_nav_header_background': 'white', |
151 | | - # Toc options |
152 | | - 'collapse_navigation': True, |
153 | | - 'sticky_navigation': True, |
154 | | - 'navigation_depth': 4, |
155 | | - 'includehidden': True, |
156 | | - 'titles_only': False, |
157 | | -} |
| 139 | +html_theme_options = {"mda_official": True} |
158 | 140 |
|
159 | 141 |
|
160 | 142 | # options common to RTD and MDAnalysis theme |
|
164 | 146 | # so a file named "default.css" will overwrite the builtin "default.css". |
165 | 147 | # For RTD theme: custom.css to override theme defaults. |
166 | 148 | html_static_path = ['_static'] |
167 | | -html_css_files = ['custom.css'] |
| 149 | +# html_css_files = [] |
168 | 150 |
|
169 | 151 |
|
170 | 152 | # The name of an image file (relative to this directory) to place at the top |
|
174 | 156 | # The name of an image file (within the static path) to use as favicon of the |
175 | 157 | # docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32 |
176 | 158 | # pixels large. |
177 | | -html_favicon = "_static/logos/mdanalysis-logo.ico" |
| 159 | +# html_favicon = "_static/logos/mdanalysis-logo.ico" |
178 | 160 |
|
179 | 161 |
|
180 | 162 | # If not '', a 'Last updated on:' timestamp is inserted at every page bottom, |
|
305 | 287 |
|
306 | 288 | # Configuration for intersphinx: refer to the Python standard library |
307 | 289 | # and other packages used by MDAnalysis |
308 | | -intersphinx_mapping = {'https://docs.python.org/': None, |
309 | | - 'https://docs.mdanalysis.org/stable': None, |
310 | | - } |
| 290 | +intersphinx_mapping = { |
| 291 | + "python": ('https://docs.python.org/3/', None), |
| 292 | + "mdanalysis": ('https://docs.mdanalysis.org/stable', None), |
| 293 | +} |
0 commit comments