From 9d96b69c59dbb97eb8a85b502222c29ff1f1fb97 Mon Sep 17 00:00:00 2001 From: Bastian Krause Date: Tue, 8 Oct 2024 15:49:18 +0200 Subject: [PATCH] doc/conf: drop obsolete html_theme_path MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Since sphinx_rtd_theme 3.0.0rc1, "html_theme_path" is obsolete: "Raise a warning when defining html_theme_path. This was an old config that’s not required anymore." [1] Fixes warnings such as: sphinx.errors.SphinxWarning: Calling get_html_theme_path is deprecated. If you are calling it to define html_theme_path, you are safe to remove that code. Fixes labgrid's CI which is building the docs with -W, treating warnings as errors. [1] https://sphinx-rtd-theme.readthedocs.io/en/stable/changelog.html Signed-off-by: Bastian Krause --- doc/conf.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/doc/conf.py b/doc/conf.py index cfef4259b..2fcea3267 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -95,9 +95,6 @@ # html_theme = 'sphinx_rtd_theme' -# Set correct html_path for rtd theme: -html_theme_path = [sphinx_rtd_theme.get_html_theme_path()] - # Theme options are theme-specific and customize the look and feel of a theme # further. For a list of options available for each theme, see the # documentation.