import DefaultTheme from 'vitepress/theme' import { nav } from './nav' import { sidebar } from './sidebar' export const themeConfig: DefaultTheme.Config = { nav, // 导航栏配置 sidebar, // 侧边栏配置 logo: '/logo.png', outline: 'deep', // 右侧大纲标题层级 outlineTitle: '目录', // 右侧大纲标题文本配置 lastUpdatedText: '最后更新', // 最后更新时间文本配置, 需先配置lastUpdated为true // 文档页脚文本配置 docFooter: { prev: '上一篇', next: '下一篇' }, // 编辑链接配置 editLink: { pattern: 'https://github.com/Charles7c/charles7c.github.io/edit/main/docs/:path', text: '不妥之处,敬请雅正' }, // 全文搜索配置 algolia: { appId: 'DBZ0G9HBUY', apiKey: '00cef480a543003d05d9808110ea5f65', indexName: 'charles7c' }, // 导航栏右侧社交链接配置 socialLinks: [ { icon: 'github', link: 'https://github.com/Charles7c/charles7c.github.io' }, { icon: { svg: '码云' }, link: 'https://gitee.com/Charles7c/charles7c' }, { icon: { svg: '查尔斯的网址导航' }, link: 'https://nav.charles7c.top' }, { icon: { svg: ` ContiNew Admin ` }, link: 'https://cnadmin.charles7c.top/' } ], // 自定义扩展: 文章元数据配置 articleMetadataConfig: { author: '查尔斯', // 文章全局默认作者名称 authorLink: '/about/me', // 点击作者名时默认跳转的链接 showViewCount: true // 是否显示文章阅读数, 需要在 docs/.vitepress/theme/api/config.js 及 interface.js 配置好相应 API 接口 }, // 自定义扩展: 文章版权配置 copyrightConfig: { license: '署名-相同方式共享 4.0 国际 (CC BY-SA 4.0)', licenseLink: 'http://creativecommons.org/licenses/by-sa/4.0/' }, // 自定义扩展: 评论配置 commentConfig: { type: 'gitalk', showComment: true // 是否显示评论 }, // 自定义扩展: 页脚配置 footerConfig: { showFooter: true, // 是否显示页脚 icpRecordCode: '津ICP备2022005864号-2', // ICP备案号 publicSecurityRecordCode: '津公网安备12011202000677号', // 联网备案号 copyright: `Copyright © 2019-${new Date().getFullYear()} Charles7c` // 版权信息 } }