theodi / ODI-eLearning

The eLearning repo for UKODI
GNU General Public License v3.0
3 stars 9 forks source link

ODI eLearning

WARNING: The setup of this repository is not like a normal GitHub repository

In order to build each module you require:

  1. The master branch
  2. A selected module branch

This means that you need two Git trackers in the same directory

Setup

Modules

  1. Clone the repository and then rename the directory from ODI-eLearning to ODI-modules
  2. Change into this directory (cd ODI-modules)
  3. mv .git .module
  4. git --git-dir=.module checkout module1

Master

  1. Change directory to the one above the modules one.
  2. Clone the repository as a single master branch (git clone --branch master --single-branch)
  3. Change directory into this new clone (cd ODI-eLearning)
  4. mv .git .master
  5. git --git-dir=.master checkout master

Merge the two

  1. From the master directory (ODI-eLearning)
  2. mv ../ODI-modules/.module .
  3. mv ../ODI-modules/src/course src
  4. mv ../ODI-modules/src/theme/default/less/* src/theme/default/less/

Add shortcut git commands (Linux)

  1. echo "alias gitmodule='cp .gitignore_module .gitignore && git --git-dir=.module'" >> ~/.bashrc
  2. echo "alias gitmaster='cp .gitignore_master .gitignore && git --git-dir=.master'" >> ~/.bashrc
  3. bash

Add shortcut git commands (OS X)

  1. echo "alias gitmodule='cp .gitignore_module .gitignore && git --git-dir=.module'" >> ~/.bash_profile
  2. echo "alias gitmaster='cp .gitignore_master .gitignore && git --git-dir=.master'" >> ~/.bash_profile
  3. bash

Using

You MUST be in the top level directory of the repository to execute any git commands now!

You MUST now only modify the master branch with the gitmaster command rather than git, e.g. gitmaster status

The modules branch can be modified using the gitmodule command, e.g. gitmodule checkout module2

Pushing changes

It is HIGHLY advised that changes to branches be push individually to each branch and not all at the same time.

Build scripts

The build scripts will build individidual modules or all modules into the modules directory.

Note that you must be in the top level directory of the repository in order to build any modules.

Building individual modules

While this can still be done with the grunt build command it is recommended that the build scripts are used.

Build odi style module

Change the module number and language for different languages

Build eu style module

Change the module number and language for different languages

Building all 13 modules

WARNING: You must be up to date and have commited all changes before attempting to build all modules!

Building all modules in ODI style

Change the language for different language builds

Building all modules in EU style

Change the language for different language builds

Viewing and exporting modules

All modules are built into the modules/ dirctory.

At the top level is the ODI build with the different languages.

There is also an eu directory for the eu-theme modules.

Each module can be compressed as a scorm package or be used natively using browser local storage to track progress.