Skip to content

Commit dc6d86d

Browse files
authored
fix example galleries in documentation (#6701)
* exclude sphinx-gallery==0.11.0 * fix CSS * Update docs/requirements.txt
1 parent 673838f commit dc6d86d

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

docs/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
matplotlib
22
numpy
33
sphinx-copybutton>=0.3.1
4-
sphinx-gallery>=0.9.0
4+
sphinx-gallery>=0.11.1
55
sphinx==5.0.0
66
tabulate
77
-e git+https://github.com/pytorch/pytorch_sphinx_theme.git#egg=pytorch_sphinx_theme

docs/source/_static/css/custom_torchvision.css

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,15 @@ article.pytorch-article .reference.download.internal, article.pytorch-article .s
2121
.table-weights p {
2222
margin-bottom: 0.2rem !important;
2323
}
24+
25+
/* Fix for Sphinx gallery 0.11
26+
See https://github.com/sphinx-gallery/sphinx-gallery/issues/990
27+
*/
28+
article.pytorch-article .sphx-glr-thumbnails .sphx-glr-thumbcontainer {
29+
width: unset;
30+
margin-right: 0;
31+
margin-left: 0;
32+
}
33+
article.pytorch-article div.section div.wy-table-responsive tbody td {
34+
width: 50%;
35+
}

0 commit comments

Comments
 (0)