From 3beb1f0734f8e389123a6c846041c9d4febccf16 Mon Sep 17 00:00:00 2001 From: Matthias Mair Date: Wed, 19 Jan 2022 00:47:43 +0100 Subject: [PATCH] move annotation markers --- docs/extend/how_to_plugin.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/docs/extend/how_to_plugin.md b/docs/extend/how_to_plugin.md index a991acb..86249a9 100644 --- a/docs/extend/how_to_plugin.md +++ b/docs/extend/how_to_plugin.md @@ -50,16 +50,19 @@ from plugin.mixins import APICallMixin, SettingsMixin, ScheduleMixin, BarcodeMix ### A simple example This example adds a new action under `/api/action/sample` using the ActionMixin. ``` py -# -*- coding: utf-8 -*- # (1) -"""sample implementation for ActionPlugin""" # (2) +# -*- coding: utf-8 -*- +# (1) +"""sample implementation for ActionPlugin""" +# (2) from plugin import IntegrationPluginBase from plugin.mixins import ActionMixin class SampleActionPlugin(ActionMixin, IntegrationPluginBase): """ - Use docstrings for everything... pls # (2) + Use docstrings for everything... pls """ + # (2) PLUGIN_NAME = "SampleActionPlugin" ACTION_NAME = "sample"