Skip to content

Commit 43e45ef

Browse files
committed
feat: add conditional logic for serving compiled themes
1 parent 495a875 commit 43e45ef

File tree

4 files changed

+6
-9
lines changed

4 files changed

+6
-9
lines changed

plugins/tutor-contrib-paragon/tutorparagon/patches/caddyfile-lms

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
1+
{% if PARAGON_SERVE_COMPILED_THEMES %}
22
# Tutor Paragon Caddyfile configuration for serving Paragon static files
33
handle_path /{{ PARAGON_STATIC_URL_PREFIX }}* {
44
@mincss {
@@ -10,3 +10,4 @@ handle_path /{{ PARAGON_STATIC_URL_PREFIX }}* {
1010
reverse_proxy paragon-statics:80
1111
}
1212
}
13+
{% endif %}

plugins/tutor-contrib-paragon/tutorparagon/patches/local-docker-compose-services

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{% if PARAGON_SERVE_COMPILED_THEMES %}
12
# Paragon Builder
23
paragon-statics:
34
image: {{ PARAGON_STATIC_SERVER_IMAGE }}
@@ -7,3 +8,4 @@ paragon-statics:
78
{% endif %}
89
volumes:
910
- "./../../{{ PARAGON_COMPILED_THEMES_PATH }}:/usr/share/nginx/html:ro"
11+
{% endif %}

plugins/tutor-contrib-paragon/tutorparagon/patches/openedx-lms-development-settings

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
{% if not PARAGON_ENABLED_THEMES %}
2-
{% set PARAGON_ENABLED_THEMES = ['light'] %}
3-
{% endif %}
4-
1+
{% if not PARAGON_ENABLED_THEMES %}{% set PARAGON_ENABLED_THEMES = ['light'] %}{% endif %}
52
{% set PROTOCOL = 'https' if ENABLE_HTTPS else 'http' %}
63
{% set BASE_URL = PROTOCOL ~ "://" ~ "localhost" ~ ":" ~ PARAGON_STATIC_SERVER_PORT ~ "/" %}
74

plugins/tutor-contrib-paragon/tutorparagon/patches/openedx-lms-production-settings

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
{% if not PARAGON_ENABLED_THEMES %}
2-
{% set PARAGON_ENABLED_THEMES = ['light'] %}
3-
{% endif %}
4-
1+
{% if not PARAGON_ENABLED_THEMES %}{% set PARAGON_ENABLED_THEMES = ['light'] %}{% endif %}
52
{% set PROTOCOL = 'https' if ENABLE_HTTPS else 'http' %}
63
{% set BASE_URL = PROTOCOL ~ "://" ~ LMS_HOST ~ "/" ~ PARAGON_STATIC_URL_PREFIX %}
74

0 commit comments

Comments
 (0)