arielsalminen / vue-design-system

An open source tool for building UI Design Systems with Vue.js
https://vueds.com
MIT License
2.17k stars 225 forks source link

Design Token section to display components are separate pages #150

Closed rinobatin closed 5 years ago

rinobatin commented 5 years ago

Any idea how to display the components under design tokens are separate pages? I thought changing sectionDepth to 2 should be enough.

I'm using version 3.5.7.

//  ./config/docs.config.js
pagePerSection: true,
sections: [
...
{
      name: "Design Tokens",
      content: "../docs/tokens.md",
      sectionDepth: 2, // <-- changed from 1
      exampleMode: "hide",
      usageMode: "hide",
      components: () => [
        "../docs/components/tokens/Color.vue",
        "../docs/components/tokens/FontSize.vue",
        "../docs/components/tokens/Spacing.vue",
        "../docs/components/tokens/All.vue",
      ],
 }
]
arielsalminen commented 5 years ago

@rinobatin These are hidden in css currently, remove the following lines to see the subsections in menu:

https://github.com/viljamis/vue-design-system/blob/master/docs/docs.styles.scss#L670-L673

rinobatin commented 5 years ago

Thank you!