8000 DOC: Use video files for saving animations · matplotlib/matplotlib@31ae2b4 · GitHub
[go: up one dir, main page]

Skip to content

Commit 31ae2b4

Browse files
committed
DOC: Use video files for saving animations
Because the default is Base64-encoded frames of PNGs, this should save a substantial amount of space in the resulting docs.
1 parent 6378d48 commit 31ae2b4

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

doc/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ def matplotlib_reduced_latex_scraper(block, block_vars, gallery_conf,
264264
'image_scrapers': (matplotlib_reduced_latex_scraper, ),
265265
'image_srcset': ["2x"],
266266
'junit': '../test-results/sphinx-gallery/junit.xml' if CIRCLECI else '',
267-
'matplotlib_animations': True,
267+
'matplotlib_animations': (True, 'mp4'),
268268
'min_reported_time': 1,
269269
'plot_gallery': 'True', # sphinx-gallery/913
270270
'reference_url': {'matplotlib': None},

requirements/doc/doc-requirements.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ pydata-sphinx-theme~=0.15.0
1818
mpl-sphinx-theme~=3.8.0
1919
pyyaml
2020
sphinxcontrib-svg2pdfconverter>=1.1.0
21-
sphinx-gallery>=0.12.0
21+
git+https://github.com/QuLogic/sphinx-gallery@anim-options
22+
sphinxcontrib-video>=0.2.1rc0
2223
sphinx-copybutton
2324
sphinx-design
2425
sphinx-tags>=0.3.0

0 commit comments

Comments
 (0)
0