When using the following commands to create a subtheme from Vartheme with 'ltr' option, the theme is created under/relative to scripts directory instead of the site root directory:

cd PROJECT_DIR_NAME/docroot/profiles/varbase/scripts
bash ./create-new-vartheme.sh "THEME_NAME" "ltr" "sites/default/themes/custom"

On the other hand it works with the same commands with 'rtl' option:

cd PROJECT_DIR_NAME/docroot/profiles/varbase/scripts
bash ./create-new-vartheme.sh "THEME_NAME" "rtl" "sites/default/themes/custom"

Comments

Omar Alahmed created an issue. See original summary.

omar alahmed’s picture

Title: Create new Vartheme sub theme for a project using command line » Create new Vartheme sub theme for a project using command line works for rtl option but doesn't for ltr.
Issue summary: View changes
runzipel’s picture

This works for me: https://github.com/Vardot/varbase/blob/8.x-4.x/scripts/README.md

To create a new theme in the themes/custom

By Composer:

cd PROJECT_DIR_NAME/docroot/profiles/varbase
composer create-new-vartheme "THEME_NAME" "ltr"

By Bash:

cd PROJECT_DIR_NAME/docroot/profiles/varbase/scripts
bash ./create-new-vartheme.sh "THEME_NAME" "ltr"

rajab natshah’s picture

We have updated the scripts/README.md file to work with
Vartheme , and Vartheme Material

https://github.com/Vardot/varbase/blob/8.x-4.x/scripts/README.md

Create new Vartheme sub theme for a project.

By Bash:

cd PROJECT_DIR_NAME/docroot/profiles/varbase/scripts
bash ./create-new-vartheme.sh "THEME_NAME" "ltr"

For right to left themes.

By Bash:

cd PROJECT_DIR_NAME/docroot/profiles/varbase/scripts
bash ./create-new-vartheme.sh "THEME_NAME" "rtl"

To create a new theme in the PROJECT_DIR_NAME/docroot/themes/custom

By Bash:

cd PROJECT_DIR_NAME/docroot/profiles/varbase/scripts
bash ./create-new-vartheme.sh "THEME_NAME"

Create new Vartheme Material sub theme for a project.

By Bash:

cd PROJECT_DIR_NAME/docroot/profiles/varbase/scripts
bash ./create-new-vartheme_material.sh "THEME_NAME" "ltr"

For right to left themes.

By Bash:

cd PROJECT_DIR_NAME/docroot/profiles/varbase/scripts
bash ./create-new-vartheme_material.sh "THEME_NAME" "rtl"

To create a new theme in the PROJECT_DIR_NAME/docroot/themes/custom

By Bash:

cd PROJECT_DIR_NAME/docroot/profiles/varbase/scripts
bash ./create-new-vartheme_material.sh "THEME_NAME"
rajab natshah’s picture

rajab natshah’s picture

Title: Create new Vartheme sub theme for a project using command line works for rtl option but doesn't for ltr. » Create new Vartheme sub theme for a project using command line works for RTL option but does not for LTR.
rajab natshah’s picture

Title: Create new Vartheme sub theme for a project using command line works for RTL option but does not for LTR. » Fixed issues on the Vartheme sub theme generator scripts for a project using command line works for RTL option but does not for LTR.

  • RajabNatshah committed 611ceb0 on 8.x-4.x
    Issue #2900926: Fixed issues on the Vartheme sub theme generator scripts...
rajab natshah’s picture

Assigned: Unassigned » mohammed j. razem
Status: Needs work » Needs review
Issue tags: +varbase-8.4.17
rajab natshah’s picture

Assigned: mohammed j. razem » Unassigned

  • RajabNatshah committed af8c6e0 on 8.x-4.x
    Issue #2900926: Fixed issues on the Vartheme sub theme generator scripts...
rajab natshah’s picture

Status: Needs review » Fixed
rajab natshah’s picture

Status: Fixed » Closed (fixed)