github.com/igoogolx/clash@v1.19.8/docs/.vitepress/locales/zh_CN.ts (about) 1 import { createRequire } from 'module' 2 import { defineConfig } from 'vitepress' 3 import { generateSidebarChapter } from './side_bar.js' 4 5 const require = createRequire(import.meta.url) 6 7 const chapters = generateSidebarChapter('zh_CN', new Map([ 8 ['introduction', '简介'], 9 ['configuration', '配置'], 10 ['premium', 'Premium 版本'], 11 ['runtime', '运行时'], 12 ['advanced-usages', '高级用法'], 13 ])) 14 15 export default defineConfig({ 16 lang: 'zh-CN', 17 18 description: '基于规则的 Go 网络隧道. ', 19 20 themeConfig: { 21 nav: nav(), 22 23 logo: '/logo.png', 24 25 lastUpdatedText: '最后更新于', 26 27 sidebar: chapters, 28 29 socialLinks: [ 30 { icon: 'github', link: 'https://github.com/Dreamacro/clash' }, 31 ], 32 33 editLink: { 34 pattern: 'https://github.com/Dreamacro/clash/edit/master/docs/:path', 35 text: '在 GitHub 中编辑此页面' 36 }, 37 38 docFooter: { prev: '上一篇', next: '下一篇' }, 39 40 outline: { 41 level: 'deep', 42 label: '页面导航', 43 }, 44 45 } 46 }) 47 48 function nav() { 49 return [ 50 { text: '主页', link: '/zh_CN/' }, 51 { text: '配置', link: '/zh_CN/configuration/configuration-reference' }, 52 { 53 text: '下载', 54 items: [ 55 { text: 'GitHub 开源版', link: 'https://github.com/Dreamacro/clash/releases/' }, 56 { text: 'Premium 版本', link: 'https://github.com/Dreamacro/clash/releases/tag/premium' }, 57 ] 58 } 59 ] 60 }