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

46 lines
954 B
TypeScript
Raw Normal View History

2022-03-16 22:15:52 +00:00
import { defineConfig } from 'vitepress';
export default defineConfig({
title: 'Schlechtenburg',
description: 'Experimental WYSIWYG block editor',
2022-03-17 18:09:14 +00:00
base: '/schlechtenburg/',
2022-03-16 22:15:52 +00:00
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: [
2022-03-17 17:59:51 +00:00
{ text: 'Why Schlechtenburg?', link: '/guide/why' },
{ text: 'Installation', link: '/guide/installation' },
2022-03-16 22:15:52 +00:00
],
}
],
'/api/': [
{
text: 'API',
children: [
2022-03-17 17:59:51 +00:00
{ text: 'Core', link: '/api/core' },
2022-03-16 22:15:52 +00:00
],
}
],
2022-03-17 17:59:51 +00:00
'/': false,
2022-03-16 22:15:52 +00:00
},
},
});