api: fix relative links due to package

This commit is contained in:
Laurens Valk
2019-06-11 20:13:38 +02:00
parent f6eb7674a9
commit 12834ffc73
4 changed files with 9 additions and 9 deletions
+5 -5
View File
@@ -111,7 +111,7 @@ class Motor():
Arguments:
stop_type (Stop): Whether to coast, brake, or hold (*Default*:
:class:`Stop.COAST <parameters.Stop>`).
:class:`Stop.COAST <.parameters.Stop>`).
"""
pass
@@ -144,7 +144,7 @@ class Motor():
time (:ref:`time`): Duration of the maneuver.
stop_type (Stop): Whether to coast, brake, or hold after coming to
a standstill (*Default*:
:class:`Stop.COAST <parameters.Stop>`).
:class:`Stop.COAST <.parameters.Stop>`).
wait (bool): Wait for the maneuver to complete before continuing
with the rest of the program (*Default*: ``True``).
This means that your program waits for the
@@ -169,7 +169,7 @@ class Motor():
rotate.
stop_type (Stop): Whether to coast, brake, or hold after coming to
a standstill (*Default*:
:class:`Stop.COAST <parameters.Stop>`).
:class:`Stop.COAST <.parameters.Stop>`).
wait (bool): Wait for the maneuver to complete before continuing
with the rest of the program (*Default*: ``True``).
This means that your program waits until the motor has
@@ -201,7 +201,7 @@ class Motor():
angle.
stop_type (Stop): Whether to coast, brake, or hold after coming to
a standstill (*Default*:
:class:`Stop.COAST <parameters.Stop>`).
:class:`Stop.COAST <.parameters.Stop>`).
wait (bool): Wait for the maneuver to complete before continuing
with the rest of the program (*Default*: ``True``).
This means that your program waits until the motor
@@ -224,7 +224,7 @@ class Motor():
speed (:ref:`speed`): Speed of the motor.
stop_type (Stop): Whether to coast, brake, or hold after coming to
a standstill (*Default*:
:class:`Stop.COAST <parameters.Stop>`).
:class:`Stop.COAST <.parameters.Stop>`).
duty_limit (:ref:`percentage`): Relative torque limit. This limit
works just like
:meth:`.set_dc_settings`, but in
+2 -2
View File
@@ -70,7 +70,7 @@ class ColorSensor():
:returns:
``Color.BLACK``, ``Color.BLUE``, ``Color.GREEN``, ``Color.YELLOW``,
``Color.RED``, ``Color.WHITE``, ``Color.BROWN`` or ``None``.
:rtype: :class:`Color <parameters.Color>`, or ``None`` if no color is
:rtype: :class:`Color <.parameters.Color>`, or ``None`` if no color is
detected.
"""
@@ -157,7 +157,7 @@ class InfraredSensor():
channel (int): Channel number of the remote.
:returns: List of pressed buttons on the remote on selected channel.
:rtype: List of :class:`Button <parameters.Button>`
:rtype: List of :class:`Button <.parameters.Button>`
"""
pass
+1 -1
View File
@@ -35,7 +35,7 @@ class ColorDistanceSensor():
:returns:
``Color.BLACK``, ``Color.BLUE``, ``Color.GREEN``, ``Color.YELLOW``,
``Color.RED``, ``Color.WHITE``, or ``None``.
:rtype: :class:`Color <parameters.Color>`, or ``None`` if no color is
:rtype: :class:`Color <.parameters.Color>`, or ``None`` if no color is
detected.
"""
pass
+1 -1
View File
@@ -48,6 +48,6 @@ class DriveBase():
Arguments:
stop_type (Stop): Whether to coast, brake, or hold (*Default*:
:class:`Stop.COAST <parameters.Stop>`).
:class:`Stop.COAST <.parameters.Stop>`).
"""
pass