update(docs): Add windicss

* remove unused files
This commit is contained in:
Braks
2022-04-04 21:42:48 +02:00
parent e97d9a1dc9
commit 36e3299681
24 changed files with 966 additions and 441 deletions
+21 -1
View File
@@ -2,16 +2,36 @@ import { config } from 'dotenv'
import { resolve } from 'path'
import { defineConfig, HeadConfig } from 'vitepress'
import head from './head'
import WindiCSS from 'vite-plugin-windicss'
import Components from 'unplugin-vue-components/vite'
config({ path: resolve(__dirname, '.env') })
export default defineConfig({
title: 'Vue Flow',
description: 'Create node based editors!',
lastUpdated: true,
srcDir: './src',
head: head as HeadConfig[],
vite: {
plugins: [
WindiCSS({
config: resolve(__dirname, './windi.config.ts'),
}) as any,
Components({
dirs: [
resolve(__dirname, './components')
],
deep: true,
// allow auto load markdown components under `./src/components/`
extensions: ['vue', 'md'],
// allow auto import and register components used in markdown
include: [/\.vue$/, /\.vue\?vue/, /\.md$/],
dts: false,
}),
],
},
themeConfig: {
repo: 'bcakmakoglu/vue-flow',
docsDir: 'docs',