-
Notifications
You must be signed in to change notification settings - Fork 1
/
theme.config.tsx
84 lines (80 loc) · 3.08 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
import { useRouter } from "next/router";
import { DocsThemeConfig, useConfig } from "nextra-theme-docs";
const config: DocsThemeConfig = {
i18n: [{ locale: "en-US", text: "English" }],
logo: (
<span className="logo">
<img src="/logo.svg" width={30} height={30} alt="Quran API Logo" />
<span>Quran API</span>
</span>
),
project: {
link: "https://github.com/The-Quran-Project/Quran-API",
},
chat: {
link: "https://t.me/AlQuranDiscussion",
icon: (
<svg
viewBox="0 0 24 24"
width={24}
height={24}
xmlns="http://www.w3.org/2000/svg"
>
<path
fill="currentColor"
d="M11.944 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0a12 12 0 0 0-.056 0zm4.962 7.224c.1-.002.321.023.465.14a.506.506 0 0 1 .171.325c.016.093.036.306.02.472-.18 1.898-.962 6.502-1.36 8.627-.168.9-.499 1.201-.82 1.23-.696.065-1.225-.46-1.9-.902-1.056-.693-1.653-1.124-2.678-1.8-1.185-.78-.417-1.21.258-1.91.177-.184 3.247-2.977 3.307-3.23.007-.032.014-.15-.056-.212s-.174-.041-.249-.024c-.106.024-1.793 1.14-5.061 3.345-.48.33-.913.49-1.302.48-.428-.008-1.252-.241-1.865-.44-.752-.245-1.349-.374-1.297-.789.027-.216.325-.437.893-.663 3.498-1.524 5.83-2.529 6.998-3.014 3.332-1.386 4.025-1.627 4.476-1.635z"
/>
</svg>
),
},
docsRepositoryBase:
"https://github.com/The-Quran-Project/Quran-API/tree/main/",
footer: {
text: `© Quran API 2023 - ${new Date().getFullYear()}. All rights reserved`,
},
head: function useHead() {
const { title } = useConfig();
const socialCard = "/Thumb.svg";
// TODO: Change the Social Card. Use the Github Card or make something good with proper information
return (
<>
<title>{title ? title : "Quran API"}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta httpEquiv="Content-Language" content="en" />
<meta name="og:image" content={socialCard} />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:image" content={socialCard} />
<meta name="twitter:site:domain" content="quranapi.pages.dev" />
<meta name="twitter:url" content="https://quranapi.pages.dev" />
<meta name="msapplication-TileColor" content="#000" />
<meta name="theme-color" content="#000" />
<meta name="apple-mobile-web-app-title" content="Quran API" />
<link rel="icon" href="/favicon.svg" type="image/svg+xml" />
<link
rel="icon"
href="/favicon-dark.svg"
type="image/svg+xml"
media="(prefers-color-scheme: dark)"
/>
<meta
name="google-site-verification"
content="WPPXho-ehsTzL41OYAECiVP8ilWMxfxjHtHwQUsu1FU"
/>
</>
);
},
sidebar: {
titleComponent({ title, type }) {
if (type === "separator") {
return <span className="cursor-default">{title}</span>;
}
return <>{title}</>;
},
defaultMenuCollapseLevel: 2,
toggleButton: true,
},
toc: {
backToTop: true,
},
};
export default config;