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.
The build.sh script does the following:
-
Installs the less compresser/compiler (via npm)
-
Retrieves the Drupal bootstrap theme
-
Retrieves the CLARIN base style LESS package
-
Imports the 'less starter kit' from the 'Drupal bootstrap theme' into the 'CLARIN base style LESS package' (without overriding original files)
-
Imports the root LESS file
src/theme/style.less
into the 'CLARIN base style LESS package' -
Creates the subtheme distribution directory
target/CLARIN_Horizon
from the fixed set of static files in thesrc/theme
directory (see script for details) -
Imports the CLARIN base style fonts directory into the subtheme distribution directory
-
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 -
Packages the subtheme distribution directory together with the original 'Drupal bootstrap theme' into a tarball
target/CLARIN_Horizon.tgz