-
Notifications
You must be signed in to change notification settings - Fork 75
/
Copy paththeme.config.tsx
43 lines (40 loc) · 1012 Bytes
/
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
import React from 'react'
import type { DocsThemeConfig } from 'nextra-theme-docs'
import { useRouter } from 'next/router'
import SafeLogo from './assets/svg/safe-logo-white.svg'
import Footer from './components/Footer'
// import Feedback from './components/Feedback'
const config: DocsThemeConfig = {
darkMode: false,
nextThemes: {
forcedTheme: 'dark'
},
primaryHue: 150,
logo: <SafeLogo />,
project: {
link: 'https://github.com/safe-global'
},
docsRepositoryBase: 'https://github.com/safe-global/safe-docs/tree/main',
footer: {
text: <Footer />
},
sidebar: {
defaultMenuCollapseLevel: 1
},
head: <link rel='icon' type='image/png' sizes='32x32' href='/favicon.png' />,
useNextSeoProps: () => {
const { asPath } = useRouter()
if (asPath !== '/') {
return {
titleTemplate: '%s – Safe Documentation'
}
}
}
// main: ({ children }) => (
// <>
// {children}
// <Feedback />
// </>
// )
}
export default config