-
Notifications
You must be signed in to change notification settings - Fork 1
/
theme.config.tsx
68 lines (65 loc) · 2.17 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
import React from 'react'
import { DocsThemeConfig } from 'nextra-theme-docs'
import styles from "./theme.module.scss";
import { useRouter } from 'next/router';
import Logo from './components/Logo/Logo';
const config: DocsThemeConfig = {
logo: <span className={styles.logo} style={{ display: "flex", gap: "8px" }}>
<Logo />
BEYOND EARTH
</span>,
sidebar: {
defaultMenuCollapseLevel: 1
},
head: (
<>
<meta content="Beyond Earth" property="og:site_name"></meta>
<meta name="theme-color" content="#3c98ed"></meta>
<meta property="og:description" content="A thought-experiment through the future of mankind. Hand-crafted to inform and inspire." />
<meta property="og:image" content="https://i.imgur.com/q3p5h2s.png" />
<meta name="twitter:site" content="Beyond Earth"></meta>
<meta name="twitter:title" content="Beyond Earth"></meta>
<meta name="twitter:description" content="A thought-experiment through the future of mankind. Hand-crafted to inform and inspire."></meta>
<meta name="twitter:card" content="summary_large_image"></meta>
<meta name="twitter:image:src" content="https://i.imgur.com/q3p5h2s.png"></meta>
</>
),
project: {
link: 'https://github.com/gianlucajahn/guidetothegalaxy',
},
search: {
placeholder: "Search documentation..."
},
chat: {
link: 'https://discordapp.com/users/556559991062921217',
},
docsRepositoryBase: 'https://github.com/gianlucajahn/guidetothegalaxy',
footer: {
text: (
<span style={{ display: 'flex', gap: '6px' }}>
MIT {new Date().getFullYear()} ©{' '}
<a href="https://nextra.site" target="_blank">
Beyond Earth
</a>
<p>|</p>
<a style={{ color: '#0092ff' }} href='/de/imprint'>Impressum</a>
</span>
)
},
i18n: [
{ locale: 'en', text: 'English' },
{ locale: 'de', text: 'Deutsch' }
],
faviconGlyph: "🌌",
nextThemes: {
"defaultTheme": "dark"
},
useNextSeoProps() {
const route = useRouter();
const title = route.pathname.includes('index') ? 'Home | Beyond Earth' : '%s | Beyond Earth';
return {
titleTemplate: title
};
}
}
export default config