forked from taikoxyz/taiko-mono
-
Notifications
You must be signed in to change notification settings - Fork 0
/
theme.config.tsx
91 lines (90 loc) · 2.18 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
import { Footer } from "./components/Home";
import { ThemedImage } from "./components/ThemedImage";
import { useConfig } from "nextra-theme-docs";
import { useRouter } from "next/router";
import { ThemeToggle } from "./components/ThemeToggle";
import { ELDFELL_CONFIG } from "./domain/chain";
export default {
banner: {
key: "banner",
text: (
<a href="/docs/guides" target="_blank">
📌 {ELDFELL_CONFIG.names.shortishName} is here! Get started →
</a>
),
},
chat: {
link: "https://discord.gg/taikoxyz",
},
darkMode: false,
docsRepositoryBase:
"https://github.com/taikoxyz/taiko-mono/blob/main/packages/website",
editLink: {
text: "Edit this page ↗",
},
// TODO: we should add the feedback link, check if nextra fixed it: https://github.com/shuding/nextra/issues/2067
feedback: {
content: (
<button
onClick={() => {
const win = window.open(
"https://forms.gle/9JWjWtjbWytZZcNRA",
"_blank",
"noopener,noreferrer"
);
if (win) win.opener = null;
}}
>
Leave feedback ↗
</button>
),
},
footer: {
component: Footer,
},
head: () => {
const { asPath } = useRouter();
const { frontMatter } = useConfig();
return (
<>
<meta property="og:url" content={`https://taiko.xyz${asPath}`} />
<meta property="og:title" content={frontMatter.title || "Taiko"} />
<meta
property="og:description"
content={
frontMatter.description ||
"A decentralized, Ethereum-equivalent ZK-Rollup."
}
/>
<meta
property="og:image"
content={"/images/Taiko_social_media_preview.png"}
/>
<link rel="icon" href="/images/favicon.svg" />
</>
);
},
logo: <ThemedImage />,
navbar: {
extraContent: (
<>
<ThemeToggle />
</>
),
},
nextThemes: {
defaultTheme: "light",
},
primaryHue: 323,
project: {
link: "https://github.com/taikoxyz",
},
useNextSeoProps() {
return {
titleTemplate: "%s – Taiko",
};
},
sidebar: {
autoCollapse: true,
},
};