-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy paththeme.config.tsx
40 lines (37 loc) · 1.08 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
import React from 'react'
import { DocsThemeConfig } from 'nextra-theme-docs'
import Image from 'next/image'
import { useConfig } from 'nextra-theme-docs'
const config: DocsThemeConfig = {
logo: <Image src="https://app.vechain.energy/assets/favicon.svg" alt='vechain.energy' width={48} height={48} />,
logoLink: '/',
editLink: {
text: ''
},
feedback: {
useLink: () => 'https://bit.ly/energy-discord'
},
docsRepositoryBase: 'https://github.com/vechain-energy',
chat: {
link: 'https://bit.ly/energy-discord',
},
head: () => {
const { frontMatter } = useConfig()
return (
<>
<link rel="icon" href="https://app.vechain.energy/assets/favicon.svg" type="image/svg+xml"></link>
<link rel="icon" href="https://app.vechain.energy/assets/favicon.png" type="image/png"></link>
<meta property="og:title" content={frontMatter.title || 'vechain.energy'} />
</>
)
},
useNextSeoProps() {
return {
titleTemplate: '%s – docs.vechain.energy'
}
},
footer: {
text: 'docs.vechain.energy'
}
}
export default config