Skip to content

Commit 0f1cd3a

Browse files
committed
update docs
1 parent b0c836b commit 0f1cd3a

File tree

7 files changed

+481
-109
lines changed

7 files changed

+481
-109
lines changed

docs/.vuepress/config.ts

Lines changed: 5 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1-
import { myNavbar } from "./navbar";
2-
import { mySidebar } from "./sidebar";
31
import { defineUserConfig } from "vuepress";
4-
import plumeTheme from "vuepress-theme-plume";
52
import { viteBundler } from '@vuepress/bundler-vite'
6-
import { myBulletin } from "./bulletin";
73
import { baiduAnalyticsPlugin } from "@vuepress/plugin-baidu-analytics";
84
import { umamiAnalyticsPlugin } from "@vuepress/plugin-umami-analytics";
5+
import { llmsPlugin } from "@vuepress/plugin-llms";
6+
import { myTheme } from "./theme";
97

108

119
export default defineUserConfig({
@@ -15,71 +13,16 @@ export default defineUserConfig({
1513
head: [
1614
['link', { rel: 'icon', href: 'https://wu-clan.github.io/picx-images-hosting/logo/fba.svg' }],
1715
],
16+
theme: myTheme,
1817
plugins: [
1918
baiduAnalyticsPlugin({
2019
id: '6202e3701ae5a932577a1cf195084e9e'
2120
}),
2221
umamiAnalyticsPlugin({
2322
id: '62984e7c-ec95-459a-9a2f-553766c6b3d4'
24-
})
23+
}),
24+
llmsPlugin({})
2525
],
26-
theme: plumeTheme({
27-
hostname: 'https://fastapi-practices.github.io/fastapi_best_architecture_docs/',
28-
logo: 'https://wu-clan.github.io/picx-images-hosting/logo/fba.png',
29-
docsRepo: 'https://github.com/fastapi-practices/fastapi_best_architecture_docs',
30-
docsBranch: 'master',
31-
docsDir: 'docs',
32-
blog: false,
33-
notes: false,
34-
bulletin: myBulletin,
35-
sidebar: mySidebar,
36-
sidebarScrollbar: false,
37-
navbar: myNavbar,
38-
autoFrontmatter: {
39-
title: true,
40-
permalink: false,
41-
createTime: false,
42-
},
43-
social: [
44-
{ icon: 'github', link: 'https://github.com/fastapi-practices/fastapi_best_architecture' },
45-
{
46-
icon: {
47-
svg: `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M11.984 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12a12 12 0 0 0 12-12A12 12 0 0 0 12 0zm6.09 5.333c.328 0 .593.266.592.593v1.482a.594.594 0 0 1-.593.592H9.777c-.982 0-1.778.796-1.778 1.778v5.63c0 .327.266.592.593.592h5.63c.982 0 1.778-.796 1.778-1.778v-.296a.593.593 0 0 0-.592-.593h-4.15a.59.59 0 0 1-.592-.592v-1.482a.593.593 0 0 1 .593-.592h6.815c.327 0 .593.265.593.592v3.408a4 4 0 0 1-4 4H5.926a.593.593 0 0 1-.593-.593V9.778a4.444 4.444 0 0 1 4.445-4.444h8.296Z"/></svg>`,
48-
name: 'gitee'
49-
},
50-
link: 'https://gitee.com/wu_clan/fastapi_best_architecture'
51-
},
52-
],
53-
navbarSocialInclude: ['github', 'gitee', 'bilibili'],
54-
editLinkText: '编辑此页面',
55-
contributors: false,
56-
lastUpdated: false,
57-
footer: {
58-
message: 'FastAPI 最佳架构 & MIT LICENCE',
59-
copyright: 'Copyright © 2023-present FastAPI Practices'
60-
},
61-
//watermark: true,
62-
markdown: {
63-
abbr: true,
64-
annotation: true,
65-
mermaid: true,
66-
},
67-
codeHighlighter: {
68-
themes: {
69-
dark: 'one-dark-pro',
70-
light: 'one-light'
71-
}
72-
},
73-
comment: {
74-
provider: 'Giscus',
75-
comment: true,
76-
repo: 'fastapi-practices/fastapi_best_architecture_docs',
77-
repoId: 'R_kgDOMv5sMQ',
78-
category: 'Comment',
79-
categoryId: 'DIC_kwDOMv5sMc4CmLp9',
80-
lazyLoading: true,
81-
},
82-
}),
8326
bundler: viteBundler(),
8427
shouldPrefetch: false,
8528
})

docs/.vuepress/navbar.ts

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

