Skip to content

Commit

Permalink
Create example_thumbs while running conf.py (#2572)
Browse files Browse the repository at this point in the history
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 <img> tag, not using the sphinx image directive.

Fixes #2532
  • Loading branch information
mwaskom authored May 5, 2021
1 parent afe5635 commit 4f79753
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 4f79753

Please sign in to comment.