-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
theme.config.tsx
50 lines (48 loc) · 1.38 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
import React from 'react'
import { DocsThemeConfig } from 'nextra-theme-docs'
import { useRouter } from 'next/router'
import InstagramIcon from '@mui/icons-material/Instagram';
import { useConfig } from 'nextra-theme-docs'
const config: DocsThemeConfig = {
logo: <img src="/wiki42trans.png" alt="Wiki42 Logo" width="40" height="40" />,
logoLink: '/',
useNextSeoProps() {
const { asPath } = useRouter();
if (asPath !== '/') {
return {
titleTemplate: '%s – Wiki42 - A Wiki for 42 School',
}
}
return {
titleTemplate: 'Wiki42 - A Wiki for 42 students',
}
},
project: {
link: 'https://github.com/harmonie-durrant/wiki-42',
},
chat: {
link: 'https://instagram.com/42.wiki',
icon: (<InstagramIcon />)
},
docsRepositoryBase: 'https://github.com/harmonie-durrant/wiki-42/tree/main',
footer: {
text: 'Wiki42 giving you info about 42 since 2024',
},
head: () => {
const { frontMatter } = useConfig();
return (
<>
<link rel="icon" type="image/x-icon" href="/favicon.ico"></link>
<meta
property="og:description"
content={frontMatter.description || 'The next site builder'}
/>
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
</>
)
},
search: {
placeholder: "Search Wiki42"
}
}
export default config