From 0779b8df167e2c9bd0ae57831ce67ecfe969c1c8 Mon Sep 17 00:00:00 2001 From: Laurens Valk Date: Sun, 14 Jun 2020 15:39:04 +0200 Subject: [PATCH] doc/pupdevices: workaround to show class attribute We are using an older version of Sphinx which does not support autodoc of inherited class attributes yet. This works around it by just referencing the EV3 attribute, which does work. --- doc/api/pupdevices.rst | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/doc/api/pupdevices.rst b/doc/api/pupdevices.rst index c2a0d10..0cb5bc3 100644 --- a/doc/api/pupdevices.rst +++ b/doc/api/pupdevices.rst @@ -82,8 +82,12 @@ Motors with Rotation Sensors .. automethod:: pybricks.pupdevices.Motor.track_target - .. autoattribute:: pybricks.pupdevices.Motor.control + .. autoattribute:: pybricks.ev3devices.Motor.control :annotation: + :noindex: + +.. FIXME: above should point to pupdevices but inherited class attributes + do not work yet (https://github.com/sphinx-doc/sphinx/issues/741). Color and Distance Sensor