diff --git a/README.rst b/README.rst index 84787bca..6ead5527 100644 --- a/README.rst +++ b/README.rst @@ -155,7 +155,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): @@ -197,7 +197,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 @@ -230,7 +230,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 @@ -248,7 +248,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( ( @@ -261,7 +261,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 @@ -409,7 +409,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