Unverified Commit dc6d86de authored by Philip Meier's avatar Philip Meier Committed by GitHub
Browse files

fix example galleries in documentation (#6701)

* exclude sphinx-gallery==0.11.0

* fix CSS

* Update docs/requirements.txt
parent 673838f5
matplotlib matplotlib
numpy numpy
sphinx-copybutton>=0.3.1 sphinx-copybutton>=0.3.1
sphinx-gallery>=0.9.0 sphinx-gallery>=0.11.1
sphinx==5.0.0 sphinx==5.0.0
tabulate tabulate
-e git+https://github.com/pytorch/pytorch_sphinx_theme.git#egg=pytorch_sphinx_theme -e git+https://github.com/pytorch/pytorch_sphinx_theme.git#egg=pytorch_sphinx_theme
...@@ -21,3 +21,15 @@ article.pytorch-article .reference.download.internal, article.pytorch-article .s ...@@ -21,3 +21,15 @@ article.pytorch-article .reference.download.internal, article.pytorch-article .s
.table-weights p { .table-weights p {
margin-bottom: 0.2rem !important; margin-bottom: 0.2rem !important;
} }
/* 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 div.section div.wy-table-responsive tbody td {
width: 50%;
}
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