init
This commit is contained in:
45
.vitepress/config.ts
Normal file
45
.vitepress/config.ts
Normal file
@@ -0,0 +1,45 @@
|
||||
import { defineConfig } from 'vitepress'
|
||||
|
||||
const isDev = process.env.NODE_ENV === 'development'
|
||||
const base = isDev ? '/' : '/root/frontend-starter-skill/'
|
||||
// https://vitepress.dev/reference/site-config
|
||||
export default defineConfig({
|
||||
srcDir: "docs",
|
||||
base: base,
|
||||
title: "frontend-starter-skill",
|
||||
description: "展示网页或者互动性网页的初始化模块",
|
||||
themeConfig: {
|
||||
// https://vitepress.dev/reference/default-theme-config
|
||||
nav: [
|
||||
{ text: '首页', link: '/' },
|
||||
{ text: '展示型模板', link: '/website-features-breakdown' },
|
||||
{ text: '互动型模板', link: '/enterprise-website-features' }
|
||||
],
|
||||
|
||||
sidebar: [
|
||||
{
|
||||
text: '展示型模板 (Astro)',
|
||||
items: [
|
||||
{ text: '功能拆分', link: '/website-features-breakdown' }
|
||||
]
|
||||
},
|
||||
{
|
||||
text: '互动型模板 (Next.js)',
|
||||
items: [
|
||||
{ text: '功能拆分', link: '/enterprise-website-features' }
|
||||
]
|
||||
},
|
||||
{
|
||||
text: '其他',
|
||||
items: [
|
||||
{ text: '支付相关链接', link: '/pay/link' },
|
||||
{ text: '支付总结', link: '/pay/pay-summary' }
|
||||
]
|
||||
}
|
||||
],
|
||||
|
||||
socialLinks: [
|
||||
{ icon: 'github', link: 'https://cnb.cool/skillpod/frontend-starter-skill' }
|
||||
]
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user