Closed (fixed)
Project:
Starshot Demo Design System
Version:
1.0.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
14 Aug 2024 at 12:49 UTC
Updated:
20 Sep 2024 at 01:44 UTC
Jump to comment: Most recent
Comments
Comment #2
annmarysruthy commentedComment #3
annmarysruthy commentedExecuted the script using command:
python3 twig-sdc-yaml-generator/twig_sdc_yaml_generator.py starshot_demo/components/02-molecules/starshot-cardResult:
Output Generated
starshot-card.component.yml
README.md
Observations
Found 3 issues in starshot-card.component.yml
However, in starshot-card.component.yml, properties are null:
However, in starshot-card.component.yml, properties are null:
But on checking starshot-card.twig and /starshot_demo/components/01-atoms/tag/tag.twig, we can see that type field can have values 'primary', 'secondary', 'tertiary', 'drupal'. Option 'drupal' is missing in generated code. This might be because in starshot_demo/components/01-atoms/tag/tag.twig comment 'drupal' option is not added but is present in code.
* - type: [string] Type: primary, secondary, tertiaryHow to fix the above issues
Then run the python script again and it generated correct result. New Result:
Comment #4
annmarysruthy commentedComment #5
kristen polThanks! The link and image issues should be fixed once Anand updates his script or we can manually tweak like above.
Good catch on the 'drupal' issue. Do you want to create an MR for that one?
Comment #7
annmarysruthy commentedAdded a commit for adding drupal in tag.twig. This would fix issue 3 listed in comment #3. Kindly review
Comment #8
kristen polThanks. Merged in the latest from 1.0.x. Note that these components are getting renamed to "old-x" because of the design changes so holding off on this one until that code is merged in (should be very soon).
Comment #10
kristen polUpdated, thanks!