Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion docs/requirements-tutorials.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ cython
pandas
librosa
sentencepiece
nbsphinx
pandoc
mir_eval
pesq
Expand Down
17 changes: 12 additions & 5 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
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
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
# Since 2022-07-07 build_docs CI job started to fail.
Expand Down
16 changes: 16 additions & 0 deletions docs/source/_static/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,19 @@ article.pytorch-article img.shield-badge {
margin-top: -18px;
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));
}