Skip to content

CLARIN Bootstrap sub-theme. Built from Bootstrap Framework LESS source files.

Notifications You must be signed in to change notification settings

clarin-eric/clarin-horizon_drupal_theme

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CLARIN Horizon - custom Drupal 7 bootstrap subtheme for the CLARIN website

This project produces the CLARIN Horizon subtheme for Drupal Bootstrap. On every tagged commit, Travis CI runs build.sh and adds the produced artifacts to the respective release item on GitHub. The release package includes the built CLARIN Horizon subtheme together with a vanilla Drupal 7 Bootstrap theme.

To edit the subtheme, please use your own fork of this repository. Mind to enable Travis CI for that project on https://travis-ci.org/profile/YOUR_GITHUB_LOGIN. Moreover, you have to have set the secret environment variable DEPLOY_OAUTH_TOKEN within the Travis CI project settings to the appropriate OAuth token.

Build process

The build.sh script does the following:

  1. Installs the less compresser/compiler (via npm)

  2. Retrieves the Drupal bootstrap theme

  3. Retrieves the CLARIN base style LESS package

  4. Imports the 'less starter kit' from the 'Drupal bootstrap theme' into the 'CLARIN base style LESS package' (without overriding original files)

  5. Imports the root LESS file src/theme/style.less into the 'CLARIN base style LESS package'

  6. Creates the subtheme distribution directory target/CLARIN_Horizon from the fixed set of static files in the src/theme directory (see script for details)

  7. Imports the CLARIN base style fonts directory into the subtheme distribution directory

  8. Compiles the root LESS file of this modified 'CLARIN base style LESS package' to the main css/style.css file inside the subtheme distribution directory

  9. Packages the subtheme distribution directory together with the original 'Drupal bootstrap theme' into a tarball target/CLARIN_Horizon.tgz