Skip to content

Commit 5bf1860

Browse files
author
Ewall555
committed
feat: 更新主题配置,更新图片分辨率
1 parent e5f36e5 commit 5bf1860

10 files changed

Lines changed: 33 additions & 1 deletion

File tree

75 KB
Loading
-111 KB
Loading
-91.8 KB
Loading
75.6 KB
Loading
103 KB
Loading
158 KB
Loading
71.1 KB
Loading
101 KB
Loading
14 KB
Loading

‎docs/theme.config.tsx‎

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,39 @@ const config: DocsThemeConfig = {
2828
},
2929
sidebar: {
3030
defaultMenuCollapseLevel: 1
31-
}
31+
},
32+
search: {
33+
placeholder: '搜索文档…'
34+
},
35+
toc: {
36+
title: '本页内容'
37+
},
38+
editLink: {
39+
component: ({ className }) => (
40+
<a
41+
className={className}
42+
href="https://github.com/jumpserver/whitepaper"
43+
target="_blank"
44+
rel="noreferrer"
45+
>
46+
在 GitHub 上查看
47+
</a>
48+
)
49+
},
50+
feedback: {
51+
content: '有问题?点此反馈 →',
52+
useLink: () => 'https://github.com/jumpserver/whitepaper/issues'
53+
},
54+
themeSwitch: {
55+
useOptions: {
56+
light: '浅色模式',
57+
dark: '深色模式',
58+
system: '跟随系统'
59+
}
60+
},
61+
gitTimestamp: ({ timestamp }) => (
62+
<span>最后更新于 {new Date(timestamp).toLocaleDateString('zh-CN')}</span>
63+
)
3264
}
3365

3466
export default config

0 commit comments

Comments
 (0)