generated from shuding/nextra-docs-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy paththeme.config.tsx
34 lines (31 loc) · 884 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
import React from 'react'
import { DocsThemeConfig,useConfig } from 'nextra-theme-docs'
const config: DocsThemeConfig = {
logo: <span>Fluent Docs</span>,
project: {
link: 'https://github.com/fluent-qa/fluentqa-python',
},
chat: {
link: 'https://discord.com',
},
docsRepositoryBase: 'https://github.com/fluent-qa/fluentqa-python',
footer: {
text: 'all the docs',
},
useNextSeoProps: () =>({
titleTemplate: "%s - Fluent QA"
}),
head: ()=>{
const { frontMatter } = useConfig();
return (
<>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta property="og:title" content={frontMatter.title ?? "Fluent Documentation"} />
<meta
property="og:description"
content={frontMatter.description ?? "Fluent Documentation"}
/>
</>)
}
}
export default config