import {defineConfig} from 'vitepress' // https://vitepress.dev/reference/site-config export default defineConfig({ lang: 'zh-CN', title: "Mybatis-Flex", titleTemplate: ':title - Mybatis-Flex 官方网站', description: "一个优雅的 Mybatis 增强框架", // logo: '/assets/images/logo02.png', themeConfig: { // https://vitepress.dev/reference/default-theme-config // logo: '/assets/images/logo01.png', nav: [ {text: '首页', link: '/'}, {text: '帮助文档', link: '/zh/what-is-mybatisflex'}, {text: '常见问题', link: '/zh/faq'}, { text: '周边', items: [ {text: '示例代码', link: 'https://gitee.com/mybatis-flex/mybatis-flex-samples'}, {text: '更新日志', link: 'https://gitee.com/mybatis-flex/mybatis-flex/releases'}, ] }, { text: '获取源码', items: [ {text: 'Gitee', link: 'https://gitee.com/mybatis-flex/mybatis-flex'}, {text: 'Github', link: 'https://github.com/mybatis-flex/mybatis-flex'} ] }, ], sidebar: [ { text: '简介', items: [ {text: 'Mybatis-Flex 是什么', link: '/zh/introduction/what-is-mybatisflex'}, {text: '快速开始', link: '/zh/introduction/getting-started'}, {text: 'Maven 依赖', link: '/zh/introduction/maven'}, {text: '和同类框架「功能」对比', link: '/zh/introduction/comparison'}, {text: '和同类框架「性能」对比', link: '/zh/introduction/benchmark'}, {text: '使用 Mybatis 原生功能', link: '/zh/introduction/use-mybatis-native'}, {text: '支持的数据库类型', link: '/zh/introduction/support-database'}, {text: 'QQ 交流群', link: '/zh/introduction/qq-group'}, ] }, { text: '基础功能', items: [ {text: '增删改', link: '/zh/base/add-delete-update'}, {text: '查询和分页', link: '/zh/base/query'}, {text: 'QueryWrapper', link: '/zh/base/querywrapper'}, ] }, { text: '核心功能', items: [ {text: '@Table 注解', link: '/zh/core/table'}, {text: '@Id 注解', link: '/zh/core/id'}, {text: '@Column 注解', link: '/zh/core/column'}, {text: 'Db + Row', link: '/zh/core/db-row'}, {text: '逻辑删除', link: '/zh/core/logic-delete'}, {text: '乐观锁', link: '/zh/core/version'}, {text: '数据填充', link: '/zh/core/fill'}, {text: '数据脱敏', link: '/zh/core/mask'}, {text: 'SQL 审计', link: '/zh/core/audit'}, {text: 'SQL 打印', link: '/zh/core/sql-print'}, {text: '多数据源', link: '/zh/core/multi-datasource'}, {text: '事务管理', link: '/zh/core/tx'}, {text: '字段权限', link: '/zh/core/columns-permission'}, {text: '字段加密', link: '/zh/core/columns-encrypt'}, {text: '字典回写', link: '/zh/core/columns-dict'}, {text: '枚举属性', link: '/zh/core/enum-property'}, {text: '多租户', link: '/zh/core/multi-tenancy'}, ] }, { text: '其他', items: [ {text: '代码生成器', link: '/zh/others/codegen'}, {text: 'APT 设置', link: '/zh/others/apt'}, ] } ], footer: { message: 'Released under the Apache License.', copyright: 'Copyright © 2022-present Mybatis-Flex,备案号:黔ICP备19009310号-9 ' } }, head: [ [ 'link', {rel: 'icon', href: '/assets/images/logo02.png'} ], [// 添加百度统计 "script", {}, ` var _hmt = _hmt || []; (function() { var hm = document.createElement("script"); hm.src = "https://hm.baidu.com/hm.js?3f50d5fbe3bf955411748b5616b24a24"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s); })(); ` ], [// 自动跳转 https "script", {}, ` if (location.protocol !== 'https:' && location.hostname != 'localhost') { location.href = 'https://' + location.hostname + location.pathname + location.search; } ` ] ], })