-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy paththeme.config.tsx
31 lines (29 loc) · 887 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
import React from 'react'
import { DocsThemeConfig } from 'nextra-theme-docs'
import { useRouter } from 'next/router'
const config: DocsThemeConfig = {
logo: <span>SendMail API Docs</span>,
project: {
link: 'https://github.com/ahmed0saber/sendmail-api',
},
docsRepositoryBase: 'https://github.com/ahmed0saber/sendmail-api',
footer: {
text: 'SendMail API Docs',
},
useNextSeoProps() {
const { asPath } = useRouter()
if (asPath !== '/') {
return {
titleTemplate: '%s | SendMail API Docs'
}
}
},
head: (
<>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta property="og:title" content="SendMail API Docs" />
<meta property="og:description" content="SendMail API is a simple API that enables you to send emails to yourself or anyone else." />
</>
),
}
export default config