|
37 | 37 | 'sphinx.ext.mathjax',
|
38 | 38 | 'sphinx.ext.ifconfig',
|
39 | 39 | 'sphinx.ext.viewcode',
|
| 40 | + 'sphinx_rtd_theme', |
40 | 41 | ]
|
41 | 42 |
|
42 | 43 | # Add any paths that contain templates here, relative to this directory.
|
|
53 | 54 |
|
54 | 55 | # General information about the project.
|
55 | 56 | project = u'BBC micro:bit MicroPython'
|
56 |
| -copyright = u'2015-2022, Multiple authors' |
| 57 | +copyright = u'2015-2024, Multiple authors' |
57 | 58 |
|
58 | 59 | # The version info for the project you're documenting, acts as replacement for
|
59 | 60 | # |version| and |release|, also used in various other places throughout the
|
|
110 | 111 |
|
111 | 112 | # The theme to use for HTML and HTML Help pages. See the documentation for
|
112 | 113 | # a list of builtin themes.
|
113 |
| -# html_theme = 'default' |
| 114 | +html_theme = 'sphinx_rtd_theme' |
114 | 115 |
|
115 | 116 | # Theme options are theme-specific and customize the look and feel of a theme
|
116 | 117 | # further. For a list of options available for each theme, see the
|
|
342 | 343 |
|
343 | 344 | # Example configuration for intersphinx: refer to the Python standard library.
|
344 | 345 | intersphinx_mapping = {'http://docs.python.org/': None}
|
345 |
| - |
346 |
| -# on_rtd is whether we are on readthedocs.org, this line of code grabbed from docs.readthedocs.org |
347 |
| -on_rtd = os.environ.get('READTHEDOCS', None) == 'True' |
348 |
| - |
349 |
| -if not on_rtd: # only import and set the theme if we're building docs locally |
350 |
| - import sphinx_rtd_theme |
351 |
| - html_theme = 'sphinx_rtd_theme' |
352 |
| - html_theme_path = [sphinx_rtd_theme.get_html_theme_path()] |
353 |
| - |
354 |
| -# otherwise, readthedocs.org uses their theme by default, so no need to specify it |
0 commit comments