github.com/igoogolx/clash@v1.19.8/docs/.vitepress/locales/en_US.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('en_US', new Map([ 8 ['introduction', 'Introduction'], 9 ['configuration', 'Configuration'], 10 ['premium', 'Premium'], 11 ['runtime', 'Runtime'], 12 ['advanced-usages', 'Advanced Usages'], 13 ])) 14 15 export default defineConfig({ 16 lang: 'en-US', 17 18 description: 'A rule-based tunnel in Go.', 19 20 themeConfig: { 21 nav: nav(), 22 23 logo: '/logo.png', 24 25 lastUpdatedText: 'Last updated at', 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: 'Edit this page on GitHub' 36 }, 37 38 outline: { 39 level: 'deep', 40 label: 'On this page', 41 }, 42 43 } 44 }) 45 46 function nav() { 47 return [ 48 { text: 'Home', link: '/' }, 49 { text: 'Configuration', link: '/configuration/configuration-reference' }, 50 { 51 text: 'Download', 52 items: [ 53 { text: 'Open-source Edition', link: 'https://github.com/Dreamacro/clash/releases/' }, 54 { text: 'Premium Edition', link: 'https://github.com/Dreamacro/clash/releases/tag/premium' }, 55 ] 56 } 57 ] 58 } 59 60