Fix docs build fail with new version of pydata-sphinx-theme
While the CI was green in the MR setting the theme, it failed after the merge on main, since in the mean time, a new version of the theme was released.
This fixes the deprecation warning that was turned into an error by the CI.