Add Expand/Collapse All buttons to XML schema documentation.

PiperOrigin-RevId: 918454244
Change-Id: Idcd2cec39ccaf90fd2d6265aaa364dd6bfb79254
This commit is contained in:
Yuval Tassa
2026-05-20 08:05:32 -07:00
committed by Copybara-Service
parent 7b83f96e49
commit 6aa738e75b
+7
View File
@@ -1,3 +1,10 @@
.. raw:: html
<div class="schema-controls" style="margin-bottom: 1em;">
<button onclick="document.querySelectorAll('.schema-small details').forEach(d => d.open = true)" class="sd-btn sd-btn-outline-primary sd-btn-sm">Expand All</button>
<button onclick="document.querySelectorAll('.schema-small details details').forEach(d => d.open = false)" class="sd-btn sd-btn-outline-secondary sd-btn-sm" style="margin-left: 0.5em;">Collapse All</button>
</div>
.. dropdown:: :ref:`mujoco<mujoco>` :octicon:`star`
:open: