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

Multiple styleguides for different sections? #251

Open
sugarenia opened this issue Nov 9, 2015 · 2 comments
Open

Multiple styleguides for different sections? #251

sugarenia opened this issue Nov 9, 2015 · 2 comments

Comments

@sugarenia
Copy link

Is there a clean, "official" way to have multiple styleguides on the same codebase?

Something like:

http://domain.com/public/styleguide
an index page with an intro and links to different sections, e.g. /backend, /marketing, /application

http://domain.com/public/styleguide/backend
the backend index, showing only widgets from the app/assets/stylesheets/backend folder (CSS include is ONLY app/assets/stylesheets/backend.scss

http://domain.com/public/styleguide/marketing
the marketing index, showing only widgets from the app/assets/stylesheets/marketing folder (CSS include is ONLY app/assets/stylesheets/marketing.scss)

etc.

Any ideas?

@jdcantrell
Copy link
Contributor

There's not an "official" way to do this, my initial thought was to use multiple config files for generating the different style guides. You might be able to do some trickery in the header erb for including the correct css but that seems a little gross. I would need to think about it more to see if it made sense to have some sort of configuration that can do this.

@sugarenia
Copy link
Author

@jdcantrell Yes, multiple configs were our first idea as well, but we wanted to keep it as contained as possible, since it's essentially the same product.

Thanks for considering it, do let us know :)

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

No branches or pull requests

2 participants