Code Monkey home page Code Monkey logo

custom's Introduction

Add the following lines to /edx/app/edx_ansible/server-vars.yml

cd /edx/app/edx_ansible

cat server-vars.yml 

edxapp_use_custom_theme: true
edxapp_theme_name: 'cloudgenius'
edxapp_theme_source_repo: 'https://github.com/beacloudgenius/cloudgenius.git'
edxapp_theme_version: 'HEAD'
#If the repository is private also add
edxapp_git_identity: '/edx/app/edxapp/tmp_id_rsa'
EDXAPP_LOCAL_GIT_IDENTITY: '/edx/app/edxapp/.ssh/id_rsa'
EDXAPP_USE_GIT_IDENTITY: true
sudo chown edx-ansible:edx-ansible server-vars.yml 

Make sure to keep file permissions for server-vars.yml assigned to edx-ansible:edx-ansible

sudo chmod edx-ansible:edx-ansible /edx/app/edx_ansible/server-vars.yml

Compile assets manually

To compile javascript and css outside of the update script run the following commands:

sudo -H -u edxapp bash
source /edx/app/edxapp/edxapp_env
cd /edx/app/edxapp/edx-platform
paver update_assets cms --settings=aws
paver update_assets lms --settings=aws

Re-run the provisioning scripts:

sudo /edx/bin/update edx-platform release    

read more https://github.com/edx/edx-platform/wiki/Stanford-Theming and https://github.com/IONISx/edx-theme

If you use a custom theme like cloudgenius, you will need to copy the static_templates directory like this:

sudo cp /edx/app/edxapp/edx-platform/lms/templates/static_templates /edx/app/edxapp/themes/cloudgenius/templates

THEN, you will need to append "theme-" to the name of every file within the static_templates directory like this:

sudo mv about.html theme-about.html

This should resolve the "THERE HAS BEEN A 500 ERROR ON THE XXX SERVERS" error on the navigation links.

Overview

Alt text

Theme Authoring

To customize your theme:

  • Fork this repository.
  • Clone it into the theme directory next to your edx-platform directory and rename the theme directory to your new theme's name.
  • Upload your own image assets.
  • Edit the .scss file in static/sass/ and rename the file with your theme's name.
  • Edit the lms.envs.json file in edx-platform and set 'USE_CUSTOM_THEME' to true, and 'THEME_NAME' to your theme's name.

custom's People

Contributors

lvnilesh avatar makeher avatar madmakerstem avatar

Watchers

Owen Brasier avatar  avatar

Forkers

thisisoguz

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.