forked from mixpanel/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy paththeme.config.tsx
More file actions
54 lines (51 loc) · 1.41 KB
/
theme.config.tsx
File metadata and controls
54 lines (51 loc) · 1.41 KB
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
import { FC, ReactNode } from "react";
import { DocsThemeConfig } from "nextra-theme-docs";
import MixpanelLogoWordmark from "./components/svg/MixpanelLogoWordmark";
function renderComponent<T>(ComponentOrNode: FC<T> | ReactNode, props?: T) {
if (!ComponentOrNode) return null;
if (typeof ComponentOrNode !== "function") return ComponentOrNode;
return <ComponentOrNode {...props} />;
}
const config: DocsThemeConfig = {
darkMode: false,
nextThemes: {
forcedTheme: `light`,
},
docsRepositoryBase: "https://github.com/mixpanel/docs/tree/main",
head: (
<>
<link
rel="icon"
sizes="16x16"
href="https://cdn.mxpnl.com/marketing-site/static/favicons/favicon-16x16.png"
type="image/png"
/>
<link
rel="icon"
sizes="32x32"
href="https://cdn.mxpnl.com/marketing-site/static/favicons/favicon-32x32.png"
type="image/png"
/>
</>
),
feedback: {
content: "Question? Contact our Support Team",
useLink: () => "https://mixpanel.com/get-support",
},
footer: {
text: "© Mixpanel 2023",
},
logo: <MixpanelLogoWordmark width={125} />,
logoLink: "https://mixpanel.com/home",
useNextSeoProps: () => ({
titleTemplate: '%s - Mixpanel Docs'
}),
project: {
link: "https://github.com/mixpanel/docs",
},
primaryHue: { dark: 256, light: 259 },
sidebar: {
toggleButton: true,
},
};
export default config;