Problem/Motivation
When creating a sub-theme using UI Suite DaisyUI as a base theme, the standard Drupal starter theme generation script, php core/scripts/drupal generate-theme my_daisyui_theme --starterkit ui_suite_daisyui_starterkit --path themes/custom produces a warning stating that the base theme does not have a version number.
Steps to reproduce
With a starterkit theme ready to be cloned and configured under ui_suite_daisyui/starterkits, execute the following code from the web/ folder: php core/scripts/drupal generate-theme my_daisyui_theme --starterkit ui_suite_daisyui_starterkit --path themes/custom
Proposed resolution
Add a version number to the theme yml file
Remaining tasks
Update theme yml file.
User interface changes
Version number will appear on the themes configuration screen.
API changes
None.
Data model changes
None.
| Comment | File | Size | Author |
|---|---|---|---|
| info.patch | 262 bytes | paddy_deburca |
Issue fork ui_suite_daisyui-3510787
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
pasqualleThe version number is there when you download (end extract) the theme package file or install the theme using composer.
The version number is never part of the git source code.
Comment #3
pasqualleIf you are installing a dev release with composer, then the version number is missing from the info file. But even then you can use the following composer plugin, to have correct version information.
https://packagist.org/packages/drupal-composer/info-rewrite
Comment #5
g4mbiniHello @paddy_deburca @pasqualle,
Can you please test the new Starterkit feature (#3508143: [5.0.x] Create Starterkit theme with Documentation.) that normally solves this issue ?
Here is the link to the README: https://git.drupalcode.org/project/ui_suite_daisyui/-/blob/5.0.x/starter...
Comment #6
g4mbiniComment #7
johanf commentedHello
Starting to test all this ui_pattern and ui_suite environment who seems very interesting
I just test with beta version.
and followed the readme to create a subtheme.
I got this message 'The source theme ui_suite_daisyui_starterkit does not have a version specified. This makes tracking changes in the source theme difficult. Are you sure you want to continue?'
I continue and the result in the info file is
version: 1.0.0
generator: 'ui_suite_daisyui_starterkit:unknown-version'
npm install
npm run build
drush cr
i enabled the modules required
and i get the subtheme
Comment #9
g4mbiniComment #11
g4mbiniThanks everyone for participating.
Now we have the correct version management inside the starterkit!
Cheers