schlechtenburg/docs/.vitepress/config.mts

48 lines
1.4 KiB
TypeScript
Raw Permalink Normal View History

2022-09-05 19:12:20 +00:00
import { defineConfig } from 'vitepress';
import { defineConfig as defineViteConfig } from 'vite';
import vueJsx from '@vitejs/plugin-vue-jsx'
import { join } from 'path';
2022-09-05 19:12:20 +00:00
export default defineConfig({
lang: 'en-US',
title: 'Schlechtenburg',
description: 'Experimental WYSIWYG editor framework made with Vue 3 and TypeScript',
lastUpdated: true,
themeConfig: {
sidebar: [
{
text: 'User Guide',
items: [
{ text: 'Introduction', link: '/' },
{ text: 'Try it out', link: '/try' },
{ text: 'Why Schlechtenburg?', link: '/why' },
{ text: 'Installation and usage', link: '/installation' },
]
},
{
2022-09-05 19:46:55 +00:00
text: 'Creating Blocks',
2022-09-05 19:12:20 +00:00
items: [
2022-09-05 19:46:55 +00:00
{ text: 'Basics', link: '/creating-blocks/' },
{ text: 'Examples', link: '/creating-blocks/examples' },
2022-09-05 19:12:20 +00:00
]
}
]
},
vite: defineViteConfig({
plugins: [
vueJsx(),
],
resolve: {
alias: {
'@schlechtenburg/core': join(__dirname, '../../packages/core/lib/index.ts'),
'@schlechtenburg/paragraph': join(__dirname, '../../packages/paragraph/lib/index.ts'),
'@schlechtenburg/heading': join(__dirname, '../../packages/heading/lib/index.ts'),
'@schlechtenburg/image': join(__dirname, '../../packages/image/lib/index.ts'),
'@schlechtenburg/layout': join(__dirname, '../../packages/layout/lib/index.ts'),
},
},
}),
2022-09-05 19:12:20 +00:00
});