moodle-an-hochschulen / moodle-theme_boost_union

Theme Boost Union is an enhanced child theme of Boost which is intended, on the one hand, to make Boost simply more configurable and, on the other hand, to provide helpful additional features for the daily Moodle operation of admins, teachers and students.
GNU General Public License v3.0
65 stars 58 forks source link

Feature: Add external SCSS code sources #41

Closed abias closed 5 months ago

abias commented 2 years ago

For running multiple Moodle instances with Boost Union who all share a common set of Custom SCSS code, I would like to propose to add the possibility for admins to configure external SCSS code sources. This external SCSS code source will then point to a SCSS file somewhere on the web, for example on Github. It will be fetched and integrated into the SCSS compilation process before the RAW SCSS code from within the Boost Union configuration.

abias commented 2 years ago

Addition: When this feature is implemented, it should also ship with a new scheduled task which re-loads the external SCSS and purges the theme cache on a regular basis. This is relevant as Moodle does not know when the external SCSS code source changes.

Even better, the theme could also offer a webhook which can be used to let the external SCSS code source (like Github) notify the theme and let it schedule the purging of the cache.

wiebkemueller-hsh commented 1 year ago

@madamadami wouldn't this also solve https://github.com/moodle-an-hochschulen/moodle-theme_boost_union/issues/366 ?

abias commented 1 year ago

I add myself as additional assignee as a colleague of me has already implemented a proof of concept for this issue on MoodleMootDACH this year. We will try to polish the code and submit a PR.