From edb4d0fe04e874d74c661bc230f4b674e4fe6033 Mon Sep 17 00:00:00 2001 From: Daniele Forsi Date: Sun, 30 Jul 2017 13:23:31 +0200 Subject: [PATCH] Fix warnings about duplicated names in rst files Replacing a single underscore (which creates a named target) with a double underscore creates an anonymous target. Fixes: /home/daniele/OctoPrint/docs/bundledplugins/cura.rst:4: WARNING: Duplicate explicit target name: "here". /home/daniele/OctoPrint/docs/plugins/hooks.rst:370: WARNING: Invalid caption: /home/daniele/OctoPrint/docs/plugins/hooks.rst:4: (INFO/1) Duplicate explicit target name: "custom_action_command.py". --- docs/bundledplugins/cura.rst | 4 ++-- docs/plugins/hooks.rst | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/bundledplugins/cura.rst b/docs/bundledplugins/cura.rst index 30370e5b..aac96397 100644 --- a/docs/bundledplugins/cura.rst +++ b/docs/bundledplugins/cura.rst @@ -45,7 +45,7 @@ Installing CuraEngine You'll need a build of ``legacy`` branch of `CuraEngine `_ in order to be able to use the Cura OctoPrint plugin. You can find the ``legacy`` branch -`here `_. +`here `__. If you previously used the `old variant of the Cura integration `_, you probably still have a fully functional binary lying around in the @@ -60,7 +60,7 @@ Compiling for Raspbian .. note:: A binary of CuraEngine 15.04.06 precompiled on Raspbian Jessie Lite 2016-03-18 is available - `here `_. Don't forget to make it + `here `__. Don't forget to make it executable after copying it to your preferred destination on your Pi (suggestion: ``/usr/local/bin``) with ``chmod +x cura_engine``. Use at your own risk. diff --git a/docs/plugins/hooks.rst b/docs/plugins/hooks.rst index e1009b41..5e5b9c8f 100644 --- a/docs/plugins/hooks.rst +++ b/docs/plugins/hooks.rst @@ -79,7 +79,7 @@ property instead, manually instantiate your implementation instance and then add .. onlineinclude:: https://raw.githubusercontent.com/OctoPrint/Plugin-Examples/master/custom_action_command.py :linenos: :tab-width: 4 - :caption: `custom_action_command.py `_ + :caption: `custom_action_command.py `__ :name: sec-plugin-concepts-hooks-example .. _sec-plugins-hooks-ordering: @@ -370,7 +370,7 @@ octoprint.comm.protocol.action .. onlineinclude:: https://raw.githubusercontent.com/OctoPrint/Plugin-Examples/master/custom_action_command.py :linenos: :tab-width: 4 - :caption: `custom_action_command.py `_ + :caption: `custom_action_command.py `__ :param object comm_instance: The :class:`~octoprint.util.comm.MachineCom` instance which triggered the hook. :param str line: The complete line as received from the printer, format ``// action:``