mirror of
https://gitee.com/mybatis-flex/mybatis-flex.git
synced 2025-12-07 00:58:24 +08:00
update docs
This commit is contained in:
parent
582067e7e7
commit
f1d07d5341
@ -1,9 +1,10 @@
|
||||
import { defineConfig } from 'vitepress'
|
||||
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',
|
||||
|
||||
@ -11,62 +12,64 @@ export default defineConfig({
|
||||
// https://vitepress.dev/reference/default-theme-config
|
||||
// logo: '/assets/images/logo01.png',
|
||||
nav: [
|
||||
{ text: '首页', link: '/' },
|
||||
{ text: '帮助文档', link: '/zh/what-is-mybatisflex' },
|
||||
{ text: '更新日志', link: 'https://gitee.com/mybatis-flex/mybatis-flex/releases' },
|
||||
{ text: '示例代码', link: 'https://gitee.com/mybatis-flex/mybatis-flex-samples' },
|
||||
{ text: '源码', items: [
|
||||
{ text: 'Gitee', link: 'https://gitee.com/mybatis-flex/mybatis-flex' },
|
||||
{ text: 'Github', link: 'https://github.com/mybatis-flex/mybatis-flex' }
|
||||
] },
|
||||
{text: '首页', link: '/'},
|
||||
{text: '帮助文档', link: '/zh/what-is-mybatisflex'},
|
||||
{text: '更新日志', link: 'https://gitee.com/mybatis-flex/mybatis-flex/releases'},
|
||||
{text: '示例代码', link: 'https://gitee.com/mybatis-flex/mybatis-flex-samples'},
|
||||
{
|
||||
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/what-is-mybatisflex' },
|
||||
{ text: '快速开始', link: '/zh/getting-started' },
|
||||
{ text: 'Maven 依赖', link: '/zh/maven' },
|
||||
{ text: '和 Spring 整合', link: '/zh/mybatis-flex-with-spring' },
|
||||
{ text: '和同类框架对比', link: '/zh/comparison' },
|
||||
{ text: 'QQ 交流群', link: '/zh/qq-group' },
|
||||
{text: 'Mybatis-Flex 是什么', link: '/zh/what-is-mybatisflex'},
|
||||
{text: '快速开始', link: '/zh/getting-started'},
|
||||
{text: 'Maven 依赖', link: '/zh/maven'},
|
||||
{text: '和 Spring 整合', link: '/zh/mybatis-flex-with-spring'},
|
||||
{text: '和同类框架对比', link: '/zh/comparison'},
|
||||
{text: 'QQ 交流群', link: '/zh/qq-group'},
|
||||
]
|
||||
},
|
||||
{
|
||||
text: '基础功能',
|
||||
items: [
|
||||
{ text: '增删改', link: '/zh/add-delete-update' },
|
||||
{ text: '查询和分页', link: '/zh/query' },
|
||||
{ text: 'QueryWrapper', link: '/zh/querywrapper' },
|
||||
{text: '增删改', link: '/zh/add-delete-update'},
|
||||
{text: '查询和分页', link: '/zh/query'},
|
||||
{text: 'QueryWrapper', link: '/zh/querywrapper'},
|
||||
]
|
||||
},
|
||||
{
|
||||
text: '核心功能',
|
||||
items: [
|
||||
{ text: '@Table 注解', link: '/zh/table' },
|
||||
{ text: '@Id 注解', link: '/zh/id' },
|
||||
{ text: '@Column 注解', link: '/zh/column' },
|
||||
{ text: 'Db + Row', link: '/zh/db-row' },
|
||||
{ text: '逻辑删除', link: '/zh/logic-delete' },
|
||||
{ text: '乐观锁', link: '/zh/version' },
|
||||
{ text: '数据填充', link: '/zh/fill' },
|
||||
{ text: '数据脱敏', link: '/zh/mask' },
|
||||
{ text: 'SQL 审计', link: '/zh/audit' },
|
||||
{ text: 'SQL 打印', link: '/zh/sql-print' },
|
||||
{ text: '多数据源', link: '/zh/multi-datasource' },
|
||||
{ text: '事务管理', link: '/zh/tx' },
|
||||
{ text: '字段权限', link: '/zh/columns-permission' },
|
||||
{ text: '字段加密', link: '/zh/columns-encrypt' },
|
||||
{ text: '字典回显', link: '/zh/columns-dict' },
|
||||
{ text: '多租户', link: '/zh/multi-tenancy' },
|
||||
{text: '@Table 注解', link: '/zh/table'},
|
||||
{text: '@Id 注解', link: '/zh/id'},
|
||||
{text: '@Column 注解', link: '/zh/column'},
|
||||
{text: 'Db + Row', link: '/zh/db-row'},
|
||||
{text: '逻辑删除', link: '/zh/logic-delete'},
|
||||
{text: '乐观锁', link: '/zh/version'},
|
||||
{text: '数据填充', link: '/zh/fill'},
|
||||
{text: '数据脱敏', link: '/zh/mask'},
|
||||
{text: 'SQL 审计', link: '/zh/audit'},
|
||||
{text: 'SQL 打印', link: '/zh/sql-print'},
|
||||
{text: '多数据源', link: '/zh/multi-datasource'},
|
||||
{text: '事务管理', link: '/zh/tx'},
|
||||
{text: '字段权限', link: '/zh/columns-permission'},
|
||||
{text: '字段加密', link: '/zh/columns-encrypt'},
|
||||
{text: '字典回显', link: '/zh/columns-dict'},
|
||||
{text: '多租户', link: '/zh/multi-tenancy'},
|
||||
]
|
||||
},
|
||||
{
|
||||
text: '其他',
|
||||
items: [
|
||||
{ text: '代码生成器', link: '/zh/codegen' },
|
||||
{ text: 'APT 设置', link: '/zh/apt' },
|
||||
{text: '代码生成器', link: '/zh/codegen'},
|
||||
{text: 'APT 设置', link: '/zh/apt'},
|
||||
]
|
||||
}
|
||||
],
|
||||
@ -78,11 +81,10 @@ export default defineConfig({
|
||||
},
|
||||
head: [
|
||||
[
|
||||
'link',{ rel: 'icon', href: '/assets/images/logo02.png' }
|
||||
'link', {rel: 'icon', href: '/assets/images/logo02.png'}
|
||||
],
|
||||
|
||||
[
|
||||
// 添加百度统计
|
||||
[// 添加百度统计
|
||||
"script",
|
||||
{},
|
||||
`
|
||||
@ -93,6 +95,16 @@ export default defineConfig({
|
||||
var s = document.getElementsByTagName("script")[0];
|
||||
s.parentNode.insertBefore(hm, s);
|
||||
})();
|
||||
`
|
||||
],
|
||||
|
||||
[// 自动跳转 https
|
||||
"script",
|
||||
{},
|
||||
`
|
||||
if (location.protocol !== 'https:') {
|
||||
location.href = 'https://' + location.hostname + location.pathname + location.search;
|
||||
}
|
||||
`
|
||||
]
|
||||
],
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user