From 16560462fa279a37727a7679ee429b0dc9a85807 Mon Sep 17 00:00:00 2001 From: nad Date: Tue, 17 Mar 2020 18:42:53 +0100 Subject: [PATCH] Minor fixes to generate documentation correctly --- docs/actions.rst | 2 +- docs/conf.py | 2 +- ereuse_devicehub/resources/device/schemas.py | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/actions.rst b/docs/actions.rst index 45b19b7e..a937f2b6 100644 --- a/docs/actions.rst +++ b/docs/actions.rst @@ -63,4 +63,4 @@ Schema ****** .. dhlist:: - :module: ereuse_devicehub.resources.event.schemas + :module: ereuse_devicehub.resources.action.schemas diff --git a/docs/conf.py b/docs/conf.py index d4cc7ab9..a1b4e42e 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -33,7 +33,7 @@ from ereuse_devicehub.marshmallow import NestedOn from ereuse_devicehub.resources.schemas import Thing project = 'Devicehub' -copyright = '2018, eReuse.org team' +copyright = '2020, eReuse.org team' author = 'eReuse.org team' # The short X.Y version diff --git a/ereuse_devicehub/resources/device/schemas.py b/ereuse_devicehub/resources/device/schemas.py index 69098d6f..16f2acce 100644 --- a/ereuse_devicehub/resources/device/schemas.py +++ b/ereuse_devicehub/resources/device/schemas.py @@ -312,7 +312,7 @@ class Display(DisplayMixin, Component): class Battery(Component): - __doc__ = m.Battery + __doc__ = m.Battery.__doc__ wireless = Boolean(description=m.Battery.wireless.comment) technology = EnumField(enums.BatteryTechnology, description=m.Battery.technology.comment) @@ -320,7 +320,7 @@ class Battery(Component): class Camera(Component): - __doc__ = m.Camera + __doc__ = m.Camera.__doc__ focal_length = Integer(data_key='focalLength') video_height = Integer(data_key='videoHeight')