Skip to content

Commit 83f2af7

Browse files
committed
chore: add VitePress source for website
1 parent 52f2156 commit 83f2af7

31 files changed

Lines changed: 5719 additions & 0 deletions

site-src/.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
node_modules
2+
docs/.vitepress/dist
3+
docs/.vitepress/cache
4+
docs/.vitepress/.temp

site-src/README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# MathClaw ????
2+
3+
?????? `MathClaw.github.io` ????? VitePress ???
4+
5+
## ????
6+
7+
```bash
8+
cd site-src
9+
npm install
10+
npm run docs:dev
11+
```
12+
13+
## ??
14+
15+
```bash
16+
cd site-src
17+
npm run docs:build
18+
```
19+
20+
?????? `docs/.vitepress/dist/`?
21+
??????????? HTML / assets ?? GitHub Pages ???
22+
????????????????????????????
Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
import { defineConfig } from "vitepress";
2+
3+
export default defineConfig({
4+
title: "MathClaw",
5+
description: "AI 驱动的数学学习工作台",
6+
base: "/MathClaw.github.io/",
7+
lang: "zh-CN",
8+
srcDir: ".",
9+
cleanUrls: false,
10+
lastUpdated: false,
11+
appearance: true,
12+
themeConfig: {
13+
logo: "/logo.png",
14+
search: {
15+
provider: "local",
16+
options: {
17+
locales: {
18+
root: {
19+
translations: {
20+
button: {
21+
buttonText: "搜索",
22+
buttonAriaLabel: "搜索"
23+
},
24+
modal: {
25+
displayDetails: "显示详细列表",
26+
resetButtonTitle: "重置搜索",
27+
backButtonTitle: "关闭搜索",
28+
noResultsText: "没有找到结果",
29+
footer: {
30+
selectText: "选择",
31+
selectKeyAriaLabel: "回车",
32+
navigateText: "切换",
33+
navigateUpKeyAriaLabel: "上箭头",
34+
navigateDownKeyAriaLabel: "下箭头",
35+
closeText: "关闭",
36+
closeKeyAriaLabel: "Esc"
37+
}
38+
}
39+
}
40+
}
41+
}
42+
}
43+
},
44+
socialLinks: [{ icon: "github", link: "https://github.com/MathClaw-ruc/MathClaw" }],
45+
nav: [
46+
{ text: "首页", link: "/" },
47+
{ text: "指南", link: "/guide/pre-config" },
48+
{ text: "产品展示", link: "/product" },
49+
{ text: "参与贡献", link: "/contribution" },
50+
{ text: "GitHub", link: "https://github.com/MathClaw-ruc/MathClaw" }
51+
],
52+
sidebar: {
53+
"/guide/": [
54+
{
55+
text: "快速开始",
56+
items: [
57+
{ text: "预配置", link: "/guide/pre-config" },
58+
{ text: "工作区与记忆", link: "/guide/data-preparation" },
59+
{ text: "本地安装", link: "/guide/local-start" },
60+
{ text: "通道部署", link: "/guide/docker-start" }
61+
]
62+
},
63+
{
64+
text: "资源",
65+
items: [{ text: "常见问题", link: "/guide/troubleshooting" }]
66+
}
67+
]
68+
},
69+
footer: {
70+
message: "基于 MIT License 发布。",
71+
copyright: "(c) 2026 MathClaw"
72+
},
73+
editLink: {
74+
pattern: "https://github.com/MathClaw-ruc/MathClaw/edit/main/docs/:path",
75+
text: "在 GitHub 上编辑此页"
76+
},
77+
outline: {
78+
label: "本页目录"
79+
},
80+
docFooter: {
81+
prev: "上一页",
82+
next: "下一页"
83+
},
84+
lastUpdated: {
85+
text: "最后更新于"
86+
},
87+
sidebarMenuLabel: "菜单",
88+
returnToTopLabel: "返回顶部",
89+
darkModeSwitchLabel: "外观",
90+
langMenuLabel: "语言"
91+
}
92+
});

0 commit comments

Comments
 (0)