Tests were recently failing for sphinx docs build. The root cause is sphinx 8.0.0 replaced some function references that sphinx-gallery uses. We have pinned our version of "sphinx-gallery<0.8.2" back about 4 years, but it appears the new one has not adapted to the changes yet either.
For now, we will pin to sphinx<8.0, but we will probably have to revisit this issue in the future, especially since we are pinned to a very old sphinx-gallery version.