Skip to content

Commit fc50583

Browse files
minor: Use single backticks for inline command-line instructions
1 parent 1ded399 commit fc50583

File tree

10 files changed

+18
-14
lines changed

10 files changed

+18
-14
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ All notable changes to this project will be documented in this file.
99
- Description: AgileX PiPER
1010
- Description: Robotiq 2F-85 (MJCF V4) (thanks to @peterdavidfagan)
1111

12+
### Fixed
13+
14+
- minor: Use single backticks for inline command-line instructions
15+
1216
## [1.14.0] - 2025-01-07
1317

1418
### Added

examples/load_in_idyntree.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
Load a robot description, specified from the command line, in iDynTree.
99
1010
This example requires iDynTree, which can be installed by
11-
``conda install -c conda-forge idyntree``.
11+
`conda install -c conda-forge idyntree`.
1212
"""
1313

1414
import argparse

examples/load_in_mujoco.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"""
88
Show a robot description, specified from the command line, in MuJoCo.
99
10-
This example requires MuJoCo, which is installed by ``pip install mujoco``.
10+
This example requires MuJoCo, which is installed by `pip install mujoco`.
1111
"""
1212

1313
import argparse

examples/load_in_pinocchio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"""
88
Load a robot description, specified from the command line, in Pinocchio.
99
10-
This example requires Pinocchio, which is installed by ``pip install pin``.
10+
This example requires Pinocchio, installed by e.g. `conda install pinocchio`.
1111
"""
1212

1313
import argparse

examples/load_in_pybullet.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"""
88
Load a robot description, specified from the command line, in PyBullet.
99
10-
This example requires PyBullet, which is installed by ``pip install pybullet``.
10+
This example requires PyBullet, which is installed by `pip install pybullet`.
1111
"""
1212

1313
import argparse

examples/load_in_yourdfpy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"""
88
Load a robot description, specified from the command line, using yourdfpy.
99
10-
This example requires yourdfpy, which is installed by ``pip install yourdfpy``.
10+
This example requires yourdfpy, which is installed by `pip install yourdfpy`.
1111
"""
1212

1313
import argparse

examples/show_in_mujoco.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
"""
88
Show a robot description, specified from the command line, using MuJoCo.
99
10-
This example requires MuJoCo, which is installed by ``pip install mujoco``, and
11-
the MuJoCo viewer installed by ``pip install mujoco-python-viewer``.
10+
This example requires MuJoCo, which is installed by `pip install mujoco`, and
11+
the MuJoCo viewer installed by `pip install mujoco-python-viewer`.
1212
"""
1313

1414
import argparse
@@ -19,7 +19,7 @@
1919
import mujoco_viewer
2020
except ImportError as e:
2121
raise ImportError(
22-
"MuJoCo viewer not found, " "try ``pip install mujoco-python-viewer``"
22+
"MuJoCo viewer not found, " "try `pip install mujoco-python-viewer`"
2323
) from e
2424

2525
from robot_descriptions.loaders.mujoco import load_robot_description

examples/specific_commit.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66

77
"""
88
We can load specific commit to pin the version of any robot description using
9-
the ``commit`` keyword argument. In this example, we load a Universal Robots
10-
UR5e from a specific commit of the MuJoCo Menagerie repository that distributes
11-
it. This example requires MuJoCo, which is installed by ``pip install mujoco``.
9+
the `commit` keyword argument. In this example, we load a Universal Robots UR5e
10+
from a specific commit of the MuJoCo Menagerie repository that distributes it.
11+
This example requires MuJoCo, which is installed by `pip install mujoco`.
1212
1313
See also:
1414
https://github.com/robot-descriptions/robot_descriptions.py/discussions/86

robot_descriptions/_command_line.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,15 +115,15 @@ def show(
115115
if not hasattr(module, "URDF_PATH"):
116116
raise ValueError(
117117
"show command only applies to URDF, check out the "
118-
"``show_in_mujoco.py`` example for MJCF descriptions"
118+
"`show_in_mujoco.py` example for MJCF descriptions"
119119
)
120120

121121
try:
122122
yourdfpy = import_module("yourdfpy")
123123
except ModuleNotFoundError as exc:
124124
raise ValueError(
125125
"This command requires yourdfpy. You can installed it by: "
126-
"``pip install yourdfpy``"
126+
"`pip install yourdfpy`"
127127
) from exc
128128

129129
if collision:

robot_descriptions/loaders/yourdfpy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
except ModuleNotFoundError as e:
1717
raise ModuleNotFoundError(
1818
"This feature requires 'yourdfpy', "
19-
"which can be installed by ``pip install yourdfpy``"
19+
"which can be installed by `pip install yourdfpy`"
2020
) from e
2121

2222

0 commit comments

Comments
 (0)