-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy paththeme.config.jsx
80 lines (78 loc) · 2.04 KB
/
theme.config.jsx
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
import { useRouter } from "next/router";
// eslint-disable-next-line import/no-anonymous-default-export
export default {
logo: (
<span style={{ color: "", fontSize: "30px" }}>
NextDev<span style={{ color: "red", fontSize: "50px" }}>.</span>
<span
style={{
color: "red",
fontSize: "30px",
fontWeight: "bolder",
}}>
io
</span>
</span>
),
project: {
link: "https://github.com/Deveripon/javascript-documentation-nextra",
},
docsRepositoryBase:
"https://github.com/Deveripon/javascript-documentation-nextra/tree/main/",
// ... other theme options
useNextSeoProps() {
const { asPath } = useRouter();
if (asPath !== "/") {
return {
titleTemplate: "%s – NextDev.io",
};
}
},
head: (
<>
<meta
name='viewport'
content='width=device-width, initial-scale=1.0'
/>
<meta
property='og:title'
content='NextDev.io'
/>
<meta
property='og:description'
content='A documentation platform for developers'
/>
</>
),
banner: {
key: "2.0-release",
text: (
<a
href='https://github.com/deveripon/'
target='_blank'>
🎉 follow my github →
</a>
),
dismissible: true,
},
toc: {
backToTop: true,
},
sidebar: {
defaultMenuCollapseLevel: 2,
},
footer: {
text: (
<span>
copyright {new Date().getFullYear()} ©{" "}
<a
href='https://github.com/deveripon'
target='_blank'>
devripon
</a>
.
</span>
),
},
defaultShowCopyCode: true,
};