Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
configuration
Commits
43e2f6f8
Commit
43e2f6f8
authored
Feb 12, 2016
by
Feanil Patel
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2676 from fghaas/comprehensive-theme
Support externally hosted comprehensive themes
parents
312ff0a9
48fd5516
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
34 additions
and
1 deletions
+34
-1
AUTHORS
+1
-0
playbooks/roles/edxapp/defaults/main.yml
+7
-0
playbooks/roles/edxapp/tasks/deploy.yml
+26
-1
No files found.
AUTHORS
View file @
43e2f6f8
...
...
@@ -51,3 +51,4 @@ Steven Burch <stv@stanford.edu>
Dan Powell <dan@abakas.com>
Omar Al-Ithawi <oithawi@qrf.org>
David Adams<dcadams@stanford.edu>
Florian Haas <florian@hastexo.com>
playbooks/roles/edxapp/defaults/main.yml
View file @
43e2f6f8
...
...
@@ -537,7 +537,14 @@ EDXAPP_PROCTORING_BACKEND_PROVIDER:
options
:
{}
# Comprehensive Theming
# Full path to the comprehensive theme directory
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
EDXAPP_SOCIAL_AUTH_SAML_SP_PRIVATE_KEY
:
'
'
...
...
playbooks/roles/edxapp/tasks/deploy.yml
View file @
43e2f6f8
...
...
@@ -83,7 +83,13 @@
-
install
-
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
:
>
dest={{ edxapp_app_dir }}/themes/{{ edxapp_theme_name }}
repo={{ edxapp_theme_source_repo }}
...
...
@@ -98,6 +104,25 @@
-
install
-
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
stat
:
path="{{ item }}"
with_items
:
"
{{
edxapp_requirements_with_github_urls
}}"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment