From 95ab4586776580c9cecb5c1c0f7e1ef119ceb555 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Wed, 12 Aug 2020 13:16:07 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20Fix=20docs=20build?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/features/accesscontrol.rst | 2 +- docs/features/custom_controls.rst | 8 ++++---- docs/sphinxext/codeblockext.py | 3 +-- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/docs/features/accesscontrol.rst b/docs/features/accesscontrol.rst index 4a85e65b7..e3f8f03fd 100644 --- a/docs/features/accesscontrol.rst +++ b/docs/features/accesscontrol.rst @@ -84,7 +84,7 @@ possible to re-run it by editing ``config.yaml`` [#f1]_ and setting ``firstRun`` in the ``server`` section and ``enabled`` in the ``accessControl`` section to ``true``: -.. code-block-ext:: yaml +.. code-block:: yaml accessControl: enabled: true diff --git a/docs/features/custom_controls.rst b/docs/features/custom_controls.rst index fa69cc435..860705156 100644 --- a/docs/features/custom_controls.rst +++ b/docs/features/custom_controls.rst @@ -24,7 +24,7 @@ The following example defines a control for enabling the cooling fan with a vari feedback evaluation for the result of the M114 "Get Position" gcode inside a section named "Reporting" and finally a GCODE script including user input. -.. code-block-ext:: yaml +.. code-block:: yaml controls: - name: Fan @@ -180,7 +180,7 @@ Controls additional input fields. ``command``/``commands`` may contain placeholders to be replaced by the values obtained from the user for the defined input fields: - .. code-block-ext:: yaml + .. code-block:: yaml name: Enable Fan command: M106 S%(speed)s @@ -241,7 +241,7 @@ Examples Parameterized GCODE Script .......................... -.. code-block-ext:: yaml +.. code-block:: yaml :caption: Control definition in ~/.octoprint/config.yaml :name: code-features-custom_controls-example-gcode_script-config_yaml @@ -256,7 +256,7 @@ Parameterized GCODE Script min: 1 step: 1 -.. code-block-ext:: jinja +.. code-block:: jinja :caption: ~/.octoprint/scripts/gcode/custom/dance.gco :name: code-features-custom_controls-example-gcode_script-dance_gco diff --git a/docs/sphinxext/codeblockext.py b/docs/sphinxext/codeblockext.py index 69e063d15..e03c66f53 100644 --- a/docs/sphinxext/codeblockext.py +++ b/docs/sphinxext/codeblockext.py @@ -205,8 +205,7 @@ class PygmentsBridgeExt(object): with whitespace(sphinx.highlighting.lexers["none"]) as l: hlsource = highlight(source, l, formatter) # /MODIFIED - - return hlsource + return hlsource class whitespace_highlighter(object): """