-
Notifications
You must be signed in to change notification settings - Fork 1
/
theme.config.tsx
46 lines (43 loc) · 1.15 KB
/
theme.config.tsx
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
import { useMemo } from 'react';
import { useRouter } from 'next/router';
import { useConfig } from 'nextra-theme-docs';
import type { DocsThemeConfig } from 'nextra-theme-docs';
import CurrentYear from './src/components/current-year';
const config: DocsThemeConfig = {
logo: (
<div className="flex items-center">
<span className="font-bold text-xl ml-2 tracking-wide">XJTLU Wiki</span>
</div>
),
project: {
link: 'https://github.com/renailu/wiki.xjtlu'
},
i18n: [],
docsRepositoryBase: 'https://github.com/renailu/wiki.xjtlu',
gitTimestamp() {
return null;
},
footer: {
text() {
return (
<>
MIT License
{' '}|{' '}
Made with
{' '}
<span className="text-red-500 mx-1">♥</span>
{' '}
by
{' '}
<a href="https://sku.moe" className="mx-1 text-black dark:text-white underline underline-offset-2"
target="_blank">仁爱路</a>
{' '}|{' '}
<span className="mx-1">©</span>
{' '}
<CurrentYear defaultYear={2023}/>
</>
);
}
}
};
export default config;