diff --git a/README.rst b/README.rst index edb1a6f8..0a1a9c51 100644 --- a/README.rst +++ b/README.rst @@ -156,7 +156,7 @@ Disabling individual MFEs To disable an existing MFE, remove the corresponding entry from the ``MFE_APPS`` filter. For instance, to disable some of the MFEs that ship with this plugin: -.. code-block::python +.. code-block:: python @MFE_APPS.add() def _remove_some_my_mfe(mfes): @@ -192,7 +192,7 @@ Customising MFEs To change the MFEs logos from the default to your own logos, override the corresponding settings in the MFEs environment using patches `mfe-lms-production-settings` and `mfe-lms-development-settings`. For example, using the following plugin: -.. code-block::python +.. code-block:: python from tutor import hooks @@ -225,7 +225,7 @@ If patches are the same in development and production, they can be replaced by a To install custom components for the MFEs, such as the `header `_ and `footer `_, override the components by adding a patch to ``mfe-dockerfile-post-npm-install`` in your plugin: -.. code-block::python +.. code-block:: python from tutor import hooks @@ -243,7 +243,7 @@ To install custom components for the MFEs, such as the `header `_ package: -.. code-block::python +.. code-block:: python hooks.Filters.ENV_PATCHES.add_item( ( @@ -256,7 +256,7 @@ The same applies to installing a custom `brand `_, you might also need to provide a token for your registry, which can be done with an additional ``npm config set`` command as well: -.. code-block::python +.. code-block:: python from tutor import hooks @@ -404,7 +404,7 @@ Template patch catalog This is the list of all patches used across tutor-mfe (outside of any plugin). Alternatively, you can search for patches in tutor-mfe templates by grepping the source code: -.. code-block::python +.. code-block:: python git clone https://github.com/overhangio/tutor-mfe cd tutor-mfe