-
Notifications
You must be signed in to change notification settings - Fork 9
/
theme.config.tsx
46 lines (44 loc) · 1.13 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
/* eslint-disable react/react-in-jsx-scope */
import { useRouter } from 'next/router';
import { type DocsThemeConfig } from 'nextra-theme-docs';
const config: DocsThemeConfig = {
logo: <b>@effector/reflect</b>,
project: {
link: 'https://github.com/effector/reflect',
},
docsRepositoryBase: 'https://github.com/effector/reflect/blob/master/docs',
darkMode: true,
primaryHue: 35,
banner: {
dismissible: true,
key: 'reflect v9 announce',
text: (
<a href="https://github.com/effector/reflect/issues/44" target="_blank">
<b>@effector/reflect</b> v9 will be released soon! Check the updates →
</a>
),
},
navbar: {
// extraContent: <>Link to Effector Docs</>,
},
footer: {
text: (
<span>
MIT {new Date().getFullYear()} ©{' '}
<a href="https://github.com/effector" target="_blank">
Effector Core Team
</a>
</span>
),
},
faviconGlyph: '☄️',
useNextSeoProps() {
const { asPath } = useRouter();
if (asPath !== '/') {
return {
titleTemplate: '%s | @effector/reflect',
};
}
},
};
export default config;