From 57ffd11cfc55e4640b224a1f3826a7e9717b8f5f Mon Sep 17 00:00:00 2001 From: hinakhadim Date: Tue, 2 Apr 2024 10:19:01 +0500 Subject: [PATCH] docs: add override style section in troubleshooting section --- README.rst | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/README.rst b/README.rst index a41bd26ef..e0d1f0752 100644 --- a/README.rst +++ b/README.rst @@ -105,6 +105,21 @@ This new template will then be used to render the /donate url. Troubleshooting --------------- +Can't override styles using Indigo Theme for MFEs +------------------------------------------------- + +The indigo theme can’t override styles for MFEs directly. It overrides the styles for edx-platform. In case of MFEs, `@edx/brand `_ is used to override the styles. Customize the ``@edx/brand`` package to your preferences and include this customized package in `tutor-indigo` plugin. In this way, styles can be overidden:: + + + hooks.Filters.ENV_PATCHES.add_item(( + "mfe-dockerfile-post-npm-install", + """ + RUN npm install '@edx/brand@npm:custom-brand-package' + RUN npm install '@edx/brand@git+https://github.com/username/brand-openedx.git#custom-branch' + """, + )) + + This Tutor plugin is maintained by Hina Khadim from `Edly `__. Community support is available from the official `Open edX forum `__. Do you need help with this plugin? See the `troubleshooting `__ section from the Tutor documentation.