Fix Sphinx-Toolbox dependency issue in documentation.
PiperOrigin-RevId: 725818375 Change-Id: I9f241f9575d4bebceeab62937caf682e455b3816
This commit is contained in:
committed by
Copybara-Service
parent
e3b9538d92
commit
ef1ef8ef6a
+4
-5
@@ -507,9 +507,8 @@ Note the ``from_string()`` and ``from_file()`` methods can only be called at con
|
|||||||
Assets
|
Assets
|
||||||
^^^^^^
|
^^^^^^
|
||||||
|
|
||||||
All three methods take in an optional argument called ``assets`` which is used
|
All three methods take in an optional argument called ``assets`` which is used to resolve asset references in the XML.
|
||||||
to resolve asset references in the XML. This argument is a dictionary that maps
|
This argument is a dictionary that maps asset name (string) to asset data (bytes), as demonstrated below:
|
||||||
asset name (string) to asset data (bytes), as demonstrated below:
|
|
||||||
|
|
||||||
.. code-block:: python
|
.. 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
|
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:
|
to make model editing easier:
|
||||||
|
|
||||||
Finding elements
|
Named access
|
||||||
^^^^^^^^^^^^^^^^
|
^^^^^^^^^^^^
|
||||||
The ``MjSpec`` object has methods like ``.body(), .joint(), .site(), ...`` for named access of elements.
|
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.
|
``spec.geom('my_geom')`` will return the :ref:`mjsGeom` called "my_geom", or ``None`` if it does not exist.
|
||||||
|
|
||||||
|
|||||||
@@ -6,9 +6,7 @@ sphinxcontrib-youtube==1.2.0
|
|||||||
sphinx-copybutton==0.5.2
|
sphinx-copybutton==0.5.2
|
||||||
sphinx-favicon==1.0.1
|
sphinx-favicon==1.0.1
|
||||||
sphinx-reredirects==0.1.1
|
sphinx-reredirects==0.1.1
|
||||||
# TODO: b/390995275 - Bug in sphinx-toolbox, use Kevin's workaround until fixed.
|
sphinx-toolbox==3.8.2
|
||||||
sphinx-toolbox @ git+https://github.com/kevinzakka/sphinx-toolbox.git@gh-issue-fix
|
|
||||||
# sphinx-toolbox==3.4.0
|
|
||||||
nbsphinx==0.9.1
|
nbsphinx==0.9.1
|
||||||
pandoc==1.1.0
|
pandoc==1.1.0
|
||||||
pygments==2.15.0
|
pygments==2.15.0
|
||||||
|
|||||||
Reference in New Issue
Block a user