3-
export const myNavbar = defineNavbarConfig([
3+
export const myNavbar: ThemeNavItem[] = defineNavbarConfig([
44
{
55
text: '前端(在线体验)',
66
items: [
@@ -120,7 +120,7 @@ export const myNavbar = defineNavbarConfig([
120120
text: '生态系统',
121121
items: [
122122
{
123-
text: '资源',
123+
text: '生态',
124124
items: [
125125
{
126126
text: '开源项目',

docs/.vuepress/theme.ts

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
import plumeTheme from "vuepress-theme-plume";
2+
import { Theme } from "vuepress";
3+
import { myBulletin } from "./bulletin";
4+
import { mySidebar } from "./sidebar";
5+
import { myNavbar } from "./navbar";
6+
7+
8+
export const myTheme: Theme = plumeTheme({
9+
hostname: 'https://fastapi-practices.github.io/fastapi_best_architecture_docs/',
10+
logo: 'https://wu-clan.github.io/picx-images-hosting/logo/fba.png',
11+
docsRepo: 'https://github.com/fastapi-practices/fastapi_best_architecture_docs',
12+
docsBranch: 'master',
13+
docsDir: 'docs',
14+
blog: false,
15+
notes: false,
16+
bulletin: myBulletin,
17+
sidebar: mySidebar,
18+
sidebarScrollbar: false,
19+
navbar: myNavbar,
20+
autoFrontmatter: {
21+
title: true,
22+
permalink: false,
23+
createTime: false,
24+
},
25+
social: [
26+
{ icon: 'github', link: 'https://github.com/fastapi-practices/fastapi_best_architecture' },
27+
{
28+
icon: {
29+
svg: `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M11.984 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12a12 12 0 0 0 12-12A12 12 0 0 0 12 0zm6.09 5.333c.328 0 .593.266.592.593v1.482a.594.594 0 0 1-.593.592H9.777c-.982 0-1.778.796-1.778 1.778v5.63c0 .327.266.592.593.592h5.63c.982 0 1.778-.796 1.778-1.778v-.296a.593.593 0 0 0-.592-.593h-4.15a.59.59 0 0 1-.592-.592v-1.482a.593.593 0 0 1 .593-.592h6.815c.327 0 .593.265.593.592v3.408a4 4 0 0 1-4 4H5.926a.593.593 0 0 1-.593-.593V9.778a4.444 4.444 0 0 1 4.445-4.444h8.296Z"/></svg>`,
30+
name: 'gitee'
31+
},
32+
link: 'https://gitee.com/wu_clan/fastapi_best_architecture'
33+
},
34+
],
35+
navbarSocialInclude: ['github', 'bilibili'],
36+
editLinkText: '编辑此页面',
37+
contributors: false,
38+
lastUpdated: false,
39+
footer: {
40+
message: 'FastAPI 最佳架构 & MIT LICENCE',
41+
copyright: 'Copyright © 2023-present FastAPI Practices'
42+
},
43+
//watermark: true,
44+
markdown: {
45+
abbr: true,
46+
annotation: true,
47+
mermaid: true,
48+
},
49+
codeHighlighter: {
50+
themes: {
51+
dark: 'one-dark-pro',
52+
light: 'one-light'
53+
}
54+
},
55+
comment: {
56+
provider: 'Giscus',
57+
comment: true,
58+
repo: 'fastapi-practices/fastapi_best_architecture_docs',
59+
repoId: 'R_kgDOMv5sMQ',
60+
category: 'Comment',
61+
categoryId: 'DIC_kwDOMv5sMc4CmLp9',
62+
lazyLoading: true,
63+
},
64+
})

docs/backend/summary/why.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import NpmBadge from 'vuepress-theme-plume/features/NpmBadge.vue'
1212
> [!IMPORTANT]
1313
> 我们不会去对比任何其他架构,我们认为每个架构都有自己的特点,适用于不同的场景。
1414
>
15-
> 但 fba 绝对是开源架构中代码==最干净,最规范且最令人赏心悦目=={.note}的项目之一
15+
> 但 fba 绝对是开源架构中,==代码最整洁,最规范且最令人赏心悦目的项目之一=={.important}
1616
1717
## 目标
1818

docs/team.md

Lines changed: 35 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
---
22
pageLayout: friends
33
title: FastAPI Practices
4-
description: FastAPI Practices 及其生态系统发展的背后是一个由开源社区人员组成的团队,我们对团队中的任何成员以及所有的关注者都致以崇高的敬意;
4+
description: >-
5+
FastAPI Practices 及其生态系统发展的背后是一个由开源社区人员组成的团队,我们对团队中的任何成员以及所有的关注者都致以崇高的敬意;
56
我们欢迎每一位开源伙伴的加入。
67
contentPosition: before
78
groups:
@@ -14,21 +15,24 @@ groups:
1415
desc: 一个喜欢在夜深人静时进行开源创作的 coder
1516
location: 郑州,河南
1617
organization: FastAPI Practices
17-
socials: [
18-
{ icon: 'github', link: 'https://github.com/wu-clan' },
19-
{ icon: 'x', link: 'https://twitter.com/_chulan' },
20-
{ icon: 'juejin', link: 'https://juejin.cn/user/3940246036158974' },
21-
{ icon: 'bilibili', link: 'https://space.bilibili.com/284237214' }
22-
]
18+
socials:
19+
- icon: github
20+
link: https://github.com/wu-clan
21+
- icon: x
22+
link: https://twitter.com/_chulan
23+
- icon: juejin
24+
link: https://juejin.cn/user/3940246036158974
25+
- icon: bilibili
26+
link: https://space.bilibili.com/284237214
2327
- name: dowdawn
2428
link: https://blog.csdn.net/qq_42280510?type=blog
2529
avatar: https://avatars.githubusercontent.com/u/41266749?v=4
2630
desc: AI 全干工程狮
2731
location: 厦门,福建
2832
organization: FastAPI Practices
29-
socials: [
30-
{ icon: 'github', link: 'https://github.com/downdawn' }
31-
]
33+
socials:
34+
- icon: github
35+
link: https://github.com/downdawn
3236
- title: 名誉核心团队
3337
desc: 名誉核心团队成员在过去曾为项目做出过突出贡献,我们在此向他们致敬
3438
list:
@@ -37,19 +41,19 @@ groups:
3741
avatar: https://avatars.githubusercontent.com/u/63089130?v=4
3842
desc: 大数据运维吗喽,主要做监控、告警、平台分析以及运维开发等工作,略懂一些 Go 和 Python
3943
location: 成都,四川
40-
organization: --
41-
socials: [
42-
{ icon: 'github', link: 'https://github.com/Meepoljdx' }
43-
]
44+
organization: '--'
45+
socials:
46+
- icon: github
47+
link: https://github.com/Meepoljdx
4448
- name: Davidduang
4549
link: https://github.com/dividduang
4650
avatar: https://avatars.githubusercontent.com/u/110005582?v=4
4751
desc: 一个平平无奇的网管
4852
location: 深圳,广东
49-
organization: --
50-
socials: [
51-
{ icon: 'github', link: 'https://github.com/dividduang' }
52-
]
53+
organization: '--'
54+
socials:
55+
- icon: github
56+
link: https://github.com/dividduang
5357
- title: 社区伙伴
5458
desc: 社区成员让这里变得更加丰富多彩,有必要在此特别提及。我们与这些合作伙伴建立了更加亲密的关系,经常与他们就即将到来的功能和新闻展开协作
5559
list:
@@ -58,28 +62,29 @@ groups:
5862
avatar: https://avatars.githubusercontent.com/u/124766156?v=4
5963
desc: 运维开发工程师,开发语言 Python,目前开发能力不是很高,自己写一个运维平台
6064
location: 成都,四川
61-
organization: --
62-
socials: [
63-
{ icon: 'github', link: 'https://github.com/xiangshen123' }
64-
]
65+
organization: '--'
66+
socials:
67+
- icon: github
68+
link: https://github.com/xiangshen123
6569
- name: 陈安生(陈大锤)
6670
link: https://github.com/chenansheng
6771
avatar: https://avatars.githubusercontent.com/u/33371724?v=4
6872
desc: 国企 java 后端,深度学习开发选手
6973
location: 济南,山东
70-
organization: --
71-
socials: [
72-
{ icon: 'github', link: 'https://github.com/chenansheng' }
73-
]
74+
organization: '--'
75+
socials:
76+
- icon: github
77+
link: https://github.com/chenansheng
7478
- name: imba
7579
link: https://github.com/imbalich
7680
avatar: https://avatars.githubusercontent.com/u/49424658?v=4
7781
desc: 苦哈哈的全干工程师
7882
location: 西安,陕西
79-
organization: --
80-
socials: [
81-
{ icon: 'github', link: 'https://github.com/imbalich' }
82-
]
83+
organization: '--'
84+
socials:
85+
- icon: github
86+
link: https://github.com/imbalich
87+
permalink: /article/85vk4vsd/
8388
---
8489

8590
[申请 **加入团队**](./join.md){.read-more}

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"devDependencies": {
2020
"@vuepress/bundler-vite": "2.0.0-rc.24",
2121
"@vuepress/plugin-baidu-analytics": "2.0.0-rc.112",
22+
"@vuepress/plugin-llms": "2.0.0-rc.112",
2223
"@vuepress/plugin-umami-analytics": "2.0.0-rc.112",
2324
"vue": "^3.5.18",
2425
"vuepress": "2.0.0-rc.24",

0 commit comments

Comments
 (0)