Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: CMS render scss styling in tutor env #70

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- [Bugfix] *.scss files in cms directory were not rendered in the tutor environment because they are stored in a "partials" subdirectory. (by @Talha-Rizwan)
8 changes: 6 additions & 2 deletions tutorindigo/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,14 @@
)

# Force the rendering of scss files, even though they are included in a "partials" directory
hooks.Filters.ENV_PATTERNS_INCLUDE.add_item(
r"indigo/lms/static/sass/partials/lms/theme/"
hooks.Filters.ENV_PATTERNS_INCLUDE.add_items(
[
r"indigo/lms/static/sass/partials/lms/theme/",
r"indigo/cms/static/sass/partials/cms/theme/",
]
)


# init script: set theme automatically
with open(
os.path.join(
Expand Down
Loading