-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy paththeme.config.tsx
More file actions
71 lines (67 loc) · 2.07 KB
/
theme.config.tsx
File metadata and controls
71 lines (67 loc) · 2.07 KB
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
import React from 'react'
import { DocsThemeConfig, useConfig } from 'nextra-theme-docs'
import { useRouter } from 'next/router'
function useHead() {
const { asPath } = useRouter()
const { frontMatter, title } = useConfig()
const url = `https://theorderfivem.github.io${asPath}`
const description = frontMatter.description || 'Documentation for Community Bridge - Universal Translation Layer for FiveM'
return (
<>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="icon" href="https://avatars.githubusercontent.com/u/192999457?s=32&v=4" type="image/png" />
<meta httpEquiv="Content-Language" content="en" />
<meta name="description" content={description} />
<meta name="og:title" content={title} />
<meta name="og:description" content={description} />
<meta name="og:url" content={url} />
</>
)
}
const config: DocsThemeConfig = {
logo: (
<span style={{ display: 'flex', alignItems: 'center', gap: '0.5rem', fontWeight: 700, fontSize: '1.1rem' }}>
<img
src="https://avatars.githubusercontent.com/u/192999457?s=200&v=4"
alt="The Order"
style={{ width: 28, height: 28, borderRadius: '50%' }}
/>
Community Bridge
</span>
),
project: {
link: 'https://github.com/TheOrderFivem/community_bridge',
},
chat: {
link: 'https://discord.gg/MukwBuJjP7',
},
docsRepositoryBase: 'https://github.com/TheOrderFivem/community_bridge/blob/main/docs',
footer: {
content: (
<span>
MIT {new Date().getFullYear()} © Community Bridge - The Order Of The Sacred Framework
</span>
),
},
head: useHead,
color: {
hue: 200,
saturation: 100,
},
sidebar: {
defaultMenuCollapseLevel: 1,
toggleButton: true,
},
toc: {
backToTop: true,
},
banner: {
key: 'community-bridge-release',
content: (
<a href="https://github.com/TheOrderFivem/community_bridge/releases" target="_blank">
🎉 Community Bridge is available! Check out the latest release →
</a>
),
},
}
export default config