Skip to content

Commit a8b1d8d

Browse files
committed
doc: update
1 parent 4b02a27 commit a8b1d8d

File tree

9 files changed

+1744
-786
lines changed

9 files changed

+1744
-786
lines changed

.prettierrc

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"printWidth": 80,
3+
"tabWidth": 2,
4+
"useTabs": false,
5+
"semi": true,
6+
"singleQuote": true,
7+
"trailingComma": "es5",
8+
"bracketSpacing": true,
9+
"bracketSameLine": false,
10+
"arrowParens": "avoid",
11+
"proseWrap": "preserve",
12+
"endOfLine": "lf",
13+
"embeddedLanguageFormatting": "auto",
14+
"overrides": [
15+
{
16+
"files": "*.mdx",
17+
"options": {
18+
"printWidth": 50,
19+
"proseWrap": "preserve",
20+
"embeddedLanguageFormatting": "off",
21+
"singleQuote": false,
22+
"jsxSingleQuote": false,
23+
"htmlWhitespaceSensitivity": "strict",
24+
"bracketSameLine": false,
25+
"jsxBracketSameLine": false
26+
}
27+
}
28+
]
29+
}

app/(home)/page.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,20 @@ import { Zap, Code, Package, Puzzle } from 'lucide-react';
55
export default function HomePage() {
66
return (
77
<main className="flex flex-1 flex-col justify-center items-center px-4">
8-
<Image src="/icon.png" alt="SithraRS" width={100} height={100} className='rounded-full my-4 mt-8 md:mt-4' />
9-
<h1 className="mb-4 text-2xl font-bold">SithraRS</h1>
8+
<Image src="/icon.png" alt="sithra-rs icon" width={140} height={140} className='rounded-full my-4 mt-8 md:mt-4' />
9+
<h1 className="mb-4 text-2xl font-bold">sithra-rs</h1>
1010
<p className="text-fd-muted-foreground mb-12 max-w-2xl text-center">
11-
基于 Rust 打造的高性能 OneBot 机器人框架,为您的聊天机器人提供强大支持。
11+
基于 Rust 打造的高性能通用聊天机器人框架
1212
</p>
13-
<div className="grid grid-cols-1 md:grid-cols-2 gap-6 max-w-3xl">
14-
<Card title="极速冷启动" icon={<Zap className="text-yellow-400" />} className="text-left">
13+
<div className="grid grid-cols-1 md:grid-cols-2 gap-6 max-w-3xl mb-7">
14+
<Card title="高性能" icon={<Zap className="text-yellow-400" />} className="text-left">
1515
<p className="text-fd-muted-foreground">
16-
从启动到加载 5 个插件到就绪仅需 50ms,为您的机器人提供闪电般的响应速度。
16+
采用类似 axum 的高性能 web 服务器架构设计,为您的机器人提供闪电般的响应速度。
1717
</p>
1818
</Card>
1919
<Card title="简单开发" icon={<Code className="text-blue-400" />} className="text-left">
2020
<p className="text-fd-muted-foreground">
21-
开发一个简单的 sithra-rs 插件仅需 17 行代码。得益于 Rust 的内存安全和类型安全特性,让您专注于业务逻辑,无需担心内存泄漏和类型错误。
21+
开发一个简单的 sithra-rs 插件仅需 32 行代码。得益于 Rust 的内存安全和类型安全特性,让您专注于业务逻辑,无需担心内存泄漏和类型错误。
2222
</p>
2323
</Card>
2424
<Card title="零运行时" icon={<Package className="text-green-400" />} className="text-left">
@@ -28,7 +28,7 @@ export default function HomePage() {
2828
</Card>
2929
<Card title="动态插件系统" icon={<Puzzle className="text-purple-400" />} className="text-left">
3030
<p className="text-fd-muted-foreground">
31-
基于 ioevent 的动态插件系统,即插即用,无需重新编译主程序,让功能模块化、分发和获取变得简单高效。
31+
动态插件系统,即插即用,无需重新编译主程序,让功能模块化、分发和获取变得简单高效。
3232
</p>
3333
</Card>
3434
</div>

0 commit comments

Comments
 (0)