The CLARIN theme for Drupal 8 is a sub-theme of Bootstrap Barrio Bootstrap 4 theme.
Here you will find the sub-theme distribution files and releases. Additionally, this repository can be used as a composer VCS, see bellow for details.
This repository is NOT used for development. The sub-theme sources are maintained at the sub-theme source repository. All commits to this repository are automatically pushed by the corresponding CI build of the source repository.
- To configure
composer
to use this repository as VCS add the following to therepositories:
section of your website'scomposer.json
file:
"repositories": [
{
"type": "vcs",
"url": "https://github.com/clarin-eric/clarin-drupal-bootstrap-theme-dist",
"extra": {
"branch-alias": {
"dev-main": "1.0.x"
}
}
}
]
- Due to GitHub API rate limitations you might need to create a GitHub PAT and add it to the
config:
section of your website'scomposer.json
:
"config": {
"github-oauth": { "github.com": "<YOUR PAT HERE>" }
},
- When installing Bootstrap Barrio via composer, bootstrap is automatically downloaded and copied into vendors directory. See Boostrap Barrio documentation.
To copy
dist
files into libraries directory during installation, add the following lines to thescripts:
section of your website'scomposer.json
:
"scripts": {
"post-install-cmd": [
"@composer drupal:scaffold"
],
"post-update-cmd": [
"@composer drupal:scaffold",
"mkdir -p web/libraries/bootstrap",
"cp -R vendor/twbs/bootstrap/dist web/libraries/bootstrap",
"chown -R root:nginx web/libraries/bootstrap"
]
}
This will maintain the bootstrap version up to date when updating via composer.
composer require drupal/clarin_bootstrap
composer update drupal/clarin_bootstrap
- Install Bootstrap Barrio theme.
- Unpack and copy the sub-theme on
web/themes/[custom|contrib]
directory. - Install Bootstrap Library module (or manually install its JS and CSS libaries (Download) in:
web/libraries/bootstrap/dist/
)
- Popper.js (Download) in.
web/libraries/popper.js/dist/umd/
Same as the Bootstrap Barrio parent theme:
- bootstrap.min.[js, css]
- popper.min.js (must be manually installed)