From f73f0e1d0d1b120865b3b421a0e7b82b06cfaaab Mon Sep 17 00:00:00 2001 From: Yuval Tassa Date: Sun, 9 Feb 2025 03:32:20 -0800 Subject: [PATCH] Fix aspect ratios of embedded videos in docs. Note that small videos, for some reason, need an aspect ratio that is different from the actual aspect ratio. PiperOrigin-RevId: 724879307 Change-Id: I681f071baf4eb09cfda41edeca0d1ee16be4181a --- doc/changelog.rst | 17 +++++++++++++++++ doc/modeling.rst | 1 + doc/programming/samples.rst | 1 + 3 files changed, 19 insertions(+) diff --git a/doc/changelog.rst b/doc/changelog.rst index e5f22a59..575877b3 100644 --- a/doc/changelog.rst +++ b/doc/changelog.rst @@ -9,6 +9,7 @@ Upcoming version (not yet released) Feature promotion ^^^^^^^^^^^^^^^^^ .. youtube:: qJFbx-FR7Bc + :aspect: 16:7 :align: right :width: 240px @@ -147,6 +148,7 @@ General ^^^^^^^ .. youtube:: e8lUuykQPGs + :aspect: 16:7 :align: right :width: 240px @@ -206,6 +208,7 @@ General welcome to experiment with it and report any issues. .. youtube:: kcM_oauk3ZA + :aspect: 16:7 :align: right :width: 240px @@ -350,6 +353,7 @@ General speed and memory footprint. .. youtube:: ZXBTEIDWHhs + :aspect: 16:7 :align: right :width: 240px @@ -438,6 +442,7 @@ General ^^^^^^^ .. youtube:: 5k0_wsIRAFc + :aspect: 16:7 :align: right :width: 240px @@ -542,6 +547,7 @@ Python bindings ^^^^^^^^^^^^^^^ .. youtube:: xHDS0n5DpqM + :aspect: 16:7 :align: right :width: 240px @@ -706,6 +712,7 @@ General ``qfrc_{spring, damper, gravcomp, fluid}``. The sum of these vectors equals ``qfrc_passive``. .. youtube:: H9qG9Zf2W44 + :aspect: 16:7 :align: right :width: 240px @@ -769,6 +776,7 @@ Documentation ^^^^^^^^^^^^^ .. youtube:: cE3s_IfO4g4 + :aspect: 16:7 :align: right :width: 240px @@ -800,6 +808,7 @@ New features :target: https://colab.research.google.com/github/google-deepmind/mujoco/blob/main/mjx/tutorial.ipynb .. youtube:: QewlEqIZi1o + :aspect: 16:7 :align: right :width: 240px @@ -810,6 +819,7 @@ New features gradient at query points. See the :ref:`documentation` for more details. .. youtube:: ra2bTiZHGlw + :aspect: 16:7 :align: right :width: 240px @@ -830,6 +840,7 @@ New features this functionality to be unified in the future. .. youtube:: Vc1tq0fFvQA + :aspect: 16:7 :align: right :width: 240px @@ -958,6 +969,7 @@ Simulate ^^^^^^^^ .. youtube:: YSvWn_poqWs + :aspect: 16:7 :align: right :width: 240px @@ -972,6 +984,7 @@ Documentation ^^^^^^^^^^^^^ .. youtube:: nljr0X79vI0 + :aspect: 16:7 :align: right :width: 240px @@ -1070,6 +1083,7 @@ Simulate ^^^^^^^^ .. youtube:: mXVPbppGk5I + :aspect: 16:7 :align: right :width: 240px @@ -1443,6 +1457,7 @@ General See the :ref:`Memory allocation ` section for details. .. youtube:: RHnXD6uO3Mg + :aspect: 16:7 :align: right :height: 150px @@ -1530,6 +1545,7 @@ General ^^^^^^^ .. youtube:: BcHZ5BFeTmU + :aspect: 16:7 :align: right :height: 150px @@ -1546,6 +1562,7 @@ General different uses of new weld attributes. .. youtube:: s-0JHanqV1A + :aspect: 16:7 :align: right :height: 150px diff --git a/doc/modeling.rst b/doc/modeling.rst index b34eae4e..4872dc7c 100644 --- a/doc/modeling.rst +++ b/doc/modeling.rst @@ -634,6 +634,7 @@ e.g., torque-control and position-control. In this case, one can define both typ model, assigning one type of actuator to group 0 and the other to group 1. .. youtube:: H9qG9Zf2W44 + :aspect: 2:1 :align: right :width: 40% diff --git a/doc/programming/samples.rst b/doc/programming/samples.rst index 019cc899..9e105ce0 100644 --- a/doc/programming/samples.rst +++ b/doc/programming/samples.rst @@ -85,6 +85,7 @@ functionality. This code sample uses the native UI to render various controls, a illustration of how the new UI framework is intended to be used. Below is a screen-capture of ``simulate`` in action: .. youtube:: P83tKA1iz2Y + :aspect: 16:9 :width: 95% :align: center