Commit 265c09d8 authored by moto's avatar moto Committed by Facebook GitHub Bot
Browse files

Fix Sphinx-gallery display and pin sphinx-related packages (#2629)

Summary:
This commit fixes the issue with the recent Sphinx-Gallery update.
Also it pins the versions of Sphinx-related packages.

Before:

<img width="256" alt="Screen Shot 2022-08-17 at 10 02 23 PM" src="https://user-images.githubusercontent.com/855818/185140952-28f2d98a-b586-424c-a003-b69089f48eb9.png">

After:

https://user-images.githubusercontent.com/855818/185271889-bd4f86a0-986b-43bb-8121-bd77750d74f0.mov

Pull Request resolved: https://github.com/pytorch/audio/pull/2629

Reviewed By: carolineechen

Differential Revision: D38816417

Pulled By: mthrok

fbshipit-source-id: 11ee3f9121d9a302772ee1f461dacae52eb28852
parent 39d24d9d
...@@ -5,7 +5,6 @@ cython ...@@ -5,7 +5,6 @@ cython
pandas pandas
librosa librosa
sentencepiece sentencepiece
nbsphinx
pandoc pandoc
mir_eval mir_eval
pesq pesq
......
Jinja2<3.1.0 Jinja2<3.1.0
sphinx==3.5.4
-e git+https://github.com/pytorch/pytorch_sphinx_theme.git@b4d0005#egg=pytorch_sphinx_theme
sphinxcontrib.katex
sphinxcontrib.bibtex
matplotlib matplotlib
pyparsing<3,>=2.0.2 pyparsing<3,>=2.0.2
sphinx_gallery
# Note:
# When changing Sphinx-related packages, make sure that the custom behaviors in the following
# locations are working as expected.
# - source/_templates/layout.html
# - source/_static/css/custom.css
-e git+https://github.com/pytorch/pytorch_sphinx_theme.git@b4d0005#egg=pytorch_sphinx_theme
sphinx==3.5.4
sphinxcontrib.katex==0.8.6
sphinxcontrib.bibtex==2.4.2
sphinx_gallery==0.11
nbsphinx==0.8.8
# https://github.com/bmcfee/resampy/issues/106 # https://github.com/bmcfee/resampy/issues/106
# Since 2022-07-07 build_docs CI job started to fail. # Since 2022-07-07 build_docs CI job started to fail.
......
...@@ -15,3 +15,19 @@ article.pytorch-article img.shield-badge { ...@@ -15,3 +15,19 @@ article.pytorch-article img.shield-badge {
margin-top: -18px; margin-top: -18px;
margin-bottom: 9px; margin-bottom: 9px;
} }
/* 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;
}
article.pytorch-article .sphx-glr-thumbnails {
display: flex;
grid-template-columns: none;
}
article.pytorch-article .sphx-glr-thumbnails .sphx-glr-thumbnails {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment