diff --git a/docs/bundledplugins/logging.rst b/docs/bundledplugins/logging.rst index 0fccc9e1a..67e0a923e 100644 --- a/docs/bundledplugins/logging.rst +++ b/docs/bundledplugins/logging.rst @@ -8,7 +8,7 @@ The OctoPrint Logging plugin comes bundled with OctoPrint starting with version It implements the log management functionality that was formerly part of the core application and adds features to configure logging levels for sub modules through the included settings dialog. -.. _fig-bundledplugins-pluginmanager-mainscreen: +.. _fig-bundledplugins-logging-settings: .. figure:: ../images/bundledplugins-logging-settings.png :align: center :alt: Logging plugin @@ -34,7 +34,7 @@ Retrieve a list of available log files Retrieve information regarding all log files currently available and regarding the disk space still available in the system on the location the log files are being stored. - Returns a :ref:`Logfile Retrieve response `. + Returns a :ref:`Logfile Retrieve response `. **Example** diff --git a/docs/plugins/hooks.rst b/docs/plugins/hooks.rst index f9c8d7617..6a397fe31 100644 --- a/docs/plugins/hooks.rst +++ b/docs/plugins/hooks.rst @@ -454,7 +454,7 @@ This describes actually four hooks: the logger ``octoprint.util.comm.command_phases`` to ``DEBUG``, connect to a printer (real or virtual) and take a look at your ``octoprint.log`` during serial traffic: - .. code-block:: plain + .. code-block:: none 2018-02-16 18:20:31,213 - octoprint.util.comm.command_phases - DEBUG - phase: queuing | command: T0 | gcode: T | tags: [ api:printer.command, source:api, trigger:printer.commands ] 2018-02-16 18:20:31,216 - octoprint.util.comm.command_phases - DEBUG - phase: queued | command: M117 Before T! | gcode: M117 | tags: [ api:printer.command, phase:queuing, plugin:multi_gcode_test, source:api, source:rewrite, trigger:printer.commands ] @@ -515,7 +515,7 @@ This describes actually four hooks: * A 2-tuple consisting of a rewritten version of the ``cmd`` and the ``cmd_type``, e.g. ``return "M105", "temperature_poll"``. Handlers which wish to rewrite both the command and the command type should use this option. * A 3-tuple consisting of a rewritten version of the ``cmd``, the ``cmd_type`` and any additional ``tags`` you might - want to attach to the lifecycle of the command, e.g. ``return "M105", "temperature_poll", "my_custom_tag" + want to attach to the lifecycle of the command in a set, e.g. ``return "M105", "temperature_poll", {"my_custom_tag"}`` * **"queuing" phase only**: A list of any of the above to allow for expanding one command into many. The following example shows how any queued command could be turned into a sequence of a temperature query, line number reset, display of the ``gcode`` on the printer's display and finally the actual command (this example @@ -558,7 +558,7 @@ This describes actually four hooks: :param str gcode: Parsed GCODE command, e.g. ``G0`` or ``M110``, may also be None if no known command could be parsed :param str subcode: Parsed subcode of the GCODE command, e.g. ``1`` for ``M80.1``. Will be None if no subcode was provided or no command could be parsed. - :param set tags: Tags attached to the + :param set tags: Tags attached to the command :return: None, 1-tuple, 2-tuple or string, see the description above for details. .. _sec-plugins-hook-comm-protocol-gcode-received: