-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy paththeme.config.tsx
53 lines (51 loc) · 1.35 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
import { DocsThemeConfig } from "nextra-theme-docs";
import { Code } from "./components/Code";
import { Footer } from "./components/Footer";
import { Logo } from "./components/Logo";
import { P } from "./components/P";
import { Pre } from "./components/Pre";
import { Table } from "./components/Table";
import { Td } from "./components/Td";
import { Th } from "./components/Th";
import { Tr } from "./components/Tr";
const config: DocsThemeConfig = {
head: (
<>
<link rel="icon" href="/favicon.svg" type="image/svg+xml"></link>
<link rel="icon" href="/favicon.png" type="image/png"></link>
</>
),
logo: (
// wrapper needed so it looks vertically centered in header
<div style={{ marginBottom: -9 }}>
<Logo hoverEffect />
</div>
),
project: {
link: "https://github.com/serenity-kit/opaque",
},
// chat: {
// link: "https://discord.com",
// },
docsRepositoryBase: "https://github.com/serenity-kit/opaque-documentation",
footer: {
component: Footer,
},
primaryHue: 232,
components: {
// https://mdxjs.com/table-of-components/
pre: Pre,
code: Code,
p: (props) => <P className="max-w-3xl nx-mt-5 first:nx-mt-0" {...props} />,
table: Table,
th: Th,
tr: Tr,
td: Td,
},
useNextSeoProps() {
return {
titleTemplate: "%s – Opaque",
};
},
};
export default config;