|
| 1 | +import { defineConfig, type DefaultTheme } from 'vitepress' |
| 2 | + |
| 3 | +export const en = defineConfig({ |
| 4 | + lang: 'en-US', |
| 5 | + description: 'Make your app distribution with ease.', |
| 6 | + |
| 7 | + themeConfig: { |
| 8 | + nav: nav(), |
| 9 | + |
| 10 | + sidebar: { |
| 11 | + '/': { base: '', items: sidebarGuide() }, |
| 12 | + }, |
| 13 | + |
| 14 | + editLink: { |
| 15 | + pattern: |
| 16 | + 'https://github.com/fastforgedev/fastforge/edit/main/docs/:path', |
| 17 | + text: 'Edit this page on GitHub', |
| 18 | + }, |
| 19 | + |
| 20 | + footer: { |
| 21 | + message: 'Released under the MIT License.', |
| 22 | + copyright: 'Copyright © 2021-present LiJianying', |
| 23 | + }, |
| 24 | + }, |
| 25 | +}) |
| 26 | + |
| 27 | +function nav(): DefaultTheme.NavItem[] { |
| 28 | + return [ |
| 29 | + { |
| 30 | + text: 'Guide', |
| 31 | + link: '/getting-started', |
| 32 | + activeMatch: '/getting-started', |
| 33 | + }, |
| 34 | + ] |
| 35 | +} |
| 36 | + |
| 37 | +function sidebarGuide(): DefaultTheme.SidebarItem[] { |
| 38 | + return [ |
| 39 | + { |
| 40 | + text: 'Guide', |
| 41 | + collapsed: false, |
| 42 | + items: [ |
| 43 | + { text: 'Getting Started', link: 'getting-started' }, |
| 44 | + { text: 'Distribute Options', link: 'distribute-options' }, |
| 45 | + { text: 'CLI', link: 'cli' }, |
| 46 | + ], |
| 47 | + }, |
| 48 | + { |
| 49 | + text: '制作器', |
| 50 | + collapsed: false, |
| 51 | + items: [ |
| 52 | + { text: 'aab', link: '/makers/aab/' }, |
| 53 | + { text: 'apk', link: '/makers/apk/' }, |
| 54 | + { text: 'appimage', link: '/makers/appimage/' }, |
| 55 | + { text: 'deb', link: '/makers/deb/' }, |
| 56 | + { text: 'dmg', link: '/makers/dmg/' }, |
| 57 | + { text: 'exe', link: '/makers/exe/' }, |
| 58 | + { text: 'ipa', link: '/makers/ipa/' }, |
| 59 | + { text: 'msix', link: '/makers/msix/' }, |
| 60 | + { text: 'pkg', link: '/makers/pkg/' }, |
| 61 | + { text: 'rpm', link: '/makers/rpm/' }, |
| 62 | + { text: 'zip', link: '/makers/zip/' }, |
| 63 | + ], |
| 64 | + }, |
| 65 | + { |
| 66 | + text: '发布器', |
| 67 | + collapsed: false, |
| 68 | + items: [ |
| 69 | + { text: 'appcenter', link: '/publishers/appcenter/' }, |
| 70 | + { text: 'appstore', link: '/publishers/appstore/' }, |
| 71 | + { text: 'fir', link: '/publishers/fir/' }, |
| 72 | + { |
| 73 | + text: 'firebase-hosting', |
| 74 | + link: '/publishers/firebase-hosting/', |
| 75 | + }, |
| 76 | + { text: 'firebase', link: '/publishers/firebase/' }, |
| 77 | + { text: 'github', link: '/publishers/github/' }, |
| 78 | + { text: 'pgyer', link: '/publishers/pgyer/' }, |
| 79 | + { text: 'playstore', link: '/publishers/playstore/' }, |
| 80 | + { text: 'qiniu', link: '/publishers/qiniu/' }, |
| 81 | + { text: 'vercel', link: '/publishers/vercel/' }, |
| 82 | + ], |
| 83 | + }, |
| 84 | + { |
| 85 | + text: 'Tools', |
| 86 | + collapsed: false, |
| 87 | + items: [ |
| 88 | + { |
| 89 | + text: 'Parse App Package', |
| 90 | + link: '/tools/parse-app-package/', |
| 91 | + }, |
| 92 | + ], |
| 93 | + }, |
| 94 | + ] |
| 95 | +} |
0 commit comments