Skip to content

Commit 64d59d4

Browse files
committed
feat(website): 优化帮助中心和主题样式
- 创建帮助中心首页 (support/index.md),修复 404 问题 - 默认使用护眼主题 (Sepia),支持自动适配系统主题 - 优化帮助中心样式,增强卡片、链接、代码块等元素的美感 - 修正开源协议为 GPL-3.0(从 MIT 更正) - 更新 Hero、FAQ 和 Footer 中的许可证信息
1 parent 8a3e64d commit 64d59d4

8 files changed

Lines changed: 396 additions & 5 deletions

File tree

website/astro.config.mjs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ export default defineConfig({
2929
{ icon: 'github', label: 'GitHub', href: 'https://github.com/codedogQBY/ReadAny' },
3030
],
3131
sidebar: [
32+
{
33+
label: 'Support Center',
34+
translations: { 'zh-CN': '帮助中心' },
35+
autogenerate: { directory: 'support' },
36+
},
3237
{
3338
label: 'Getting Started',
3439
translations: { 'zh-CN': '快速开始' },

website/src/components/Hero.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ const { t } = Astro.props
6565
<div class="mt-1 text-sm text-muted-foreground">{t('hero.stats.local')}</div>
6666
</div>
6767
<div class="text-center">
68-
<div class="text-2xl font-semibold">MIT</div>
68+
<div class="text-2xl font-semibold">GPL-3.0</div>
6969
<div class="mt-1 text-sm text-muted-foreground">{t('hero.stats.opensource')}</div>
7070
</div>
7171
</div>

website/src/content/docs/support/faq.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ description: Frequently asked questions about ReadAny.
88

99
### Is ReadAny free?
1010

11-
Yes. ReadAny is open source under the MIT license and completely free to use.
11+
Yes. ReadAny is open source under the GPL-3.0 license and completely free to use.
1212

1313
### Does ReadAny send my data to the cloud?
1414

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
---
2+
draft: false
3+
title: Support Center
4+
description: Get help with ReadAny - documentation, guides, and FAQs.
5+
---
6+
7+
import { Card, CardGrid } from '@astrojs/starlight/components';
8+
9+
# Support Center
10+
11+
Welcome to the ReadAny Support Center. Find answers to your questions and learn how to get the most out of ReadAny.
12+
13+
<CardGrid>
14+
<Card title="Getting Started" icon="rocket">
15+
New to ReadAny? Start here with our quick setup guide and learn the basics.
16+
17+
- [Getting Started](/ReadAny/support/getting-started/)
18+
- [Installation](/ReadAny/support/installation/)
19+
- [Import Books](/ReadAny/support/import-books/)
20+
</Card>
21+
22+
<Card title="Reading Features" icon="book">
23+
Master the reading experience with annotations, themes, and text-to-speech.
24+
25+
- [Reading Basics](/ReadAny/support/reading/basics/)
26+
- [Annotations & Highlights](/ReadAny/support/reading/annotations/)
27+
- [Themes](/ReadAny/support/reading/themes/)
28+
- [Text-to-Speech](/ReadAny/support/reading/tts/)
29+
</Card>
30+
31+
<Card title="AI Features" icon="sparkles">
32+
Unlock AI-powered features for smarter reading and research.
33+
34+
- [AI Chat](/ReadAny/support/ai/chat/)
35+
- [Semantic Search](/ReadAny/support/ai/semantic-search/)
36+
- [AI Providers](/ReadAny/support/ai/providers/)
37+
</Card>
38+
39+
<Card title="Sync & Export" icon="cloud">
40+
Keep your data in sync and export your notes anywhere.
41+
42+
- [WebDAV Sync](/ReadAny/support/sync/webdav/)
43+
- [Export Notes](/ReadAny/support/sync/export-notes/)
44+
</Card>
45+
</CardGrid>
46+
47+
## Need More Help?
48+
49+
<CardGrid>
50+
<Card title="FAQ" icon="question">
51+
Find answers to commonly asked questions.
52+
53+
[View FAQ →](/ReadAny/support/faq/)
54+
</Card>
55+
56+
<Card title="GitHub Issues" icon="github">
57+
Report bugs or request new features.
58+
59+
[Open an Issue →](https://github.com/codedogQBY/ReadAny/issues)
60+
</Card>
61+
</CardGrid>

website/src/content/docs/zh/support/faq.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ description: ReadAny 常见问题解答。
88

99
### ReadAny 免费吗?
1010

11-
是的。ReadAny 基于 MIT 许可证开源,完全免费使用。
11+
是的。ReadAny 基于 GPL-3.0 许可证开源,完全免费使用。
1212

1313
### ReadAny 会把数据上传到云端吗?
1414

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
---
2+
draft: false
3+
title: 帮助中心
4+
description: 获取 ReadAny 帮助 - 文档、指南和常见问题解答。
5+
---
6+
7+
import { Card, CardGrid } from '@astrojs/starlight/components';
8+
9+
# 帮助中心
10+
11+
欢迎使用 ReadAny 帮助中心。在这里找到您的问题答案,了解如何充分利用 ReadAny。
12+
13+
<CardGrid>
14+
<Card title="快速开始" icon="rocket">
15+
刚接触 ReadAny?从这里开始,快速上手并了解基础功能。
16+
17+
- [快速开始](/ReadAny/zh/support/getting-started/)
18+
- [安装指南](/ReadAny/zh/support/installation/)
19+
- [导入书籍](/ReadAny/zh/support/import-books/)
20+
</Card>
21+
22+
<Card title="阅读功能" icon="book">
23+
掌握阅读体验,包括标注、主题和语音朗读。
24+
25+
- [阅读基础](/ReadAny/zh/support/reading/basics/)
26+
- [标注与高亮](/ReadAny/zh/support/reading/annotations/)
27+
- [主题设置](/ReadAny/zh/support/reading/themes/)
28+
- [语音朗读](/ReadAny/zh/support/reading/tts/)
29+
</Card>
30+
31+
<Card title="AI 功能" icon="sparkles">
32+
解锁 AI 驱动的功能,实现更智能的阅读和研究。
33+
34+
- [AI 对话](/ReadAny/zh/support/ai/chat/)
35+
- [语义搜索](/ReadAny/zh/support/ai/semantic-search/)
36+
- [AI 服务商](/ReadAny/zh/support/ai/providers/)
37+
</Card>
38+
39+
<Card title="同步与导出" icon="cloud">
40+
保持数据同步,将笔记导出到任何地方。
41+
42+
- [WebDAV 同步](/ReadAny/zh/support/sync/webdav/)
43+
- [导出笔记](/ReadAny/zh/support/sync/export-notes/)
44+
</Card>
45+
</CardGrid>
46+
47+
## 需要更多帮助?
48+
49+
<CardGrid>
50+
<Card title="常见问题" icon="question">
51+
查找常见问题的解答。
52+
53+
[查看常见问题 →](/ReadAny/zh/support/faq/)
54+
</Card>
55+
56+
<Card title="GitHub Issues" icon="github">
57+
报告问题或请求新功能。
58+
59+
[提交 Issue →](https://github.com/codedogQBY/ReadAny/issues)
60+
</Card>
61+
</CardGrid>

website/src/i18n/ui.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export const ui = {
5656
'community.wechat': 'WeChat',
5757
'community.coming': 'Coming soon',
5858
'footer.github': 'Star on GitHub',
59-
'footer.copyright': '© 2025 ReadAny. MIT License.',
59+
'footer.copyright': '© 2025 ReadAny. GPL-3.0 License.',
6060
},
6161
zh: {
6262
'nav.home': '首页',
@@ -108,7 +108,7 @@ export const ui = {
108108
'community.wechat': '微信群',
109109
'community.coming': '即将上线',
110110
'footer.github': 'Star on GitHub',
111-
'footer.copyright': '© 2025 ReadAny. MIT 许可证。',
111+
'footer.copyright': '© 2025 ReadAny. GPL-3.0 许可证。',
112112
},
113113
} as const
114114

0 commit comments

Comments
 (0)