|
1 | 1 | import {defineConfig} from 'vitepress'
|
2 | 2 |
|
| 3 | +const titleZh = 'ServerlessInsight| 全栈Serverless应用开发运维平台'; |
| 4 | +const descZh = 'ServerlessInsight是一个开源的Serverless应用开发运维平台, 提供了全栈Serverless应用开发、部署、监控、调试、优化等功能。支持基础设施即代码的开发实践'; |
| 5 | +const icon = '/favicon.ico'; |
3 | 6 | // https://vitepress.dev/reference/site-config
|
4 | 7 | export default defineConfig({
|
5 |
| - title: "ServerlessInsight", |
6 |
| - description: "ServerlessInsight Site", |
| 8 | + lastUpdated: true, |
7 | 9 | outDir: '../dist',
|
8 | 10 | cacheDir: '../cache',
|
9 |
| - themeConfig: { |
10 |
| - // https://vitepress.dev/reference/default-theme-config |
11 |
| - nav: [ |
12 |
| - {text: '主页', link: '/'}, |
13 |
| - {text: '产品', link: '/products'}, |
14 |
| - {text: '文档', link: '/docs'}, |
15 |
| - ], |
16 |
| - |
17 |
| - sidebar: [ |
18 |
| - { |
19 |
| - text: 'ServerlessInsight', |
20 |
| - items: [ |
21 |
| - {text: 'ServerlessInsight介绍', link: 'introduction'}, |
22 |
| - {text: '快速入门', link: 'getting-started'}, |
23 |
| - {text: '用户手册', link: 'reference'}, |
24 |
| - {text: '支持服务', link: 'support'}, |
25 |
| - {text: '常见问题', link: 'faq'}, |
26 |
| - {text: '实战案例', link: 'case-study'}, |
27 |
| - ] |
28 |
| - } |
29 |
| - ], |
30 |
| - |
31 |
| - socialLinks: [ |
32 |
| - {icon: 'github', link: 'https://github.com/geek-fun/serverlessinsight'} |
33 |
| - ] |
34 |
| - }, |
35 | 11 | locales: {
|
36 | 12 | root: {
|
37 | 13 | label: '中文',
|
38 | 14 | lang: 'zh-CN',
|
| 15 | + title: titleZh, |
| 16 | + description: descZh, |
| 17 | + head: [ |
| 18 | + ['link', {rel: 'icon', icon}], |
| 19 | + ['meta', {name: 'description', content: descZh}], |
| 20 | + ['meta', { |
| 21 | + name: 'keywords', |
| 22 | + content: 'ServerlessInsight, serverless, serverless insight, 无服务器, serverless architecture, Serverless应用开发, Serverless应用部署,Serverless应用运维, 无服务器架构, 极客范,geekfun, 极客范开源社区, 开源软件, 软件可持续性,可持续软件项目' |
| 23 | + }], |
| 24 | + ['meta', {property: 'og:title', content: titleZh}], |
| 25 | + ['meta', {property: 'og:description', content: descZh}], |
| 26 | + ['meta', {property: 'og:image', content: icon}], |
| 27 | + ['meta', {property: 'og:url', content: '/'}], |
| 28 | + ['meta', {property: 'og:site_name', content: titleZh}], |
| 29 | + ['meta', {name: 'twitter:card', content: icon}], |
| 30 | + ['meta', {name: 'twitter:title', content: titleZh}], |
| 31 | + ['meta', {name: 'twitter:description', content: descZh}], |
| 32 | + ['meta', {name: 'twitter:image', content: icon}], |
| 33 | + ], |
| 34 | + themeConfig: { |
| 35 | + // https://vitepress.dev/reference/default-theme-config |
| 36 | + siteTitle: 'ServerlessInsight', |
| 37 | + nav: [ |
| 38 | + {text: '主页', link: '/'}, |
| 39 | + {text: '产品', link: '/products'}, |
| 40 | + {text: '文档', link: '/docs'}, |
| 41 | + ], |
| 42 | + |
| 43 | + sidebar: [ |
| 44 | + { |
| 45 | + text: 'ServerlessInsight', |
| 46 | + items: [ |
| 47 | + {text: 'ServerlessInsight介绍', link: 'introduction'}, |
| 48 | + {text: '快速入门', link: 'getting-started'}, |
| 49 | + {text: '用户手册', link: 'reference'}, |
| 50 | + {text: '支持服务', link: 'support'}, |
| 51 | + {text: '常见问题', link: 'faq'}, |
| 52 | + {text: '实战案例', link: 'case-study'}, |
| 53 | + ] |
| 54 | + } |
| 55 | + ], |
| 56 | + |
| 57 | + socialLinks: [ |
| 58 | + {icon: 'github', link: 'https://github.com/geek-fun/serverlessinsight'} |
| 59 | + ] |
| 60 | + }, |
39 | 61 | },
|
40 | 62 | en: {
|
41 | 63 | label: 'English',
|
42 | 64 | lang: 'en',
|
43 | 65 | }
|
44 | 66 | }
|
| 67 | + |
45 | 68 | })
|
0 commit comments