From 4f79753a8a30aaa0a0f352f9b7caaca5bb05b731 Mon Sep 17 00:00:00 2001 From: Michael Waskom Date: Wed, 5 May 2021 12:41:25 -0400 Subject: [PATCH] Create example_thumbs while running conf.py (#2572) This is a little hacky, but including the thumbnail images in the build seems otherwise complicated because they are written into raw html source with an tag, not using the sphinx image directive. Fixes #2532 --- doc/conf.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/doc/conf.py b/doc/conf.py index 1f3bd100f0..e7ad492905 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -164,6 +164,9 @@ # relative to this directory. They are copied after the builtin static files, # so a file named "default.css" will overwrite the builtin "default.css". html_static_path = ['_static', 'example_thumbs'] +for path in html_static_path: + if not os.path.exists(path): + os.makedirs(path) # If not '', a 'Last updated on:' timestamp is inserted at every page bottom, # using the given strftime format.