docs: add defineConfig for vitepress

This commit is contained in:
leejooy96 committed 2024-01-04 09:10:58 +09:00
1 parent 644f06f0ed
commit 3bd4c37882
1 file changed
+3 -2
+3 -2
View File
@@ -1,9 +1,10 @@
import { generateSidebar } from 'vitepress-sidebar'
import { name, description, repository } from '../../../package.json'
import { defineConfig } from 'vitepress'
const capitalizeFirst = (str: string): string => str.charAt(0).toUpperCase() + str.slice(1)
export default {
export default defineConfig({
title: capitalizeFirst(name),
description,
outDir: '../dist',
@@ -33,4 +34,4 @@ export default {
}),
socialLinks: [{ icon: 'github', link: repository.url.replace('.git', '') }]
}
}
})