pack: use package.json key value in vitepress config
This commit is contained in:
1 parent
ecd12cc946
commit
74882cd288
1 file changed
+5
-2
@@ -1,9 +1,12 @@
|
|||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import { generateSidebar } from 'vitepress-sidebar'
|
import { generateSidebar } from 'vitepress-sidebar'
|
||||||
|
import { name, description } from '../../package.json'
|
||||||
|
|
||||||
|
const capitalizeFirst = (str) => str.charAt(0).toUpperCase() + str.slice(1)
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
title: 'Vutron',
|
title: capitalizeFirst(name),
|
||||||
description: 'Quick Start Templates for Vite + Vue 3 + Electron',
|
description,
|
||||||
themeConfig: {
|
themeConfig: {
|
||||||
sidebar: generateSidebar({
|
sidebar: generateSidebar({
|
||||||
root: 'docs',
|
root: 'docs',
|
||||||
|
|||||||
Reference in new issue
Block a user