chore(docs): update sidebar conf
This commit is contained in:
@@ -8,9 +8,11 @@ import Icons from 'unplugin-icons/vite'
|
|||||||
import Components from 'unplugin-vue-components/vite'
|
import Components from 'unplugin-vue-components/vite'
|
||||||
import AutoImport from 'unplugin-auto-import/vite'
|
import AutoImport from 'unplugin-auto-import/vite'
|
||||||
import head from './head'
|
import head from './head'
|
||||||
|
import { useVueFlow } from '@braks/vue-flow'
|
||||||
|
|
||||||
config({ path: resolve(__dirname, '.env') })
|
config({ path: resolve(__dirname, '.env') })
|
||||||
|
|
||||||
|
const { vueFlowVersion } = useVueFlow()
|
||||||
export default defineUserConfig<DefaultThemeOptions>({
|
export default defineUserConfig<DefaultThemeOptions>({
|
||||||
title: 'Vue Flow',
|
title: 'Vue Flow',
|
||||||
description: 'Visualize your ideas with Vue Flow, a highly customizable Vue3 Flowchart library.',
|
description: 'Visualize your ideas with Vue Flow, a highly customizable Vue3 Flowchart library.',
|
||||||
@@ -62,13 +64,29 @@ export default defineUserConfig<DefaultThemeOptions>({
|
|||||||
lastUpdated: true,
|
lastUpdated: true,
|
||||||
contributors: true,
|
contributors: true,
|
||||||
darkMode: true,
|
darkMode: true,
|
||||||
|
sidebar: {
|
||||||
|
'/guide/': [
|
||||||
|
{
|
||||||
|
text: 'Guide',
|
||||||
|
children: ['/guide/', '/guide/getting-started', '/guide/theming'],
|
||||||
|
},
|
||||||
|
],
|
||||||
|
'/examples/': [
|
||||||
|
{
|
||||||
|
text: 'Examples',
|
||||||
|
children: ['/examples/'],
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
navbar: [
|
navbar: [
|
||||||
|
{ text: `v${vueFlowVersion.value}`, link: '' },
|
||||||
{ text: 'Guide', link: '/guide/', activeMatch: '^/guide/' },
|
{ text: 'Guide', link: '/guide/', activeMatch: '^/guide/' },
|
||||||
{
|
{
|
||||||
text: 'Examples',
|
text: 'Examples',
|
||||||
link: '/examples/',
|
link: '/examples/',
|
||||||
activeMatch: '^/examples/',
|
activeMatch: '^/examples/',
|
||||||
},
|
},
|
||||||
|
{ text: 'TypeDocs', link: 'https://types.vueflow.dev/' },
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user