Skip to content

Commit

Permalink
doc/conf: drop obsolete html_theme_path
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
Bastian-Krause committed Oct 8, 2024
1 parent de12746 commit 9d96b69
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 9d96b69

Please sign in to comment.