Skip to content

Commit ffa9ef2

Browse files
authored
Restore sidebar and nav (#1715)
Fixes cap/issues#18033
1 parent 4918877 commit ffa9ef2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.vitepress/config.js

+5
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ const base = process.env.GH_BASE || '/docs/'
55
import { defineConfig } from 'vitepress'
66
import languages from './languages'
77
import path from 'node:path'
8+
import { Menu } from './menu.js'
9+
10+
const menu = await Menu.from ('./menu.md')
811

912
const config = defineConfig({
1013

@@ -35,6 +38,8 @@ const config = defineConfig({
3538
},
3639

3740
themeConfig: {
41+
sidebar: menu.items,
42+
nav: menu.navbar,
3843
logo: '/cap-logo.svg',
3944
outline: [2,3],
4045
socialLinks: [

0 commit comments

Comments
 (0)