-
Notifications
You must be signed in to change notification settings - Fork 5
/
theme.config.tsx
77 lines (75 loc) · 1.59 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
import Footer from "./components/Footer";
import IrysLogoText from "./components/svg/IrysLogoText";
import { useConfig } from "nextra-theme-docs";
import { useRouter } from "next/router";
const FooterWrapper = () => {
const router = useRouter();
return <Footer noPadding={router.asPath !== "/"} />;
};
export default {
nextThemes: {
defaultTheme: "dark",
},
themeSwitch: {
useOptions() {
return {
dark: "Dark",
};
},
},
editLink: {
component: () => null,
},
feedback: {
content: () => null,
},
sidebar: {
toggleButton: true,
},
logo: <IrysLogoText width={65} />,
project: {
link: "https://github.com/Irys-xyz/",
},
footer: {
component: FooterWrapper,
},
banner: {
key: "dev-quest2",
text: (
<a href="/developer-docs/network-merge-guide" target="_blank">
Irys merged our mainnet nodes. Migration guide →
</a>
),
},
useNextSeoProps() {
const { asPath } = useRouter();
if (asPath !== "/") {
return {
titleTemplate: "Irys | %s",
};
} else {
return {
titleTemplate: "Irys | Docs",
};
}
},
head: () => {
return (
<>
<meta property="og:site_name" content="Irys" />
<meta property="og:url" content="https://docs.irys.xyz" />
<meta property="og:type" content="website" />
<meta property="og:image" content="https://irys.xyz/new/assets/shared/open-graph.png" />
<meta name="twitter:card" content="summary_large_image" />
<script type="application/ld+json">
{`{
"@context" : "https://schema.org",
"@type" : "WebSite",
"name" : "Irys",
"url" : "https://docs.irys.xyz"
}`}
</script>
</>
);
},
};