lib/vue-sidebar.ts
object
generateVueSidebar(data) → Runs through the given tree structure and creates a vuepress config
Kind: global function
Returns: object
- returns the vuepress menu structure
Param | Type | Description |
---|---|---|
data | object | Information to build config |
data.fileTree | array | tree structure |
data.codeFolder | string | ./code/ folder |
data.srcFolder | string | ./src/ folder |
data.docsFolder | string | ./documentation/ folder |
data.title | string | title string |