pytorch_sphinx_theme
pytorch_sphinx_theme copied to clipboard
remove deprecated `style` variable
style variable is deprecated in sphinx 7.0.0. However, in current pytorch_sphinx_theme, we are still using it.
https://github.com/pytorch/pytorch_sphinx_theme/blob/a1dbd5cfa0a69ee023d0c0acc167fb0cbd8619f6/pytorch_sphinx_theme/layout.html#L43-L45
Following is the solution from sphinx-rtd-theme:
https://github.com/readthedocs/sphinx_rtd_theme/blob/03a86b803cf7cf281748ef94345ba7c35953952a/sphinx_rtd_theme/layout.html#L26-L30
They add an if condition for compatibility with very old sphinx<4.0. I think we can just remove those codes.
https://www.sphinx-doc.org/en/master/changes.html
Sorry for the late response. I know this is a valid issue. Did you have a chance to test this against Sphinx version 5.0 and older? A lot of pytorch sites still use the older version.
@svekars Sorry that I don't have time to test it recently. If it's not in a hurry, I may test that during Christmas.