docs: add defineConfig for vitepress
This commit is contained in:
1 parent
644f06f0ed
commit
3bd4c37882
1 file changed
+3
-2
@@ -1,9 +1,10 @@
|
|||||||
import { generateSidebar } from 'vitepress-sidebar'
|
import { generateSidebar } from 'vitepress-sidebar'
|
||||||
import { name, description, repository } from '../../../package.json'
|
import { name, description, repository } from '../../../package.json'
|
||||||
|
import { defineConfig } from 'vitepress'
|
||||||
|
|
||||||
const capitalizeFirst = (str: string): string => str.charAt(0).toUpperCase() + str.slice(1)
|
const capitalizeFirst = (str: string): string => str.charAt(0).toUpperCase() + str.slice(1)
|
||||||
|
|
||||||
export default {
|
export default defineConfig({
|
||||||
title: capitalizeFirst(name),
|
title: capitalizeFirst(name),
|
||||||
description,
|
description,
|
||||||
outDir: '../dist',
|
outDir: '../dist',
|
||||||
@@ -33,4 +34,4 @@ export default {
|
|||||||
}),
|
}),
|
||||||
socialLinks: [{ icon: 'github', link: repository.url.replace('.git', '') }]
|
socialLinks: [{ icon: 'github', link: repository.url.replace('.git', '') }]
|
||||||
}
|
}
|
||||||
}
|
})
|
||||||
Reference in new issue
Block a user