forked from Kareadita/Wiki-Nextra
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy paththeme.config.tsx
57 lines (53 loc) · 1.19 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
import { useRouter } from 'next/router'
import Footer from './components/Footer'
import Head from './components/Head'
import HelpDocsCTA from './components/HelpDocsCTA'
import NavBar, { ExtraContent } from './components/NavBar'
import WikiLogo from './components/WikiLogo'
export const GITHUB_REPO = 'https://github.com/Kareadita/Wiki-Nextra'
const DOCS_PAGES_HREF = `${GITHUB_REPO}/tree/main/pages`
export default {
banner: {
key: '0.8.0',
text: (
<a href="https://github.com/Kareadita/Kavita/releases/latest" target="_blank">
🎉 Kavita v0.8.3 is released. Read more →
</a>
)
},
chat: {
link: 'https://discord.gg/b52wT37kt7',
},
docsRepositoryBase: DOCS_PAGES_HREF,
editLink: {
component: HelpDocsCTA,
},
feedback: {
content: null,
},
footer: {
component: Footer,
},
head: <Head />,
logo: <WikiLogo />,
navbar: {
component: NavBar,
extraContent: ExtraContent,
},
primaryHue: { dark: 133, light: 133 },
primarySaturation:100,
project: {
link: 'https://github.com/Kareadita/Kavita',
},
useNextSeoProps() {
const { asPath } = useRouter()
if (asPath !== '/') {
return {
titleTemplate: '%s | Kavita Wiki',
}
}
return {
title: 'Kavita',
}
},
}