Skip to content

Commit ac6000a

Browse files
committed
update docs
1 parent 0f1cd3a commit ac6000a

File tree

6 files changed

+67
-13
lines changed

6 files changed

+67
-13
lines changed

docs/.vuepress/bulletin.ts

Lines changed: 27 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,40 @@
11
import { BulletinOptions } from "vuepress-theme-plume";
22

33
export const myBulletin: BulletinOptions = {
4+
layout: 'center',
5+
border: true,
46
enablePage: true,
5-
lifetime: 'session',
7+
lifetime: 'always',
68
contentType: 'markdown',
79
title: '公告',
810
content: `\
9-
v1.7.0 已发布!🤗
11+
::: center
12+
📣📣📣 号外号外 📣📣📣
13+
:::
1014
11-
此版本我们为大家带来了史诗级新功能
15+
我们正在为 ==v1.8.0=={.tip} 做最后的准备,为后端响应信息提供 ==i18n=={.important} 支持
1216
13-
**celery 动态定时任务**
17+
此功能向后兼容并已准备就绪:[PR #753](https://github.com/fastapi-practices/fastapi_best_architecture/pull/753)
1418
15-
---
19+
::: chat title="群聊"
20+
{:2025-08-14 22:53:00}
1621
17-
您现在可以通过 【导航栏 -> 前端(在线体验)-> 线上演示】 获取全新页面预览
22+
{.}
23+
i18n ==PR== 已经准备好了,如果没有问题,让我们合并它
24+
25+
{downdawn}
26+
这个改版有点大,我们是否要考虑一下做分支,或者发起投票征求一下意见
27+
28+
{.}
29+
这个 PR 目前是向后兼容的,理论上没有什么问题,我的想法是在本周的 v1.8.0 版本中提供,稍后我在 discord 上面发个投票看看
30+
31+
{.}
32+
我们暂时先不要合并,等待社区反馈结果
33+
34+
{.}
35+
==欢迎参与=={.important}:[投票链接](https://discord.com/channels/1185035164577972344/1322545989239832617/1405572816363065536)
36+
:::
37+
38+
这是一个重大变更,非常期待大家的参与 🤗🤗🤗
1839
`,
1940
}

docs/.vuepress/sidebar.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,16 @@ export const mySidebar: ThemeSidebarMulti = {
3434
{ text: 'Schema', link: 'schema' },
3535
{ text: '路由', link: 'router' },
3636
{ text: 'CRUD', link: 'CRUD' },
37-
{ text: '接口响应', link: 'response' },
3837
{ text: '分页', link: 'pagination' },
39-
{ text: '自定义异常', link: '/planet', badge: { text: '专业版', type: 'warning' } },
40-
{ text: '节流', link: 'limit' },
38+
{ text: '接口响应', link: 'response' },
39+
{ text: '国际化', link: 'i18n', badge: 'NEW' },
4140
{ text: 'JWT', link: 'jwt' },
4241
{ text: 'RBAC', link: 'RBAC' },
4342
{ text: 'OAuth 2.0', link: 'oauth2' },
43+
{ text: '自定义异常', link: '/planet', badge: { text: '专业版', type: 'warning' } },
44+
{ text: '节流', link: 'limit' },
4445
{ text: '跨域', link: 'CORS' },
45-
{ text: '事务', link: 'transaction' },
46+
{ text: 'SQLA 事务', link: 'transaction' },
4647
{ text: '切换主键', link: 'pk' },
4748
{ text: '切换数据库', link: 'db' },
4849
{ text: '数据权限', link: '/planet', badge: { text: '专业版', type: 'warning' } },

docs/.vuepress/styles/custom.css

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
:root {
2-
/* 公告宽度 */
3-
--vp-bulletin-width: 350px;
42
/* 链接颜色、强调色 */
53
--vp-c-brand-1: rgba(0, 148, 133, 1);
64
/* 链接、按钮 hover 颜色 */
@@ -32,6 +30,11 @@
3230
}
3331
}
3432

33+
/* 公告板 */
34+
.vp-bulletin {
35+
width: 30%
36+
}
37+
3538
/* 首页文字说明 */
3639
.hero-text {
3740
margin: 24px 0 40px !important;

docs/.vuepress/theme.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ export const myTheme: Theme = plumeTheme({
4444
markdown: {
4545
abbr: true,
4646
annotation: true,
47+
chat: true,
4748
mermaid: true,
4849
},
4950
codeHighlighter: {

docs/backend/reference/i18n.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
title: 国际化
3+
---
4+
5+
::: center
6+
7+
<h2>此功能正在投票中</h2>
8+
9+
:::
10+
11+
::: chat title="群聊"
12+
{:2025-08-14 22:53:00}
13+
14+
{.}
15+
i18n ==PR== 已经准备好了,如果没有问题,让我们合并它
16+
17+
{downdawn}
18+
这个改版有点大,我们是否要考虑一下做分支,或者发起投票征求一下意见
19+
20+
{.}
21+
这个 PR 目前是向后兼容的,理论上没有什么问题,我的想法是在本周的 v1.8.0 版本中提供,稍后我在 discord 上面发个投票看看
22+
23+
{.}
24+
我们暂时先不要合并,等待社区反馈结果
25+
26+
{.}
27+
==欢迎参与=={.important}:[投票链接](https://discord.com/channels/1185035164577972344/1322545989239832617/1405572816363065536)
28+
:::

docs/backend/reference/transaction.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: 事务
2+
title: SQLA 事务
33
---
44

55
默认情况下,如果将数据库引擎参数 `echo` 设置为 True,你将会看到事务总是被开启,即便那是一个查询语句。但这并不是因为我们错误的使用了

0 commit comments

Comments
 (0)