diff --git a/docs/deploy.sh b/docs/deploy.sh new file mode 100755 index 00000000..6e3f3421 --- /dev/null +++ b/docs/deploy.sh @@ -0,0 +1,12 @@ +#!/usr/bin/env sh + +# abort on errors +set -e + +# build +npm run docs:build +#vuepress build . + +ossutil rm oss://mybaits-flex/ -rf +ossutil cp -rf assets/images oss://mybaits-flex/assets/images +ossutil cp -rf .vitepress/dist oss://mybaits-flex/ \ No newline at end of file diff --git a/docs/index.md b/docs/index.md index de870bb8..587f379c 100644 --- a/docs/index.md +++ b/docs/index.md @@ -1,5 +1,4 @@ --- -# https://vitepress.dev/reference/default-theme-home-page layout: home hero: diff --git a/docs/zh/getting-started.md b/docs/zh/getting-started.md index 9556934a..f576e0e4 100644 --- a/docs/zh/getting-started.md +++ b/docs/zh/getting-started.md @@ -74,12 +74,12 @@ public class HelloWorld { ``` > 以上的示例中, `AccountMapper.class` 为 Mybatis-Flex 通过 APT 自动生成,无需手动编码。 -> 也可以关闭自动生成功能,手动编写 AccountMapper,更多查看 [APT 文档](/zh/apt)。 +> 也可以关闭自动生成功能,手动编写 AccountMapper,更多查看 [APT 文档](./apt)。 ## 更多示例 - 示例 1:[Mybatis-Flex 原生(非 Spring)](https://gitee.com/mybatis-flex/mybatis-flex/tree/main/mybatis-flex-test/mybatis-flex-native-test) -- 示例 2:[Mybatis-Flex with Spring]() -- 示例 3:[Mybatis-Flex with Spring boot]() -- 示例 4:[Db + Row]() \ No newline at end of file +- 示例 2:[Mybatis-Flex with Spring](https://gitee.com/mybatis-flex/mybatis-flex/tree/main/mybatis-flex-test/mybatis-flex-spring-test) +- 示例 3:[Mybatis-Flex with Spring boot](https://gitee.com/mybatis-flex/mybatis-flex/tree/main/mybatis-flex-test/mybatis-flex-spring-boot-test) +- 示例 4:[Db + Row](https://gitee.com/mybatis-flex/mybatis-flex/blob/main/mybatis-flex-test/mybatis-flex-native-test/src/main/java/com/mybatisflex/test/DbTestStarter.java) \ No newline at end of file diff --git a/docs/zh/querywrapper.md b/docs/zh/querywrapper.md index 86710ac2..eb12c648 100644 --- a/docs/zh/querywrapper.md +++ b/docs/zh/querywrapper.md @@ -365,6 +365,6 @@ SELECT * FROM "tb_account" ORDER BY "id" DESC ROWS 20 TO 30 会自动根据 Entity 类定义的字段帮你生成 "ACCOUNT" 类以及 Entity 对应的 Mapper 类, 通过开发工具构建项目(如下图), 或者执行 maven 编译命令: `mvn clean package` 都可以自动生成。这个原理和 lombok 一致。 -![](../../assets/images/build_idea.png) +![](../assets/images/build_idea.png) > 更多关于 APT 的配置,请进入 [APT 配置章节](./apt) 了解。 \ No newline at end of file