SC5 / sc5-styleguide

Styleguide generator is a handy little tool that helps you generate good looking styleguides from stylesheets using KSS notation
http://styleguide.sc5.io/
MIT License
1.26k stars 168 forks source link

namespaced positions. #1124

Open Rhym opened 6 years ago

Rhym commented 6 years ago

Would love support for name spacing a section. KSS node's parser supports this e.g:

// Styleguide: components.button

as an alternative to the current:

// Styleguide: 1.2.3

The shadow DOM is the absolute business in SC5, so it will always be my number 1, but adding components to a large established component list is a real pain when using versioning.

I too a look at the current parser, and it does a regex check for /Styleguide [0-9]+, and it seemed to be pretty heavily coupled to the application. Perhaps the parser could be swapped out for kss node's latest version, and apply the changes that SC5 needs to generate the angular app using that object?