Skip to content

Commit

Permalink
Issue #3251531: Start a 9.1.x branch for Varbase and Varbase Project …
Browse files Browse the repository at this point in the history
…to support Bootstrap 5
  • Loading branch information
Natshah committed Nov 28, 2021
1 parent 303936a commit 7d55ea1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions scripts/README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# Varbase Scripts

## Vartheme BS4 Scripts
## Vartheme BS5 Scripts

### Quick tip on how to use this script command file.

Default settings could be changed in scripts.settings.yml


# Create a Vartheme BS4 sub theme ( Bootstrap 4 ) SASS
# Create a Vartheme BS5 sub theme ( Bootstrap 4 ) SASS

Before we generate the new sub theme we need to have the following tools
* 1. npm and nodejs : Helps getting the bootstrap 4 and popper packages.
Expand Down Expand Up @@ -41,13 +41,13 @@ After we make sure that we do have all the tools we could change directory
in the terminal to:

```
$ cd PROJECT_DIR_NAME/docroot/themes/contrib/vartheme_bs4/scripts
$ bash ./create-new-vartheme-bs4.sh "THEME_NAME"
$ cd PROJECT_DIR_NAME/docroot/themes/contrib/vartheme_bs5/scripts
$ bash ./create-new-vartheme-bs5.sh "THEME_NAME"
```

We can use
```
$ cd PROJECT_DIR_NAME/docroot/themes/contrib/vartheme_bs4
$ cd PROJECT_DIR_NAME/docroot/themes/contrib/vartheme_bs5
yarn theme:create-sub-theme "THEME_NAME"
``
Expand Down
4 changes: 2 additions & 2 deletions varbase.profile
Original file line number Diff line number Diff line change
Expand Up @@ -554,10 +554,10 @@ function varbase_after_install_finished(array &$install_state) {

// Import managed config to the active config at this time of install.
$profile_path_managed = drupal_get_path('profile', 'varbase') . '/config/managed/';
$managed_config_path = $profile_path_managed . 'block.block.vartheme_bs4_copyright.yml';
$managed_config_path = $profile_path_managed . 'block.block.vartheme_bs5_copyright.yml';
$managed_config_content = file_get_contents($managed_config_path);
$managed_config_data = (array) Yaml::parse($managed_config_content);
$managed_config_factory = \Drupal::configFactory()->getEditable('block.block.vartheme_bs4_copyright');
$managed_config_factory = \Drupal::configFactory()->getEditable('block.block.vartheme_bs5_copyright');
$managed_config_factory->setData($managed_config_data)->save(TRUE);

// Entity updates to clear up any mismatched entity and/or field definitions
Expand Down

0 comments on commit 7d55ea1

Please sign in to comment.