diff --git a/doc/python.rst b/doc/python.rst index 8f8f520e..e2fb7dbc 100644 --- a/doc/python.rst +++ b/doc/python.rst @@ -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. diff --git a/doc/requirements.txt b/doc/requirements.txt index f959062f..f5bddde1 100644 --- a/doc/requirements.txt +++ b/doc/requirements.txt @@ -6,9 +6,7 @@ sphinxcontrib-youtube==1.2.0 sphinx-copybutton==0.5.2 sphinx-favicon==1.0.1 sphinx-reredirects==0.1.1 -# TODO: b/390995275 - Bug in sphinx-toolbox, use Kevin's workaround until fixed. -sphinx-toolbox @ git+https://github.com/kevinzakka/sphinx-toolbox.git@gh-issue-fix -# sphinx-toolbox==3.4.0 +sphinx-toolbox==3.8.2 nbsphinx==0.9.1 pandoc==1.1.0 pygments==2.15.0