Skip to content

Commit 495bce0

Browse files
kwagyemanclaude
andcommitted
ide: replace 8 MB main-window GIF with an inline 833 KB MP4
Convert the IDE main-window screen recording (8.0 MB animated GIF) to an H.264 MP4 (833 KB, ~9.6x smaller) embedded via sphinxcontrib-video as an autoplaying, looping, muted, controls-free <video> -- same GIF-like behaviour, far smaller. The file lands in _images/ so .ci/dedup_assets.py shares it across language builds automatically. Keeps the framed class, alt text, and caption. Adds sphinxcontrib-video to requirements + extensions. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 4de1a2d commit 495bce0

5 files changed

Lines changed: 11 additions & 4 deletions

File tree

docs/conf.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,9 @@ def _render_landing_code(src):
300300
"sphinx.ext.mathjax",
301301
"sphinx.ext.todo",
302302
"sphinx.ext.coverage",
303+
# Inline, autoplaying <video> embeds (replaces heavy animated GIFs). Copies
304+
# the source file into the build like an image, so it's deduped per channel.
305+
"sphinxcontrib.video",
303306
]
304307

305308
# llms.txt / llms-full.txt is English source regardless of build language and
-7.65 MB
Binary file not shown.
833 KB
Binary file not shown.

docs/openmvcam/tutorial/tools/ide/index.rst

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,16 @@ bottom edge reports what the connected camera is doing.
2525
You can collapse any pane when the script needs the
2626
room.
2727

28-
.. figure:: figures/main-window.gif
28+
.. video:: figures/main-window.mp4
2929
:width: 100%
3030
:class: framed
31+
:autoplay:
32+
:loop:
33+
:muted:
34+
:playsinline:
35+
:nocontrols:
3136
:alt: The OpenMV IDE main window with a camera connected and a script running: the script in the editor on the left, the frame buffer on the right tracking a person in live video
32-
33-
The main window with a script running: edit on the
34-
left, watch on the right.
37+
:caption: The main window with a script running: edit on the left, watch on the right.
3538

3639
Keyboard shortcuts in this chapter are written for
3740
Windows and Linux; on macOS substitute ``Cmd`` for

docs/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
sphinx>=7.2
22
shibuya>=2024.0.0
33
sphinx-llms-txt
4+
sphinxcontrib-video

0 commit comments

Comments
 (0)