Closed bradfrost closed 6 years ago
Hey Brad - thanks for starting this conversation - I definitely want to frame it up soon. I have a general outline in my head - hopefully you can stand to wait a few days?
@bmuenzenmeyer yeah, absolutely! Definitely interested in hearing your ideas. I'll do my best to draw out some of the ideas tumbling around in my head.
Closing this out as we're moving this to its own discussion over here: https://github.com/pattern-lab/the-spec/issues/38
I'm beginning to think through how the storefront mode (essentially a style guide mode used for documenting patterns and documentation rather than for tinkering with pattern code) within Pattern Lab will work, and I'm writing this as a question/start of a conversation.
In essence, the style guide mode for a component detail will look something like this:
I'm finding that while a lot can be accomplished with only CSS modifications to PL's shell, there are a few areas that I think would require some significant changes to the markup and source order.
So my question to @bmuenzenmeyer and @EvanLovely is: how do you see this happening? Is it possible to render a different template for the storefront compared to the workshop? Or do we have to get creative with what we already have?
And one last-but-not-insignificant point is how to generate both versions? The thought is the workshop is the default, and then there would be a flag in the command to build out the storefront, which would consume a different (or subset) config file. Interested to hear from you how you think this would work.