diff --git a/docs/api/languages.rst b/docs/api/languages.rst index 5fe8ad57..ecb83102 100644 --- a/docs/api/languages.rst +++ b/docs/api/languages.rst @@ -39,8 +39,7 @@ Retrieve installed language packs "_core": { "identifier": "_core", "name": "Core", - "languages": [ - ] + "languages": [] }, "some_plugin": { "identifier": "some_plugin", @@ -122,8 +121,7 @@ Delete a language pack "_core": { "identifier": "_core", "name": "Core", - "languages": [ - ] + "languages": [] }, "some_plugin": { "identifier": "some_plugin", diff --git a/docs/bundledplugins/pluginmanager.rst b/docs/bundledplugins/pluginmanager.rst index 56c5586c..dacb3f8c 100644 --- a/docs/bundledplugins/pluginmanager.rst +++ b/docs/bundledplugins/pluginmanager.rst @@ -94,23 +94,23 @@ octoprint.plugin.pluginmanager.reconnect_hooks .. py:function:: reconnect_hooks_hook(*args, **kwargs) -Returns additional hooks defined by the plugin for which the plugin manager -should display the "You should reconnect to your printer" message on plugin -install/uninstall/enabling/disabling. + Returns additional hooks defined by the plugin for which the plugin manager + should display the "You should reconnect to your printer" message on plugin + install/uninstall/enabling/disabling. -Handlers should return a Python list containing the affected hook names. + Handlers should return a Python list containing the affected hook names. -**Example** + **Example** -.. code-block:: python + .. code-block:: python - def reconnect_hooks_hook(*args, **kwargs): - return ["octoprint.plugin.exampleplugin.some_custom_hook", - "octoprint.plugin.exampleplugin.some_other_custom_hook"] + def reconnect_hooks_hook(*args, **kwargs): + return ["octoprint.plugin.exampleplugin.some_custom_hook", + "octoprint.plugin.exampleplugin.some_other_custom_hook"] - __plugin_hooks__ = { - "octoprint.plugin.pluginmanager.reconnect_hooks": reconnect_hooks_hook - } + __plugin_hooks__ = { + "octoprint.plugin.pluginmanager.reconnect_hooks": reconnect_hooks_hook + } .. _sec-bundledplugins-pluginmanager-sourcecode: