chore(docs): update sidebar conf

This commit is contained in:
Braks
2022-04-04 21:42:48 +02:00
parent 13fea5e0a9
commit 88bb146f1f
+18
View File
@@ -8,9 +8,11 @@ import Icons from 'unplugin-icons/vite'
import Components from 'unplugin-vue-components/vite'
import AutoImport from 'unplugin-auto-import/vite'
import head from './head'
import { useVueFlow } from '@braks/vue-flow'
config({ path: resolve(__dirname, '.env') })
const { vueFlowVersion } = useVueFlow()
export default defineUserConfig<DefaultThemeOptions>({
title: 'Vue Flow',
description: 'Visualize your ideas with Vue Flow, a highly customizable Vue3 Flowchart library.',
@@ -62,13 +64,29 @@ export default defineUserConfig<DefaultThemeOptions>({
lastUpdated: true,
contributors: true,
darkMode: true,
sidebar: {
'/guide/': [
{
text: 'Guide',
children: ['/guide/', '/guide/getting-started', '/guide/theming'],
},
],
'/examples/': [
{
text: 'Examples',
children: ['/examples/'],
},
],
},
navbar: [
{ text: `v${vueFlowVersion.value}`, link: '' },
{ text: 'Guide', link: '/guide/', activeMatch: '^/guide/' },
{
text: 'Examples',
link: '/examples/',
activeMatch: '^/examples/',
},
{ text: 'TypeDocs', link: 'https://types.vueflow.dev/' },
],
},
})