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

58 lines
1.2 KiB
TypeScript
Raw Normal View History

2022-03-16 22:15:52 +00:00
import { defineConfig } from 'vitepress';
2022-03-21 23:58:05 +00:00
const DOCS_PACKAGES = [
'standalone',
'core',
'layout',
'heading',
'paragraph',
'image',
];
2022-03-16 22:15:52 +00:00
export default defineConfig({
title: 'Schlechtenburg',
description: 'Experimental WYSIWYG block editor',
2022-03-22 20:17:59 +00:00
base: '/schlechtenburg/',
2022-03-16 22:15:52 +00:00
themeConfig: {
nav: [
{
text: 'Guide',
activeMatch: '^/guide/',
2022-03-22 20:16:26 +00:00
link: '/guide/why'
2022-03-16 22:15:52 +00:00
},
{
text: 'API',
activeMatch: `^/api/`,
2022-03-21 23:58:05 +00:00
items: DOCS_PACKAGES.map((name) => ({
text: `@schlechtenburg/${name}`,
link: `/api/@schlechtenburg/${name}`,
})),
2022-03-16 22:15:52 +00:00
},
],
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-22 20:16:26 +00:00
{ text: 'Examples', link: '/guide/examples' },
2022-03-16 22:15:52 +00:00
],
}
],
'/api/': [
{
text: 'API',
2022-03-22 20:16:26 +00:00
children: DOCS_PACKAGES.map((name) => ({
text: `@schlechtenburg/${name}`,
link: `/api/@schlechtenburg/${name}`,
})),
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
},
},
});