|
| 1 | +import { defineConfig } from 'vitepress'; |
| 2 | +import lightbox from 'vitepress-plugin-lightbox'; |
| 3 | + |
| 4 | +// https://vitepress.dev/reference/site-config |
| 5 | +export default defineConfig({ |
| 6 | + title: 'Algo Bootstrap 使用文档', |
| 7 | + lang: 'zh-CN', |
| 8 | + publicPath: 'https://cdn.example.com/assets/', |
| 9 | + themeConfig: { |
| 10 | + // https://vitepress.dev/reference/default-theme-config |
| 11 | + nav: [ |
| 12 | + { text: '返回主页', link: 'https://ab.algoux.cn/' }, |
| 13 | + { text: 'algoUX Products', link: 'https://algoux.org/' }, |
| 14 | + ], |
| 15 | + |
| 16 | + sidebar: [ |
| 17 | + { |
| 18 | + text: '使用指南', |
| 19 | + items: [ |
| 20 | + { text: '概述', link: '/usages/summary' }, |
| 21 | + { text: '使用代码存放文件夹', link: '/usages/project' }, |
| 22 | + { |
| 23 | + text: '使用 VS Code 编程', |
| 24 | + items: [ |
| 25 | + { text: '基本使用', link: '/usages/vscode/basic' }, |
| 26 | + { text: '代码片段', link: '/usages/vscode/snippets' }, |
| 27 | + { text: '辅助功能', link: '/usages/vscode/accessibility' }, |
| 28 | + { text: '调试', link: '/usages/vscode/debug' }, |
| 29 | + ], |
| 30 | + }, |
| 31 | + { |
| 32 | + text: '进阶使用', |
| 33 | + items: [ |
| 34 | + { text: '设置代码初始化模板', link: '/usages/advanced/template' }, |
| 35 | + { text: 'CLI 命令', link: '/usages/advanced/cli' }, |
| 36 | + ], |
| 37 | + }, |
| 38 | + ], |
| 39 | + }, |
| 40 | + { |
| 41 | + text: '常见问题', |
| 42 | + link: '/faq', |
| 43 | + }, |
| 44 | + { |
| 45 | + text: '关于 Algo Bootstrap', |
| 46 | + link: '/about', |
| 47 | + }, |
| 48 | + ], |
| 49 | + |
| 50 | + socialLinks: [{ icon: 'github', link: 'https://github.com/algoux/algo-bootstrap' }], |
| 51 | + |
| 52 | + footer: { |
| 53 | + message: 'Born for Programming Beginners.', |
| 54 | + copyright: 'Copyright © 2019-present algoUX', |
| 55 | + }, |
| 56 | + |
| 57 | + externalLinkIcon: true, |
| 58 | + |
| 59 | + darkModeSwitchLabel: '切换主题', |
| 60 | + lightModeSwitchTitle: '切换到明亮主题', |
| 61 | + darkModeSwitchTitle: '切换到暗黑主题', |
| 62 | + sidebarMenuLabel: '菜单', |
| 63 | + returnToTopLabel: '返回顶部', |
| 64 | + outlineTitle: '目录', |
| 65 | + docFooter: { |
| 66 | + prev: '上一篇', |
| 67 | + next: '下一篇', |
| 68 | + }, |
| 69 | + }, |
| 70 | + markdown: { |
| 71 | + config: (md) => { |
| 72 | + // Use lightbox plugin |
| 73 | + md.use(lightbox, {}); |
| 74 | + }, |
| 75 | + }, |
| 76 | + lastUpdated: true, |
| 77 | + head: [['link', { rel: 'icon', href: '/favicon.ico' }]], |
| 78 | +}); |
0 commit comments