-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocusaurus.config.js
More file actions
152 lines (144 loc) · 4.43 KB
/
Copy pathdocusaurus.config.js
File metadata and controls
152 lines (144 loc) · 4.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
// @ts-check
import {themes as prismThemes} from 'prism-react-renderer';
/** @type {import('@docusaurus/types').Config} */
const config = {
title: 'UltraRAG',
tagline: 'The Modular and High-Precision RAG Framework',
favicon: 'img/logo.svg',
// 这里的 url 填你未来上线的网址
url: 'https://ultrarag.github.io',
baseUrl: '/', // 如果你是用 GitHub Pages 且不是自定义域名,这里通常填 '/仓库名/'
organizationName: 'xhd0728', // 你的 GitHub 用户名
projectName: 'ultrarag.github.io', // 你的仓库名
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
i18n: {
defaultLocale: 'en',
locales: ['en'],
},
presets: [
[
'classic',
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: false, // 禁用 docs 插件
blog: {
showReadingTime: true,
},
gtag: {
trackingID: 'G-R2RNP2SFER',
},
theme: {
customCss: './src/css/custom.css',
},
}),
],
],
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
// 强制深色模式,符合 vLLM 风格
colorMode: {
defaultMode: 'light', // 强制默认为亮色
disableSwitch: true, // 关掉切换开关(像vLLM一样保持风格统一)
respectPrefersColorScheme: false,
},
image: 'img/docusaurus-social-card.jpg',
navbar: {
// title: 'UltraRAG',
logo: {
alt: 'UltraRAG Logo',
src: 'img/_UltraRAG_logo.png',
},
items: [
// ========== 中间区域菜单 (position: left,但会通过 CSS 居中) ==========
{
type: 'custom-homeLink',
to: '/',
label: 'Home',
labelZh: '首页',
position: 'left',
},
// Products Mega Menu
{
type: 'custom-megaMenu',
position: 'left',
label: 'Research',
labelZh: '研究',
to: '/research',
items: [
{
title: 'Latest',
titleZh: '最新动态',
items: [
{ label: 'Blog', labelZh: '博客', to: '/blog' },
]
},
{
title: 'Models',
titleZh: '模型',
items: [
{ label: 'AgentCPM-Report', href: 'https://huggingface.co/openbmb/AgentCPM-Report', target: '_blank' },
{ label: 'MiniCPM-Embedding-Light', href: 'https://huggingface.co/openbmb/MiniCPM-Embedding-Light', target: '_blank' },
]
},
{
title: 'Papers',
titleZh: '论文',
items: [
{ label: 'Selected Papers', labelZh: '精选论文', to: '/research#papers' },
]
},
]
},
// Team Mega Menu
{
type: 'custom-megaMenu',
position: 'left',
label: 'Team',
labelZh: '团队',
to: '/team',
items: [
{
title: 'About',
titleZh: '关于我们',
items: [
{ label: 'Members', labelZh: '团队成员', to: '/team' },
]
},
{
title: 'Connect',
titleZh: '联系',
items: [
{ label: 'Contact', labelZh: '联系', to: '/contact' },
{ label: 'Join Us', labelZh: '加入我们', href: 'https://nlp.csai.tsinghua.edu.cn/job/29', target: '_blank' },
]
}
]
},
// ========== 右侧区域 ==========
// GitHub Star Button(放在语言切换左侧)
{
type: 'custom-githubStar',
position: 'right',
repo: 'OpenBMB/UltraRAG',
href: 'https://github.com/OpenBMB/UltraRAG',
},
// 语言切换按钮(最右侧)
{
type: 'custom-languageSwitcher',
position: 'right',
},
],
},
footer: {
style: 'light',
copyright: `Copyright © ${new Date().getFullYear()} UltraRAG.`,
},
prism: {
theme: prismThemes.github,
darkTheme: prismThemes.dracula,
},
}),
};
export default config;