-
Notifications
You must be signed in to change notification settings - Fork 0
/
theme.config.tsx
81 lines (79 loc) · 1.65 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
69
70
71
72
73
74
75
76
77
78
79
80
81
import React from 'react'
import type { DocsThemeConfig } from 'nextra-theme-docs'
import Logo from './components/logo/logo';
import style from "./theme.module.css";
const config: DocsThemeConfig = {
logo: (<Logo></Logo>),
docsRepositoryBase: 'https://github.com/chimera-skeleton/scoheart-nextra-blog/issues',
primaryHue: {
dark: 180,
light: 280
},
useNextSeoProps() {
return {
titleTemplate: 'Scoheart Blog'
}
},
project: {
link: 'https://github.com/scoheart',
},
chat: {
link: 'https://discord.com/scoheart',
},
search: {
placeholder: "Search"
},
banner: {
dismissible: false,
key: '1',
text: (
<a href="https://github.com/scoheart" target="_blank">
🎉 Scoheart Github. Read more →
</a>
)
},
navbar: {
extraContent: (
null
)
},
sidebar: {
defaultMenuCollapseLevel: 1,
autoCollapse: false,
toggleButton: true,
titleComponent({ title, type }) {
if (type === 'separator') {
return (
<div className={style.title}>{title}</div>
)
}
return <>{title}</>
}
},
toc: {
title: "🔗 Table Of Content"
},
editLink: {
text: "Edit this Page on Github"
},
feedback: {
content: "Question? Give me Feedback"
},
// i18n: [
// { locale: 'en', text: 'English' },
// { locale: 'zh', text: '中文' }
// ],
footer: {
text: (
<span>
📦 Scoheart July 24 {new Date().getFullYear()} ©{' '}
<a href="https://nextra.site" target="_blank">
Nextra
</a>
.
</span>
),
},
faviconGlyph: "👻"
}
export default config