Skip to content

steffica72/ODI-eLearning

 
 

Repository files navigation

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 again
  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/adapt-contrib-vanilla/less/* src/theme/adapt-contrib-vanilla/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.

  • gitmaster push -u origin master
  • gitmodule push -u origin moduleX

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

  • ./bin/build-odi module1 en

Change the module number and language for different languages

Build eu style module

  • ./bin/build-eu module1 en

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

  • ./bin/build-odi-all en

Change the language for different language builds

Building all modules in EU style

  • ./bin/build-eu-all en

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.

About

The eLearning repo for UKODI

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 91.1%
  • CSS 6.3%
  • HTML 2.2%
  • Other 0.4%