site/src/.vitepress/config.mts

57 lines
1.6 KiB
TypeScript

import { defineConfig } from 'vitepress'
// https://vitepress.dev/reference/site-config
export default defineConfig({
lang: 'zh-CN',
title: "Blocks Service Mesh",
description: "部署即应用的微服务架构",
logo: './static/logo.png',
srcDir: '../src',
assetsDir: './static',
outDir: '../dist',
appearance: 'dark',
themeConfig: {
// https://vitepress.dev/reference/default-theme-config
nav: [
{ text: 'Home', link: '/' },
{ text: '概述', link: '/overview' },
{ text: '基础组件', link: '/infra' },
{ text: '基础服务', link: '/base' },
{ text: '应用服务', link: '/app' },
{
text: '各领域服务库',
items: [
{ text: 'ECommerce 电商', link: '/item-1' },
{ text: 'Social 社交', link: '/item-1' },
{ text: 'Finance 金融', link: '/item-1' },
{ text: 'UGC 内容', link: '/item-1' },
{ text: 'IM 即时通讯', link: '/item-2' },
{ text: 'IoT 物联网', link: '/item-3' }
]
},
{ text: '开发指南', link: '/guide' },
{ text: '森林AI', link: 'https://www.senlinai.com', target: '_blank' }
],
sidebar: [
{
text: '概述',
items: [
{ text: 'Markdown Examples', link: '/markdown-examples' },
{ text: 'Runtime API Examples', link: '/api-examples' }
]
}
],
socialLinks: [
{ icon: 'github', link: 'https://git.apinb.com' }
],
footer: {
message: 'Released under the MIT License.',
copyright: 'Copyright © 2019-2024 Blocks Service Mesh'
}
}
})