-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy paththeme.config.tsx
51 lines (47 loc) · 1.14 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
import React from "react";
import { DocsThemeConfig } from "nextra-theme-docs";
import Image from "next/image";
import logoUrl from "./assets/logo.png";
import faviconUrl from "./assets/favicon.png";
import { useRouter } from "next/router";
const logo = (
<div
style={{
display: "flex",
flexDirection: "row",
alignItems: "center",
gap: "8px",
}}
>
<Image src={logoUrl} width={42} height={42} alt="Humanode" />
<div>Humanode Biomapper Documentation</div>
</div>
);
const head = (
<>
<link rel="icon" href={faviconUrl.src} type="image/png" />
</>
);
const config: DocsThemeConfig = {
logo,
head,
project: {
link: "https://github.com/humanode-network/biomapper-docs",
},
chat: {
link: "https://link.humanode.io/chat",
},
docsRepositoryBase:
"https://github.com/humanode-network/biomapper-docs/tree/master",
useNextSeoProps() {
const { asPath } = useRouter();
const title = "Humanode Biomapper Docs";
return {
titleTemplate: asPath === "/" ? title : `%s - ${title}`,
};
},
footer: {
text: "Humanode Biomapper Documentation",
},
};
export default config;