Commit 43e2f6f8 by Feanil Patel

Merge pull request #2676 from fghaas/comprehensive-theme

Support externally hosted comprehensive themes
parents 312ff0a9 48fd5516
...@@ -51,3 +51,4 @@ Steven Burch <stv@stanford.edu> ...@@ -51,3 +51,4 @@ Steven Burch <stv@stanford.edu>
Dan Powell <dan@abakas.com> Dan Powell <dan@abakas.com>
Omar Al-Ithawi <oithawi@qrf.org> Omar Al-Ithawi <oithawi@qrf.org>
David Adams<dcadams@stanford.edu> David Adams<dcadams@stanford.edu>
Florian Haas <florian@hastexo.com>
...@@ -537,7 +537,14 @@ EDXAPP_PROCTORING_BACKEND_PROVIDER: ...@@ -537,7 +537,14 @@ EDXAPP_PROCTORING_BACKEND_PROVIDER:
options: {} options: {}
# Comprehensive Theming # Comprehensive Theming
# Full path to the comprehensive theme directory
EDXAPP_COMPREHENSIVE_THEME_DIR: "" EDXAPP_COMPREHENSIVE_THEME_DIR: ""
# Git repo for the comprehensive theme (if using a comprehensive theme
# other than the ones bundled with edx/platform)
EDXAPP_COMPREHENSIVE_THEME_SOURCE_REPO: ""
# Git branch, tag, or revision to check out from
# EDXAPP_COMPREHENSIVE_THEME_SOURCE_REPO
EDXAPP_COMPREHENSIVE_THEME_VERSION: ""
# SAML KEYS # SAML KEYS
EDXAPP_SOCIAL_AUTH_SAML_SP_PRIVATE_KEY: '' EDXAPP_SOCIAL_AUTH_SAML_SP_PRIVATE_KEY: ''
......
...@@ -83,7 +83,13 @@ ...@@ -83,7 +83,13 @@
- install - install
- install:code - install:code
- name: checkout theme # edX supports two theme types, Comprehensive themes and the older
# Stanford-style themes. They are mutually exclusive.
#
# To enable Stanford theming, point edxapp_theme_source_repo
# (yes, lowercase) to a Stanford-style theme and set
# edxapp_theme_name (again, lowercase) to its name.
- name: checkout Stanford-style theme
git: > git: >
dest={{ edxapp_app_dir }}/themes/{{ edxapp_theme_name }} dest={{ edxapp_app_dir }}/themes/{{ edxapp_theme_name }}
repo={{ edxapp_theme_source_repo }} repo={{ edxapp_theme_source_repo }}
...@@ -98,6 +104,25 @@ ...@@ -98,6 +104,25 @@
- install - install
- install:code - install:code
# To enable Comprehensive theming, point
# EDXAPP_COMPREHENSIVE_THEME_SOURCE_REPO to your theme repo, and set
# EDXAPP_COMPREHENSIVE_THEME_DIR to the directory you want to check
# out to.
- name: checkout comprehensive theme
git: >
dest={{ EDXAPP_COMPREHENSIVE_THEME_DIR }}
repo={{ EDXAPP_COMPREHENSIVE_THEME_SOURCE_REPO }}
version={{ EDXAPP_COMPREHENSIVE_THEME_VERSION }}
accept_hostkey=yes
when: EDXAPP_COMPREHENSIVE_THEME_SOURCE_REPO != ''
sudo_user: "{{ edxapp_user }}"
environment:
GIT_SSH: "{{ edxapp_git_ssh }}"
register: edxapp_theme_checkout
tags:
- install
- install:code
- name: Stat each requirements file with Github URLs to ensure it exists - name: Stat each requirements file with Github URLs to ensure it exists
stat: path="{{ item }}" stat: path="{{ item }}"
with_items: "{{ edxapp_requirements_with_github_urls }}" with_items: "{{ edxapp_requirements_with_github_urls }}"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment