Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
I have a kit my own theme, which uses Radix as its base theme. No matter what path I try to put in, Radix is always expecting that path to be located inside themes/contrib/radix/src/kits/
Example 1: Relative
drush --include="web/themes/contrib/radix" radix:create "testie" --kit=web/profiles/contrib/apigee_devportal_kickstart/themes/custom/apigee_kickstart/src/kits/apigee_custom
0/2 [>---------------------------] 0% [error] RecursiveDirectoryIterator::__construct(themes/contrib/radix/src/kits/web/profiles/contrib/apigee_devportal_kickstart/themes/custom/apigee_kickstart/src/kits/apigee_custom): failed to open dir: No such file or directory
[error]
[error] Exit code 1
2/2 [============================] 100%
Example 2: Absolute
drush --include="web/themes/contrib/radix" radix:create "testie" --kit=/web/profiles/contrib/apigee_devportal_kickstart/themes/custom/apigee_kickstart/src/kits/apigee_custom
0/2 [>---------------------------] 0% [error] RecursiveDirectoryIterator::__construct(themes/contrib/radix/src/kits//web/profiles/contrib/apigee_devportal_kickstart/themes/custom/apigee_kickstart/src/kits/apigee_custom): failed to open dir: No such file or directory
[error]
[error] Exit code 1
2/2 [============================] 100%
Just FYI, the kit is definitely there:
ls -l web/profiles/contrib/apigee_devportal_kickstart/themes/custom/apigee_kickstart/src/kits/apigee_custom
README.md config
apigee_custom.info.yml css
apigee_custom.libraries.yml js
apigee_custom.theme
Comment | File | Size | Author |
---|---|---|---|
#2 | radix-subtheme-generator-kit-paths-3081150-2.patch | 1 KB | shadcn |
Comments
Comment #2
shadcn CreditAttribution: shadcn at Chapter Three commentedOK here's a patch that allow kits to live inside
CUSTOM_THEME/src/kits
. You should be able to run:drush --include="web/themes/contrib/radix" radix:create "Sunday" --kit=apigee_custom
Jacine, can you test and let me know? Thanks.
Comment #4
shadcn CreditAttribution: shadcn at Chapter Three commentedI've been using this patch over the weekend with multiple base themes and kits and so far no issues. I'm going to go ahead and commit this. We can follow up if there's anything else. Thank you.
Comment #5
JacineThanks so much @arshadcn! I just tested this and it's working great. 👍