schlechtenburg/packages/docs/lib/.vitepress/config.ts

46 lines
954 B
TypeScript

import { defineConfig } from 'vitepress';
export default defineConfig({
title: 'Schlechtenburg',
description: 'Experimental WYSIWYG block editor',
base: '/schlechtenburg/',
themeConfig: {
nav: [
{
text: 'Guide',
activeMatch: '^/guide/',
link: '/guide/introduction'
},
{
text: 'API',
activeMatch: `^/api/`,
items: [
{ text: '@schlechtenburg/core', link: '/api/@schlechtenburg/core' },
],
},
],
sidebar: {
'/guide/': [
{
text: 'Getting Started',
children: [
{ text: 'Why Schlechtenburg?', link: '/guide/why' },
{ text: 'Installation', link: '/guide/installation' },
],
}
],
'/api/': [
{
text: 'API',
children: [
{ text: 'Core', link: '/api/core' },
],
}
],
'/': false,
},
},
});