Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8598bb6

Browse files
committed
html-noplot: filter warnings for constrained layout tutorial images
1 parent d95edc4 commit 8598bb6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

doc/conf.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,8 +208,9 @@ def matplotlib_reduced_latex_scraper(block, block_vars, gallery_conf,
208208

209209
def gallery_image_warning_filter(record):
210210
msg = record.msg
211-
for gallery_dir in sphinx_gallery_conf['gallery_dirs']:
212-
if msg.startswith(f'image file not readable: {gallery_dir}'):
211+
for pattern in (sphinx_gallery_conf['gallery_dirs'] +
212+
['_static/constrained_layout']):
213+
if msg.startswith(f'image file not readable: {pattern}'):
213214
return False
214215

215216
if msg == 'Could not obtain image size. :scale: option is ignored.':

0 commit comments

Comments
 (0)