46 lines
1.3 KiB
TypeScript
46 lines
1.3 KiB
TypeScript
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' }
|
|
]
|
|
}
|
|
})
|