Fix Sphinx-Toolbox dependency issue in documentation.

PiperOrigin-RevId: 725818375
Change-Id: I9f241f9575d4bebceeab62937caf682e455b3816
This commit is contained in:
Yuval Tassa
2025-02-11 16:40:05 -08:00
committed by Copybara-Service
parent e3b9538d92
commit ef1ef8ef6a
2 changed files with 5 additions and 8 deletions
+4 -5
View File
@@ -507,9 +507,8 @@ Note the ``from_string()`` and ``from_file()`` methods can only be called at con
Assets
^^^^^^
All three methods take in an optional argument called ``assets`` which is used
to resolve asset references in the XML. This argument is a dictionary that maps
asset name (string) to asset data (bytes), as demonstrated below:
All three methods take in an optional argument called ``assets`` which is used to resolve asset references in the XML.
This argument is a dictionary that maps asset name (string) to asset data (bytes), as demonstrated below:
.. code-block:: python
@@ -587,8 +586,8 @@ Convenience methods
The Python bindings provide a number of convenience methods and attributes not directly available in the C API in order
to make model editing easier:
Finding elements
^^^^^^^^^^^^^^^^
Named access
^^^^^^^^^^^^
The ``MjSpec`` object has methods like ``.body(), .joint(), .site(), ...`` for named access of elements.
``spec.geom('my_geom')`` will return the :ref:`mjsGeom` called "my_geom", or ``None`` if it does not exist.