]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
doc: add sphinx_rtd_theme extension
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sun, 14 Jan 2024 13:18:20 +0000 (14:18 +0100)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Wed, 17 Jan 2024 07:40:19 +0000 (08:40 +0100)
Newer versions of sphinx_rtd_theme require to add sphinx_rtd_theme to the
list of extensions. Cf.
https://github.com/readthedocs/readthedocs.org/pull/9654

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
doc/conf.py

index 5e2ff1c8f5e2c8da39f31da4c041c6105509afe4..c9138a5a5d4887b4a541e46aafab25c7377bee6a 100644 (file)
@@ -228,7 +228,7 @@ highlight_language = 'none'
 try:
     import sphinx_rtd_theme
     html_theme = 'sphinx_rtd_theme'
-    html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
+    extensions.append('sphinx_rtd_theme')
 except ImportError:
     sys.stderr.write('Warning: The Sphinx \'sphinx_rtd_theme\' HTML theme was not found. Make sure you have the theme installed to produce pretty HTML output. Falling back to the default theme.\n')