-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy paththeme.config.tsx
64 lines (61 loc) · 1.55 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
import { DocsThemeConfig } from "nextra-theme-docs";
import { useRouter } from "next/router";
import { useConfig } from "nextra-theme-docs";
const config: DocsThemeConfig = {
darkMode: true,
sidebar: {
defaultMenuCollapseLevel: 1,
toggleButton: true
},
project: {
link: "https://github.com/Zerio-Scripts/documentation"
},
chat: {
link: "http://discord.zerio-scripts.com"
},
docsRepositoryBase: "https://github.com/Zerio-Scripts/documentation",
logo: (
<>
<img src="/logo.png" width="32" height="32" />
<span style={{ marginLeft: ".4em", fontWeight: 800 }}>Zerio-Scripts</span>
</>
),
head: () => {
const { asPath } = useRouter();
const { title: pageTitle } = useConfig();
return (
<>
<link rel="icon" type="image/x-icon" href="/favicon.ico" />
<meta
property="og:url"
content={`https://docs.zerio-scripts.com${asPath}`}
/>
<meta
property="og:title"
content={`${pageTitle} | Zerio-Scripts Documentation`}
/>
<meta
property="og:description"
content={"Documentation for Zerio-Scripts products"}
/>
<title>{`${pageTitle} | Zerio-Scripts Documentation`}</title>
</>
);
},
footer: {
content: (
<span>
MIT {new Date().getFullYear()} ©{" "}
<a
href="https://store.zerio-scripts.com"
target="_blank"
rel="noreferrer"
>
Zerio-Scripts
</a>
.
</span>
)
}
};
export default config;