-
Notifications
You must be signed in to change notification settings - Fork 24
/
theme.config.tsx
66 lines (62 loc) · 1.3 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
65
66
import React from "react";
import { DocsThemeConfig } from "nextra-theme-docs";
import { useRouter } from "next/router";
import Image from "next/image";
const config: DocsThemeConfig = {
// ... existing configurations,
i18n: [
{ locale: "en", text: "English" },
{ locale: "zh-CN", text: "中文" },
],
logo: (
<Image
src="/static/img/madara_logomark_red.png"
style={{
width: "auto",
height: "auto",
}}
width={150}
height={150}
alt={""}
/>
),
project: {
link: "https://github.com/madara-alliance/madara",
},
chat: {
link: "https://discord.gg/xubb6PNFsb",
},
docsRepositoryBase: "https://github.com/madara-alliance/madara-docs",
footer: {
text: (
<span>
MIT {new Date().getFullYear()} © Madara - Cairo-Powered Chains
</span>
),
},
editLink: {
text: <span>Contribute to Madara | Edit on GitHub</span>,
},
primaryHue: 10,
useNextSeoProps() {
const { asPath } = useRouter();
if (asPath !== "/") {
return {
titleTemplate: "%s",
};
}
},
themeSwitch: {
useOptions() {
return {
light: "Light",
dark: "Dark",
system: "System",
};
},
},
sidebar: {
defaultMenuCollapseLevel: 1,
},
};
export default config;