forked from OpenDeepLearningAI/OpenDeepLearning
-
Notifications
You must be signed in to change notification settings - Fork 0
/
theme.config.tsx
142 lines (140 loc) · 4.02 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
import React from "react";
import { DocsThemeConfig } from "nextra-theme-docs";
import { useConfig } from "nextra-theme-docs";
import { useRouter } from "next/router";
import { FaGithub, FaDiscord, FaYoutube } from "react-icons/fa";
import { TbMailFilled } from "react-icons/tb";
import { FaXTwitter } from "react-icons/fa6";
import { MdEdit } from "react-icons/md";
import Link from "next/link";
const config: DocsThemeConfig = {
logo: (
<>
<img src="/logo/logo.png" width={30} />
<span className="ml-1 text-xl font-semibold">
<span> OpenML Guide</span>
</span>
</>
),
i18n: [
{ locale: "en", text: "English" },
// { locale: "zh", text: "中文" },
// { locale: "ru", text: "Русский" },
// { locale: "jp", text: "日本語" },
// { locale: "tr", text: "Türkçe" },
// { locale: "kr", text: "한국어" },
// { locale: "pt", text: "Português" },
// { locale: "es", text: "Español" },
],
head: function UseHead() {
const { title } = useConfig();
return (
<>
<link rel="icon" href="/logo/favicon.png" />
</>
);
},
project: {
link: "https://github.com/severus27/OpenML-Guide",
icon: <FaGithub className="h-[25.5px] w-[25.5px] hover:text-[#76b900]" />,
},
chat: {
link: "https://discord.gg/QgZHExcssR",
icon: <FaDiscord className="h-[25.5px] w-[25.5px] hover:text-[#76b900]" />,
},
navbar: {
extraContent: (
<Link href="https://twitter.com/OpenMLGuide" target="_blank">
<FaXTwitter className="h-6 w-6 ml-2 hover:text-[#76b900]" />
</Link>
),
},
docsRepositoryBase: "https://github.com/severus27/OpenML-Guide/tree/main/",
feedback: {
useLink: () => "https://github.com/severus27/OpenML-Guide/issues/new",
content: (
<>
<span className="flex gap-2.5">
<FaGithub className="w-[18px] h-[18px]"/>
<span> Report an issue </span>
</span>
</>
),
},
editLink: {
text: (
<>
<span className="flex gap-2.5">
<MdEdit className="w-[18px] h-[18px]"/>
<span> Edit this page </span>
</span>
</>
),
},
search: {
placeholder: "Search...",
},
sidebar: {
toggleButton: true,
},
// gitTimestamp: null,
useNextSeoProps() {
const { asPath } = useRouter();
if (asPath == "/") {
return {
titleTemplate: "OpenML Guide",
};
}
if (asPath !== "/") {
return {
titleTemplate: "%s | OpenML Guide",
};
}
},
primaryHue: 85,
primarySaturation: 80,
toc: {
backToTop: true,
},
nextThemes: {
defaultTheme: "dark",
},
banner: {
key: "OpenML Guide",
text: (
<a href="https://github.com/severus27/OpenML-Guide" target="_blank">
Show some love to the OpenML Guide on GitHub—hit it up with a ⭐!
</a>
),
},
footer: {
text: (
<div className="flex w-full items-center justify-between text-sm">
<div className="flex">
<img src="/logo/logo.png" width={25} />
<div className="ml-1 text-sm">
<span> <span className="font-semibold">OpenML Guide</span> © 2023-{new Date().getFullYear()} </span>
</div>
</div>
<div className="flex gap-5 text-xl">
<a href="https://www.youtube.com/@OpenMLGuide" target="_blank">
<FaYoutube className="hover:text-[#76b900]" />
</a>
<a href="mailto:[email protected]" target="_blank">
<TbMailFilled className="hover:text-[#76b900]" />
</a>
<a href="https://github.com/severus27/OpenML-Guide" target="_blank">
<FaGithub className="hover:text-[#76b900]" />
</a>
<a href="https://discord.com/invite/QgZHExcssR" target="_blank">
<FaDiscord className="hover:text-[#76b900]" />
</a>
<a href="https://twitter.com/OpenMLGuide" target="_blank">
<FaXTwitter className="hover:text-[#76b900]" />
</a>
</div>
</div>
),
},
};
export default config;