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
|
||||
import { generateSidebar } from 'vitepress-sidebar'
|
||||
import { name, description } from '../../package.json'
|
||||
|
||||
const capitalizeFirst = (str) => str.charAt(0).toUpperCase() + str.slice(1)
|
||||
|
||||
export default {
|
||||
title: 'Vutron',
|
||||
description: 'Quick Start Templates for Vite + Vue 3 + Electron',
|
||||
title: capitalizeFirst(name),
|
||||
description,
|
||||
themeConfig: {
|
||||
sidebar: generateSidebar({
|
||||
root: 'docs',
|
||||
|
||||
Reference in new issue
Block a user