-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy paththeme.config.jsx
75 lines (74 loc) · 1.71 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
import { useEffect } from 'react';
import { useTheme } from 'next-themes';
import { CustomFooter } from './components/customFooter';
import { CustomNavbar } from './components/customNavbar';
export default {
project: {
link: 'https://autonomys.xyz',
icon: (
<img
src="/logo-black.png"
alt="Autonomys Network Logo"
style={{
height: '32px',
marginRight: '0.5rem',
}}
/>
)
},
sidebar: {
defaultMenuCollapsed: false,
hiddenPages: ['/'], // Hide the sidebar only on the landing page
},
docsRepositoryBase: 'https://github.com/autonomys/developer_docs',
useNextSeoProps() {
return {
titleTemplate: '%s - Autonomys Network Developer Documentation',
defaultTitle: 'Autonomys Network Developer Documentation'
};
},
logo: (
<>
<img
src="/logo-black.png"
alt="Autonomys Network Logo"
style={{
height: '32px',
marginRight: '0.5rem',
}}
/>
<span
style={{
fontSize: '1.25rem',
fontWeight: '600',
color: '#374151',
cursor: 'pointer',
transition: 'color 0.3s ease',
}}
onMouseEnter={(e) => (e.currentTarget.style.color = '#6366F1')}
onMouseLeave={(e) => (e.currentTarget.style.color = '#374151')}
>
Developer Documentation
</span>
</>
),
darkMode: true,
nextThemes: {
defaultTheme: 'dark',
storageKey: 'theme',
forcedTheme: undefined,
},
primaryHue: {
light: 220,
dark: 220,
},
themeSwitch: {
useToggleTheme: true,
},
navbar: {
extraContent: <CustomNavbar />,
},
footer: {
component: CustomFooter
},
};