lib/vue-sidebar.ts

generateVueSidebar(data) → object

Runs through the given tree structure and creates a vuepress config

Kind: global function
Returns: object - returns the vuepress menu structure

ParamTypeDescription
dataobjectInformation to build config
data.fileTreearraytree structure
data.codeFolderstring./code/ folder
data.srcFolderstring./src/ folder
data.docsFolderstring./documentation/ folder
data.titlestringtitle string