-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
theme.config.tsx
38 lines (35 loc) · 1.13 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
import React from 'react';
import {DocsThemeConfig, useConfig} from 'nextra-theme-docs';
import {HeaderLogo} from "./components/HeaderLogo";
import PageFooter from "./components/PageFooter";
const config: DocsThemeConfig = {
logo: <HeaderLogo />,
project: {
link: 'https://github.com/Sinytra/',
},
chat: {
link: 'https://discord.sinytra.org',
},
docsRepositoryBase: 'https://github.com/Sinytra/website/blob/master/',
footer: {
content: PageFooter
},
darkMode: false,
nextThemes: {
defaultTheme: 'dark',
forcedTheme: 'dark'
},
head: () => {
const { title } = useConfig();
return <>
<title>{title}</title>
<link rel="icon" type="image/x-icon" href="/favicon.ico"/>
<meta property="og:title" content={title ? title + ' – Sinytra' : 'Sinytra'}/>
<meta property="og:description" content="Bridging the gap between platforms. Powered by Free and Open Source Software."/>
<meta property="og:image" content="https://sinytra.org/logo.png"/>
<meta property="og:type" content="website" />
<meta name="theme-color" content="#ffcf06" />
</>
}
}
export default config