generated from shuding/nextra-docs-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
theme.config.tsx
44 lines (40 loc) · 1.08 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
import Image from "next/image";
import { useRouter } from "next/router";
import { type DocsThemeConfig } from "nextra-theme-docs";
import PronounciationButton from "./components/theme/PronounciationButton";
const config: DocsThemeConfig = {
primaryHue: { dark: 318, light: 318 },
logo: (
<div className="flex items-center">
<Image src="/logo/gqty.svg" alt="GQty Logo" width={86} height={45} />
<PronounciationButton />
</div>
),
project: {
link: "https://github.com/gqty-dev/gqty",
},
chat: {
link: "https://discord.gg/Y5zSsGsPZB",
},
darkMode: false,
nextThemes: {
defaultTheme: "dark",
},
docsRepositoryBase: "https://github.com/gqty-dev/GQty-Website",
footer: {
text: (
<span>
MIT {new Date().getFullYear()} ©{" "}
<a href="https://gqty.dev">GQty</a>.
</span>
),
},
useNextSeoProps: () => {
const { asPath } = useRouter();
return {
titleTemplate: asPath === "/" ? "GQty" : "%s - GQty",
description: "A No-GraphQL Client for TypeScript",
};
},
};
export default config;