-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
theme.config.tsx
48 lines (40 loc) · 1.47 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
47
48
import { useRouter } from 'next/router';
import Image from 'next/image';
import { useConfig, type DocsThemeConfig } from 'nextra-theme-docs';
const config: DocsThemeConfig = {
head() {
const { asPath } = useRouter();
const { title } = useConfig();
return (
<>
<title>{asPath === '/' ? 'AC Scripts' : `${title} - AC Scripts`}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<script defer src="https://analytics.dejv.it/script.js" data-website-id="388963db-aa71-419c-866d-71c6c5fa6d97"></script>
<link rel="icon" type="image/svg+xml" href="/favicons/favicon.svg" />
<link rel="icon" type="image/png" href="/favicons/favicon-96x96.png" sizes="96x96" />
</>
);
},
logo: (
<>
<Image src="/logo.svg" alt="logo" width={24} height={24} />
<span style={{ marginLeft: '.4em', fontWeight: 600 }}>AC Scripts</span>
</>
),
project: { link: 'https://github.com/acscripts' },
chat: { link: 'https://discord.acscripts.dev' },
docsRepositoryBase: 'https://github.com/acscripts/docs/tree/main',
feedback: { content: null },
footer: {
content: (
<div className="flex items-center gap-2">
<span>© {new Date().getFullYear()}</span>
<Image src="/logo.svg" alt="logo" width={24} height={24} />
<span>AC Scripts</span>
</div>
),
},
darkMode: false,
nextThemes: { defaultTheme: 'dark', forcedTheme: 'dark' },
};
export default config;