Closed dragoonDorise closed 6 years ago
Nice workaround!
However, a better solution will be to handle this during styleguide generation. I've created a separate issue to track this feature request, so please follow and comment if you'd like: https://github.com/nextbigsoundinc/stylemark/issues/29
This change allows us to split the component's documentation in more than one file to keep things organized.
Example:
1st source of documentation ( CSS ):
component.css -> Component Name + HTML example
2nd source of documentation ( JS ):
component.js - > Component JS methods, API, etc.
This would create a double item both in the sidebar and in the content, this jQuery hides the duplicated item in the sidebar and changes the style of the duplicated items in the content so the documentation appears as is the same item.
This could be better done editing the node.js files and handlebars to add a "subcategory" option but this is a, albeit dirty, faster way to implement it.