From c7c6a870b4f57e87b1e60d1ee02a58430ad824b2 Mon Sep 17 00:00:00 2001 From: Yuval Tassa Date: Mon, 17 Oct 2022 05:28:48 -0700 Subject: [PATCH] Fix rendering of example attribute in XMLreference.rst PiperOrigin-RevId: 481614595 Change-Id: Ie582b2ba0b3fc89e3296337b0d43c492ac0d65fa --- doc/XMLreference.rst | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/doc/XMLreference.rst b/doc/XMLreference.rst index da1c7a01..68dfc8bc 100644 --- a/doc/XMLreference.rst +++ b/doc/XMLreference.rst @@ -58,24 +58,25 @@ real(N) An array of N real-valued numbers. If N is omitted it equals 1. | "..." | The attribute is optional. The internal default is given in quotes. | +-------------+--------------------------------------------------------------------------------------------------+ -| -| In the reference documentation below the attribute name is shown in boldface, followed by its data type, followed by - the required/optional status including the internal default if any. For example, the attribute angle is a keyword - attribute whose value can be "radian" or "degree". It is an optional attribute and has internal default "degree". - Therefore it will appear in the reference documentation as + +In the reference documentation below the attribute name is shown in boldface, followed by its data type, followed by the +required/optional status including the internal default if any. For example, the attribute angle is a keyword attribute +whose value can be "radian" or "degree". It is an optional attribute and has internal default "degree". Therefore it +will appear in the reference documentation as :at:`angle`: :at-val:`[radian, degree], "degree"` + |br| .. _Reference: MJCF Reference -------------- -| MJCF files have a unique top-level element :ref:`mujoco `. The next-level elements are referred to as - *sections*. They are all optional. Some sections are merely used for grouping and have no attributes. Sections can be - repeated, to facilitate merging of models via the :ref:`include ` element. -| The *order* of attributes within an element can be arbitrary. The order of child elements within a parent element can - also be arbitrary, with four exceptions: +MJCF files have a unique top-level element :ref:`mujoco `. The next-level elements are referred to as +*sections*. They are all optional. Some sections are merely used for grouping and have no attributes. Sections can be +repeated, to facilitate merging of models via the :ref:`include ` element. The *order* of attributes within an +element can be arbitrary. The order of child elements within a parent element can also be arbitrary, with four +exceptions: - The order of :ref:`joint ` elements within a :ref:`body ` matters because joint transformations are performed in sequence.