Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'storefront' mode architecture? #104

Closed
bradfrost opened this issue Jan 9, 2018 · 3 comments
Closed

'storefront' mode architecture? #104

bradfrost opened this issue Jan 9, 2018 · 3 comments
Labels

Comments

@bradfrost
Copy link
Member

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:

PATTERN TITLE
Pattern description and possibly some other stuff

[ LIVE PATTERN ]

Documentation and other stuff.

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.

@bmuenzenmeyer
Copy link
Member

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?

@bradfrost
Copy link
Member Author

@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.

@bradfrost
Copy link
Member Author

Closing this out as we're moving this to its own discussion over here: pattern-lab/the-spec#38

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants