Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
varbase
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
varbase
Commits
7d55ea12
Commit
7d55ea12
authored
3 years ago
by
Rajab Natshah
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3251531
: Start a 9.1.x branch for Varbase and Varbase Project to support Bootstrap 5
parent
303936ad
No related branches found
Branches containing commit
No related tags found
Tags containing commit
3 merge requests
!24
Issue #3301451: Composer is fixed to docroot folder Primary tabs View(active tab)
,
!10
Issue #3269421: Add exception messages for VLB automated testing step definitions
,
!9
Issue #3266504: Update Automated Functional Testing Readme File
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
scripts/README.md
+5
-5
5 additions, 5 deletions
scripts/README.md
varbase.profile
+2
-2
2 additions, 2 deletions
varbase.profile
with
7 additions
and
7 deletions
scripts/README.md
+
5
−
5
View file @
7d55ea12
# Varbase Scripts
## Vartheme BS
4
Scripts
## Vartheme BS
5
Scripts
### Quick tip on how to use this script command file.
Default settings could be changed in scripts.settings.yml
# Create a Vartheme BS
4
sub theme ( Bootstrap 4 ) SASS
# Create a Vartheme BS
5
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.
...
...
@@ -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_bs
4
/scripts
$ bash ./create-new-vartheme-bs
4
.sh "THEME_NAME"
$ cd PROJECT_DIR_NAME/docroot/themes/contrib/vartheme_bs
5
/scripts
$ bash ./create-new-vartheme-bs
5
.sh "THEME_NAME"
```
We can use
```
$ cd PROJECT_DIR_NAME/docroot/themes/contrib/vartheme_bs
4
$ cd PROJECT_DIR_NAME/docroot/themes/contrib/vartheme_bs
5
yarn theme:create-sub-theme "THEME_NAME"
``
...
...
This diff is collapsed.
Click to expand it.
varbase.profile
+
2
−
2
View file @
7d55ea12
...
...
@@ -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_bs
4
_copyright.yml'
;
$managed_config_path
=
$profile_path_managed
.
'block.block.vartheme_bs
5
_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_bs
4
_copyright'
);
$managed_config_factory
=
\Drupal
::
configFactory
()
->
getEditable
(
'block.block.vartheme_bs
5
_copyright'
);
$managed_config_factory
->
setData
(
$managed_config_data
)
->
save
(
TRUE
);
// Entity updates to clear up any mismatched entity and/or field definitions
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment