Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1e98377

Browse files
authored
Merge pull request#27797 from QuLogic/doc-anim-videos
DOC: Use video files for saving animations
2 parents857e7d8 +e775fc6 commit1e98377

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

‎doc/conf.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,11 @@ def _check_dependencies():
195195
subsectionorderasgallery_order_subsectionorder)
196196
fromsphinxext.utilimportclear_basic_units,matplotlib_reduced_latex_scraper
197197

198+
ifparse_version(sphinx_gallery.__version__)>=parse_version('0.17.0'):
199+
sg_matplotlib_animations= (True,'mp4')
200+
else:
201+
sg_matplotlib_animations=True
202+
198203
# The following import is only necessary to monkey patch the signature later on
199204
fromsphinx_galleryimportgen_rst
200205

@@ -273,7 +278,7 @@ def tutorials_download_error(record):
273278
'image_scrapers': (matplotlib_reduced_latex_scraper, ),
274279
'image_srcset': ["2x"],
275280
'junit':'../test-results/sphinx-gallery/junit.xml'ifCIRCLECIelse'',
276-
'matplotlib_animations':True,
281+
'matplotlib_animations':sg_matplotlib_animations,
277282
'min_reported_time':1,
278283
'plot_gallery':'True',# sphinx-gallery/913
279284
'reference_url': {'matplotlib':None,'mpl_toolkits':None},

‎requirements/doc/doc-requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ pydata-sphinx-theme~=0.15.0
1818
mpl-sphinx-theme~=3.9.0
1919
pyyaml
2020
sphinxcontrib-svg2pdfconverter>=1.1.0
21+
sphinxcontrib-video>=0.2.1
2122
sphinx-copybutton
2223
sphinx-design
2324
sphinx-gallery[parallel]>=0.12.0

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp