usebedrock / bedrock

Bedrock is a static site generator to create large-scale HTML prototypes and document design systems
https://bedrockapp.org
Other
206 stars 28 forks source link

Subcategories for Styleguide components #346

Open ErikFontanel opened 3 years ago

ErikFontanel commented 3 years ago

It would be nice if it's possible to add subcategories to organise the Components list so it's easier to group related components. This is useful when a specific set of components are only used within one larger component. Eg. an interactive editor component that is made out of components only used within the editor and not the rest of the app.

Ie.

Components

Wolfr commented 3 years ago

This was recently mentioned as something that would be nice to have in another conversation with @FannyBenisek .

Wolfr commented 3 years ago

How to implement this?

I see two ways.

(1) Folder-based

_components/category-1/component
_components/category-2/component-2
_components/category-3/component-3

(2) Metadata-based

_components/component

Plus

---
title: Component
category: Category
---

I have a strong preference for the folder-based approach. We'd need to find a good naming strategy.