-
Notifications
You must be signed in to change notification settings - Fork 24
/
theme.config.tsx
51 lines (47 loc) · 1001 Bytes
/
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
import React from 'react'
import { DocsThemeConfig } from 'nextra-theme-docs'
import { useRouter } from 'next/router';
const config: DocsThemeConfig = {
// ... existing configurations,
i18n: [
{ locale: 'en', text: 'English' },
{ locale: 'zh-CN', text: '中文' }
],
logo: <span>Madara</span>,
project: {
link: "https://github.com/keep-starknet-strange/madara",
},
chat: {
link: "https://t.me/MadaraStarknet",
},
docsRepositoryBase: "https://github.com/EvolveArt/madara-docs/tree/main",
footer: {
text: (
<span>MIT {new Date().getFullYear()} © Madara - Starknet App Stack</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",
};
},
},
};
export default config