Files
flowbite-vue/docs/.vitepress/config.ts
2022-07-04 15:43:55 +03:00

37 lines
760 B
TypeScript

function buildSidebar() {
return [
{
items: [
{ text: 'Home', link: '/' }
],
},
{
text: 'Components',
collapsible: true,
items: [
...getComponents(),
],
}]
}
function getComponents() {
return [
{ text: 'Alert', link: '/guide/alert/alert.md' },
{ text: 'Button', link: '/guide/button/button.md' },
{ text: 'Button Group', link: '/guide/buttonGroup/buttonGroup.md' },
{ text: 'Spinner', link: '/guide/spinner/spinner.md' },
]
}
/**
* This can be used as an example
* https://github.com/vuejs/vitepress/blob/master/docs/.vitepress/config.js
*/
export default {
title: 'flowbite-vue vitepress',
themeConfig: {
docsDir: 'docs',
sidebar: buildSidebar(),
},
}