-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy paththeme.config.tsx
99 lines (94 loc) · 2.96 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
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/fastai.png" alt="" />
<p className="text-lg font-medium ml-4">FastAI Documentation</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 – UI-Lib",
};
}
},
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="FastAI it's an AI-based tool. It will help you to generate text content, images, text-to-audio conversion, and audio-to-text conversion according to your requirement. Also, you can chat with different types of chat bots to get help."
/>
<meta
name="og:description"
content="FastAI it's an AI-based tool. It will help you to generate text content, images, text-to-audio conversion, and audio-to-text conversion according to your requirement. Also, you can chat with different types of chat bots to get help."
/>
<meta
name="og:title"
content={title ? title + " – UI-Lib" : "UI-Lib"}
/>
<meta name="apple-mobile-web-app-title" content="UI-Lib" />
<link rel="icon" href="/assets/fastai.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()} FastAI</p>
</div>
),
},
};
export default config;