From f042ca9b9024b9e19254b2c9dcc13efaa6f2fdaa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Behmo?= Date: Tue, 16 May 2023 12:03:38 +0200 Subject: [PATCH] docs: fix ENV_PATCHES example --- docs/tutorials/plugin.rst | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/tutorials/plugin.rst b/docs/tutorials/plugin.rst index 3970370..3b50448 100644 --- a/docs/tutorials/plugin.rst +++ b/docs/tutorials/plugin.rst @@ -71,8 +71,10 @@ This imports the ``hooks`` module from Tutor, which grants us access to ``hooks. :: hooks.Filters.ENV_PATCHES.add_item( - , - + ( + , + + ) ) This means "add ```` to the ``{{ patch("") }}`` statement, thanks to the :py:data:`tutor.hooks.Filters.ENV_PATCHES` filter". In our case, we want to modify the LMS settings, both in production and development. The right patch for that is :patch:`openedx-lms-common-settings`. We add one item, which is a single Python-formatted line of code::