-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy paththeme.config.jsx
More file actions
67 lines (65 loc) · 2.75 KB
/
theme.config.jsx
File metadata and controls
67 lines (65 loc) · 2.75 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
55
56
57
58
59
60
61
62
63
64
65
66
67
import { Logo } from "./components/Logo";
import { useRouter } from "next/router";
import { useConfig } from "nextra-theme-docs";
export default {
logo: <Logo />,
project: {
link: "https://github.com/interweave-hq/interweave"
},
docsRepositoryBase: "https://github.com/interweave-hq/docs/blob/main",
useNextSeoProps() {
return {
titleTemplate: "%s – Interweave"
};
},
head: () => {
const { asPath, defaultLocale, locale } = useRouter();
const { frontMatter } = useConfig();
const url = "https://docs.interwv.com" + (defaultLocale === locale ? asPath : `/${locale}${asPath}`);
return (
<>
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />
<link rel="manifest" href="/site.webmanifest" />
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5" />
<meta name="msapplication-TileColor" content="#da532c" />
<meta name="theme-color" content="#ffffff" />
<meta property="og:url" content={url} />
<meta property="og:title" content={frontMatter.title || "Interweave"} />
<meta property="og:image" content="/interweave-meta.jpg" />
<meta
property="og:description"
content={
frontMatter.description ||
"User-interfaces for your API. Live in seconds, functional immediately, and keeps your team moving fast."
}
/>
</>
);
},
sidebar: {
defaultMenuCollapseLevel: 5
},
footer: {
text: (
<span>
{new Date().getFullYear()} ©{" "}
<a href="https://carbonology.in" target="_blank">
Carbonology Interactive LLC
</a>
</span>
)
},
chat: {
link: "https://interwv.com/chat",
icon: (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 127.14 96.36" width={27} height={27}>
<path
d="M107.7 8.07A105.15 105.15 0 0 0 81.47 0a72.06 72.06 0 0 0-3.36 6.83 97.68 97.68 0 0 0-29.11 0A72.37 72.37 0 0 0 45.64 0a105.89 105.89 0 0 0-26.25 8.09C2.79 32.65-1.71 56.6.54 80.21a105.73 105.73 0 0 0 32.17 16.15 77.7 77.7 0 0 0 6.89-11.11 68.42 68.42 0 0 1-10.85-5.18c.91-.66 1.8-1.34 2.66-2a75.57 75.57 0 0 0 64.32 0c.87.71 1.76 1.39 2.66 2a68.68 68.68 0 0 1-10.87 5.19 77 77 0 0 0 6.89 11.1 105.25 105.25 0 0 0 32.19-16.14c2.64-27.38-4.51-51.11-18.9-72.15ZM42.45 65.69C36.18 65.69 31 60 31 53s5-12.74 11.43-12.74S54 46 53.89 53s-5.05 12.69-11.44 12.69Zm42.24 0C78.41 65.69 73.25 60 73.25 53s5-12.74 11.44-12.74S96.23 46 96.12 53s-5.04 12.69-11.43 12.69Z"
fill="var(--logo-primary-color)"
/>
</svg>
)
}
};