|
1 | | -import { defineConfig } from 'vitepress' |
2 | | -import Icons from 'unplugin-icons/vite' |
| 1 | +import { defineConfig } from "vitepress"; |
| 2 | +import Icons from "unplugin-icons/vite"; |
3 | 3 |
|
4 | 4 | export default defineConfig({ |
5 | 5 | vite: { |
6 | | - plugins: [Icons({ compiler: 'vue3', autoInstall: false })] |
| 6 | + plugins: [Icons({ compiler: "vue3", autoInstall: false })], |
7 | 7 | }, |
8 | 8 | title: "Mukea", |
9 | | - |
| 9 | + head: [ |
| 10 | + ["link", { rel: "icon", href: "/favicon.ico" }], |
| 11 | + ["link", { rel: "shortcut icon", href: "/favicon.ico" }], |
| 12 | + ["link", { rel: "apple-touch-icon", href: "/mukea.png" }], |
| 13 | + ], |
| 14 | + |
10 | 15 | // 共享的主题配置 |
11 | 16 | themeConfig: { |
12 | | - logo: '/favicon.ico', |
| 17 | + logo: "/favicon.ico", |
13 | 18 | }, |
14 | | - base: '/', |
| 19 | + base: "/", |
15 | 20 | // i18n 配置核心 |
16 | 21 | locales: { |
17 | 22 | // 默认语言(中文) - 对应根目录 / |
18 | 23 | root: { |
19 | | - label: '简体中文', |
20 | | - lang: 'zh-CN', |
| 24 | + label: "简体中文", |
| 25 | + lang: "zh-CN", |
21 | 26 | title: "Mukea", |
22 | 27 | description: "一个可爱、主动的桌面 AI 伙伴", |
23 | 28 | themeConfig: { |
24 | 29 | nav: [ |
25 | | - { text: '下载', link: '/download' }, |
26 | | - { text: '博客', link: '/blog', target: '_blank', rel: 'noreferrer' } |
| 30 | + { text: "下载", link: "/download" }, |
| 31 | + { text: "博客", link: "/blog", target: "_blank", rel: "noreferrer" }, |
27 | 32 | ], |
28 | 33 | sidebar: { |
29 | | - '/blog/': [ |
| 34 | + "/blog/": [ |
30 | 35 | { |
31 | | - text: '博客', |
| 36 | + text: "博客", |
32 | 37 | items: [ |
33 | | - { text: '为什么我们要做 Mukea', link: '/blog/' }, |
34 | | - { text: 'Mukea形象', link: '/blog/mukea-image' } |
35 | | - ] |
36 | | - } |
37 | | - ] |
38 | | - } |
39 | | - } |
| 38 | + { text: "为什么我们要做 Mukea", link: "/blog/" }, |
| 39 | + { text: "Mukea形象", link: "/blog/mukea-image" }, |
| 40 | + ], |
| 41 | + }, |
| 42 | + ], |
| 43 | + }, |
| 44 | + }, |
40 | 45 | }, |
41 | 46 | // 英文 - 对应 /en/ 目录 |
42 | 47 | en: { |
43 | | - label: 'English', |
44 | | - lang: 'en-US', |
45 | | - link: '/en/', // 指向英文版首页 |
| 48 | + label: "English", |
| 49 | + lang: "en-US", |
| 50 | + link: "/en/", // 指向英文版首页 |
46 | 51 | title: "Mukea", |
47 | 52 | description: "A cute, proactive AI companion.", |
48 | 53 | themeConfig: { |
49 | 54 | nav: [ |
50 | | - { text: 'Download', link: '/en/download' }, |
51 | | - { text: 'Blog', link: '/en/blog', target: '_blank', rel: 'noreferrer' } |
| 55 | + { text: "Download", link: "/en/download" }, |
| 56 | + { |
| 57 | + text: "Blog", |
| 58 | + link: "/en/blog", |
| 59 | + target: "_blank", |
| 60 | + rel: "noreferrer", |
| 61 | + }, |
52 | 62 | ], |
53 | 63 | sidebar: { |
54 | | - '/en/blog/': [ |
| 64 | + "/en/blog/": [ |
55 | 65 | { |
56 | | - text: 'Blog', |
| 66 | + text: "Blog", |
57 | 67 | items: [ |
58 | | - { text: 'Why We’re Building Mukea', link: '/en/blog/' }, |
59 | | - { text: 'Mukea Look', link: '/en/blog/mukea-image' } |
60 | | - ] |
61 | | - } |
62 | | - ] |
63 | | - } |
64 | | - } |
65 | | - } |
66 | | - } |
67 | | -}) |
| 68 | + { text: "Why We’re Building Mukea", link: "/en/blog/" }, |
| 69 | + { text: "Mukea Look", link: "/en/blog/mukea-image" }, |
| 70 | + ], |
| 71 | + }, |
| 72 | + ], |
| 73 | + }, |
| 74 | + }, |
| 75 | + }, |
| 76 | + }, |
| 77 | +}); |
0 commit comments