forked from dydxprotocol/v4-documentation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy paththeme.config.tsx
63 lines (57 loc) · 1.69 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
import React from "react";
import { DocsThemeConfig, useConfig } from "nextra-theme-docs";
import { useRouter } from "next/router";
import { Logo } from "./components/Logo";
const config: DocsThemeConfig = {
// Global
docsRepositoryBase: "https://github.com/dydxprotocol/v4-documentation/tree/main",
feedback: { content: null }, // disable until we have a feedback channel
useNextSeoProps: () => {
const { asPath } = useRouter();
if (asPath !== "/") {
return {
titleTemplate: "%s · dYdX · v4",
};
}
},
head: () => {
const { title } = useConfig();
return (
<>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta
name="og:title"
content={title ? title + " · dYdX · v4" : "dYdX · v4"}
/>
<link rel="icon" href="/favicon.svg" type="image/svg+xml" />
<link rel="icon" href="/favicon.png" type="image/png" />
</>
);
},
// Theming
primaryHue: 241.18,
darkMode: false,
nextThemes: {
forcedTheme: "dark",
},
// Navbar
logo: <Logo />,
project: {},
chat: {},
// Footer
footer: {
text: (
<span>
<strong>Disclaimer:</strong> Note that as of the date hereof, the testnet and dYdX Chain deployment by DYDX token holders are the only known deployments of the dYdX v4 software, and other deployment options may be added. For more information, please see{" "}
<a href="https://dydx.exchange/dydx-chain-front-end-options" target="_blank">
https://dydx.exchange/dydx-chain-front-end-options
</a>
</span>
)
},
// sidebar
sidebar: {
defaultMenuCollapseLevel: 1,
},
};
export default config;