Skip to content

Commit edad3ee

Browse files
committed
update docs
1 parent 54a838c commit edad3ee

File tree

8 files changed

+37
-30
lines changed

8 files changed

+37
-30
lines changed

docs/.vuepress/bulletin.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import {BulletinOptions} from "vuepress-theme-plume";
1+
import { BulletinOptions } from "vuepress-theme-plume";
22

33
export const myBulletin: BulletinOptions = {
44
enablePage: true,
55
lifetime: 'session',
66
contentType: 'markdown',
7-
title: 'FasAPI 最佳架构',
8-
content: '欢迎大家加入 Discord 社区闲聊,分享,提供建议,高频艾特,你们的活跃度是我更新的动力 🌹',
7+
title: '通知/公告',
8+
content: '插件系统已发布, 欢迎体验和共创 🤗',
99
}

docs/.vuepress/client.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {defineClientConfig} from 'vuepress/client'
1+
import { defineClientConfig } from 'vuepress/client'
22
import RepoCard from 'vuepress-theme-plume/features/RepoCard.vue'
33
import Layout from './layouts/Layout.vue'
44

@@ -7,7 +7,7 @@ import Swiper from "./components/Swiper.vue";
77
import SponsorPanel from "./components/SponsorPanel.vue";
88

99
export default defineClientConfig({
10-
enhance({app}) {
10+
enhance({ app }) {
1111
app.component('RepoCard', RepoCard)
1212
app.component('Swiper', Swiper)
1313
app.component('SponsorPanel', SponsorPanel)

docs/.vuepress/data/sponsors.ts

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
import {ref} from "vue";
1+
import { ref } from "vue";
2+
3+
const sponsorUrl: string = window.location.origin + '/fastapi_best_architecture_docs/sponsors.html';
24

35
export const goldSponsors = ref([
46
{
@@ -10,13 +12,13 @@ export const goldSponsors = ref([
1012
{
1113
link: '',
1214
text: '成为赞助商',
13-
href: 'https://fastapi-practices.github.io/fastapi_best_architecture_docs/sponsors.html#%E5%B1%95%E4%BD%8D%E8%B5%9E%E5%8A%A9%E5%95%86',
15+
href: sponsorUrl,
1416
alt: 'wu-clan',
1517
},
1618
{
1719
link: '',
1820
text: '成为赞助商',
19-
href: 'https://fastapi-practices.github.io/fastapi_best_architecture_docs/sponsors.html#%E5%B1%95%E4%BD%8D%E8%B5%9E%E5%8A%A9%E5%95%86',
21+
href: sponsorUrl,
2022
alt: 'wu-clan',
2123
}
2224
])
@@ -31,31 +33,31 @@ export const generalSponsors = ref([
3133
{
3234
link: '',
3335
text: '成为赞助商',
34-
href: 'https://fastapi-practices.github.io/fastapi_best_architecture_docs/sponsors.html#%E5%B1%95%E4%BD%8D%E8%B5%9E%E5%8A%A9%E5%95%86',
36+
href: sponsorUrl,
3537
alt: 'wu-clan',
3638
},
3739
{
3840
link: '',
3941
text: '成为赞助商',
40-
href: 'https://fastapi-practices.github.io/fastapi_best_architecture_docs/sponsors.html#%E5%B1%95%E4%BD%8D%E8%B5%9E%E5%8A%A9%E5%95%86',
42+
href: sponsorUrl,
4143
alt: 'wu-clan',
4244
},
4345
{
4446
link: '',
4547
text: '成为赞助商',
46-
href: 'https://fastapi-practices.github.io/fastapi_best_architecture_docs/sponsors.html#%E5%B1%95%E4%BD%8D%E8%B5%9E%E5%8A%A9%E5%95%86',
48+
href: sponsorUrl,
4749
alt: 'wu-clan',
4850
},
4951
{
5052
link: '',
5153
text: '成为赞助商',
52-
href: 'https://fastapi-practices.github.io/fastapi_best_architecture_docs/sponsors.html#%E5%B1%95%E4%BD%8D%E8%B5%9E%E5%8A%A9%E5%95%86',
54+
href: sponsorUrl,
5355
alt: 'wu-clan',
5456
},
5557
{
5658
link: '',
5759
text: '成为赞助商',
58-
href: 'https://fastapi-practices.github.io/fastapi_best_architecture_docs/sponsors.html#%E5%B1%95%E4%BD%8D%E8%B5%9E%E5%8A%A9%E5%95%86',
60+
href: sponsorUrl,
5961
alt: 'wu-clan',
6062
}
6163
])

docs/.vuepress/styles/custom.css

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
:root {
22
/* 公告宽度 */
3-
/*--vp-bulletin-width: 385px;*/
3+
/*--vp-bulletin-width: 333px;*/
44
/* 链接颜色、强调色 */
55
--vp-c-brand-1: rgba(0, 148, 133, 1);
66
/* 链接、按钮 hover 颜色 */
77
--vp-c-brand-2: rgba(0, 148, 133, 1);
88
/* 背景色、边框色 */
99
--vp-c-brand-3: rgba(0, 148, 133, 1);
10+
1011
/* 导航栏分组 */
1112
.vp-menu-group {
1213
.title {
@@ -22,6 +23,7 @@
2223
--vp-c-brand-2: rgba(0, 148, 133, 1);
2324
/* 背景色、边框色 */
2425
--vp-c-brand-3: rgba(0, 148, 133, 1);
26+
2527
/* 导航栏分组 */
2628
.vp-menu-group {
2729
.title {
@@ -30,7 +32,10 @@
3032
}
3133
}
3234

33-
35+
/* 首页文字说明 */
36+
.hero-text {
37+
margin: 24px 0 40px !important;
38+
}
3439

3540
.vp-swiper .swiper-slide-img {
3641
/* 轮播图图片拉伸效果 */

docs/README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,28 +21,28 @@ config:
2121
features:
2222
- title: 最新技术栈
2323
icon: 🚀
24-
details: 基于 FastAPI、SQLAlchemy 2.0、Pydantic-v2、Celery、等最新技术栈
24+
details: 基于 FastAPI、SQLAlchemy 2.0、Pydantic-v2、Celery 等技术栈
2525
- title: 自研架构
2626
icon: 🧠
27-
details: 独特的「伪三层架构」,让所有开发者轻松驾驭
28-
- title: 全局异步
29-
icon: 🔄
30-
details: 基于 async/await + asgiref 实现全局异步处理,告别协程阻塞问题
27+
details: 独特的「伪三层架构」,让所有开发者可轻松驾驭
28+
- title: 插件系统
29+
icon: unjs:unplugin
30+
details: 告别高耦合集成,让功能变得可轻松 Hot Swap(热插拔)
3131
- title: JWT
3232
icon: 🔏
33-
details: 带有缓存和白名单的 JWT 中间件自动认证
34-
- title: 权限管理
33+
details: 带有缓存和白名单的 JWT 授权中间件
34+
- title: RBAC
3535
icon: 🛠️
36-
details: 提供 Casbin、Role-Menu 两种 RBAC 权限方案。开关控制选择
36+
details: 提供 Casbin、Role-Menu 两种 RBAC 方案
3737
- title: 代码生成
3838
icon: ⚙️
39-
details: 提供后端代码自动生成,告别繁琐基础代码结构 cv
39+
details: 内置代码自动生成,告别通用代码频繁 cv
4040
- title: 时区时间
4141
icon:
42-
details: 通过配置一键应用全局时区时间,告别时间处理烦恼
42+
details: 提供全局时区时间配置,告别时间处理烦恼
4343
- title: 日志
4444
icon: 📝
45-
details: 内置十分强大的日志系统,全方位 Trace ID 助你一步锁定问题
45+
details: 强大的日志系统,Trace ID 助你轻松定位任何问题
4646
- title: Docker
4747
icon: 🐳
4848
details: 提供 Docker compose 一键部署方案

docs/backend/summary/intro.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ mvc 架构作为常规设计模式,在 python web 中很常见,但是三层
8181
- middleware/ 中间件
8282
- plugin 插件
8383
- code_generator/ 代码生成
84-
- ...
84+
-
8585
- scripts/ 脚本
8686
- sql/ SQL 文件
8787
- static/ 静态文件

docs/backend/summary/quick-start.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,12 +182,12 @@ fba 仅适用于资深 Python 后端开发人员,如果您是非资深用户
182182
## 开发流程
183183
184184
::: tip
185-
仅供参考,实际以个人习惯为准
185+
仅供参考,实际以个人开发习惯为准
186186
:::
187187
188188
::: steps
189189
190-
1. 定义数据库模型(model)
190+
1. 定义数据库模型([model](../reference/model.md)
191191
192192
2. 定义数据验证模型([schema](../reference/schema.md))
193193

docs/plugin/dev.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ tags = ''
100100
- utils/ 工具包 <Badge type="warning" text="非必须" />
101101
- \_\_init\_\_.py 作为 python 包保留 <Badge type="danger" text="必须" />
102102
- conf.py 插件独立配置 <Badge type="warning" text="非必须" />
103-
- ... 更多其他配置,例如 enums.py... <Badge type="warning" text="非必须" />
103+
- 更多其他配置,例如 enums.py... <Badge type="warning" text="非必须" />
104104
- plugin.toml 插件配置文件 <Badge type="danger" text="必须" />
105105
- README.md 插件使用说明 <Badge type="danger" text="必须" />
106106
- requirements.txt 依赖包文件 <Badge type="warning" text="非必须" />;

0 commit comments

Comments
 (0)