Skip to content

Commit e187731

Browse files
authored
Merge pull request matplotlib#20140 from jklymak/doc-srcset-directive
DOC: make 2x versions of all gallery figures
2 parents c4261b6 + baa0537 commit e187731

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

doc/conf.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,8 @@ def _check_dependencies():
168168
'thumbnail_size': (320, 224),
169169
'compress_images': ('thumbnails', 'images'),
170170
'matplotlib_animations': True,
171+
# 3.7 CI doc build should not use hidpi images during the testing phase
172+
'image_srcset': [] if sys.version_info[:2] == (3, 7) else ["2x"],
171173
}
172174

173175
plot_gallery = 'True'

requirements/doc/doc-requirements.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ ipython
1313
ipywidgets
1414
numpydoc>=0.8
1515
sphinxcontrib-svg2pdfconverter>=1.1.0
16-
sphinx-gallery>=0.7
16+
# sphinx-gallery>=0.7
17+
# b41e328 is PR 808 which adds the image_srcset directive. When this is
18+
# released with sphinx gallery, we can change to the last release w/o this feature:
19+
# sphinx-gallery>0.90
20+
git+git://github.com/sphinx-gallery/sphinx-gallery@b41e328#egg=sphinx-gallery
1721
sphinx-copybutton
1822
scipy

0 commit comments

Comments
 (0)