diff --git a/docs/requirements.txt b/docs/requirements.txt index 3f57086887..2f20beb5b4 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -1,5 +1,5 @@ Jinja2<3.1.0 -sphinx==3.5.4 +sphinx==5.1.1 -e git+https://github.com/pytorch/pytorch_sphinx_theme.git@cece053#egg=pytorch_sphinx_theme +sphinx_gallery==0.11.1 matplotlib -sphinx_gallery diff --git a/docs/source/_static/css/pytorch_theme.css b/docs/source/_static/css/pytorch_theme.css index 98e64e0da1..7c6b579f6f 100644 --- a/docs/source/_static/css/pytorch_theme.css +++ b/docs/source/_static/css/pytorch_theme.css @@ -115,3 +115,12 @@ nav .hidden-section { .wy-side-nav-search>div.version { color: #000; } + +/* Fix for Sphinx gallery 0.11 +See https://github.com/sphinx-gallery/sphinx-gallery/issues/990 +*/ +article.pytorch-article .sphx-glr-thumbnails .sphx-glr-thumbcontainer { + width: unset; + margin-right: 0; + margin-left: 0; +} diff --git a/docs/source/conf.py b/docs/source/conf.py index 386fbd4537..6e80a7de5e 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -145,13 +145,6 @@ def _get_pattern(): version = f"Nightly Build ({torchtext.__version__})" release = "nightly" -# The language for content autogenerated by Sphinx. Refer to documentation -# for a list of supported languages. -# -# This is also used if you do content translation via gettext catalogs. -# Usually you set "language" from the command line for these cases. -language = None - # List of patterns, relative to source directory, that match files and # directories to ignore when looking for source files. # This patterns also effect to html_static_path and html_extra_path