-
Notifications
You must be signed in to change notification settings - Fork 1
/
theme.config.tsx
96 lines (91 loc) · 2.99 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
import type { DocsThemeConfig } from "nextra-theme-docs";
import { useConfig } from "nextra-theme-docs";
import { useRouter } from "next/router";
const logo = (
<div className="flex items-center">
<img className="w-8 h-8" src="/assets/link-drop.png" alt="" />
<p className="text-lg font-medium ml-4">LinkDrop</p>
</div>
);
const config: DocsThemeConfig = {
project: {
link: "",
},
docsRepositoryBase: "https://github.com/shuding/nextra/tree/main/docs",
useNextSeoProps() {
const { asPath } = useRouter();
if (asPath !== "/") {
return {
titleTemplate: "%s – Doc",
};
}
},
logo,
head: function useHead() {
const { title } = useConfig();
return (
<>
<meta name="msapplication-TileColor" content="#fff" />
<meta name="theme-color" content="#fff" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta httpEquiv="Content-Language" content="en" />
<meta
name="description"
content="LinkDrop is a powerful SaaS product designed to help you manage and track your links with ease. With its advanced features such as biolink creation, shortlink creation, and QR code creation, LinkDrop simplifies the process of sharing multiple links with your audience"
/>
<meta
name="og:description"
content="LinkDrop is a powerful SaaS product designed to help you manage and track your links with ease. With its advanced features such as biolink creation, shortlink creation, and QR code creation, LinkDrop simplifies the process of sharing multiple links with your audience"
/>
<meta name="og:title" content={title ? title + " – Doc" : "Doc"} />
<meta name="apple-mobile-web-app-title" content="LinkDrop" />
<link rel="icon" href="/assets/link-drop.png" type="image/png" />
</>
);
},
// banner: {
// key: '2.0-release',
// text: (
// <a href="https://nextra.site" target="_blank" rel="noreferrer">
// 🎉 Nextra 2.0 is released. Read more →
// </a>
// )
// },
editLink: {
text: "",
},
feedback: {
content: "",
labels: "feedback",
},
sidebar: {
titleComponent({ title, type }) {
if (type === "separator") {
return <span className="cursor-default">{title}</span>;
}
return <>{title}</>;
},
defaultMenuCollapseLevel: 1,
toggleButton: true,
},
footer: {
text: (
<div className="flex w-full items-center justify-between">
<div>
<a
className="flex items-center gap-1 text-current"
target="_blank"
rel="noopener noreferrer"
title="vercel.com homepage"
href="https://vercel.com?utm_source=nextra.site"
>
<span>Powered by </span>
<span>UI-Lib</span>
</a>
</div>
<p className="mt-6 text-xs">© {new Date().getFullYear()} LinkDrop</p>
</div>
),
},
};
export default config;