github.com/igoogolx/clash@v1.19.8/docs/.vitepress/config.ts (about)

     1  import { defineConfig } from 'vitepress'
     2  import locales from './locales'
     3  
     4  // https://vitepress.dev/reference/site-config
     5  export default defineConfig({
     6    title: 'Clash',
     7  
     8    base: '/clash/',
     9  
    10    head: [
    11      [
    12        'link',
    13        { rel: 'icon', type: "image/x-icon", href: '/clash/logo.png' }
    14      ],
    15    ],
    16  
    17    locales: locales.locales,
    18  
    19    lastUpdated: true,
    20  
    21    themeConfig: {
    22      search: {
    23        provider: 'local',
    24        options: {
    25          locales: {
    26            zh_CN: {
    27              translations: {
    28                button: {
    29                  buttonText: '搜索文档',
    30                  buttonAriaLabel: '搜索文档'
    31                },
    32                modal: {
    33                  noResultsText: '无法找到相关结果',
    34                  resetButtonTitle: '清除查询条件',
    35                  footer: {
    36                    selectText: '选择',
    37                    navigateText: '切换'
    38                  }
    39                }
    40              }
    41            }
    42          },
    43  
    44        }
    45      }
    46    },
    47  })