-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy paththeme.config.tsx
100 lines (98 loc) · 2.73 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
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
import React from 'react'
import { useRouter } from 'next/router'
import { Logo } from './components/Logo'
import { BsTwitterX } from 'react-icons/bs'
import { SiFarcaster } from 'react-icons/si'
import { Separator } from './components/Separator'
import { DocsThemeConfig } from 'nextra-theme-docs'
const config: DocsThemeConfig = {
useNextSeoProps: () => {
const { asPath } = useRouter()
if (asPath !== '/') {
return {
titleTemplate: '%s – Rhinestone Docs',
}
} else {
return {
titleTemplate: 'Rhinestone Docs',
}
}
},
head: (
<>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta property="og:title" content="Rhinestone Docs" />
<meta property="og:description" content="Documentation for Rhinestone" />
<link rel="icon" href="/favicon.ico" />
</>
),
logo: (
<>
<Logo width={22} height={22} />
<div className="font-favorit normal-case ml-2 font-bold text-xl">
rhinestone <span className="text-[#8479FF] text-lg">Docs</span>
</div>
</>
),
project: {
link: 'https://github.com/rhinestonewtf',
},
navbar: {
// extraContent: (
// <div className="flex flex-row">
// <a href="https://x.com/rhinestonewtf" target="_blank" className="mr-4">
// <BsTwitterX size={24} />
// </a>
// <a href="https://warpcast.com/rhinestone" target="_blank" className="">
// <SiFarcaster size={24} />
// </a>
// </div>
// ),
},
sidebar: {
defaultMenuCollapseLevel: 1,
titleComponent({ title, type }) {
if (type === 'separator') {
return <Separator title={title} />
}
return <div className="-my-[2px]">{title}</div>
},
},
primaryHue: {
light: 244.83,
dark: 245,
},
primarySaturation: {
light: 72.8,
dark: 74,
},
docsRepositoryBase: 'https://github.com/rhinestonewtf/docs/',
footer: {
text: (
<div className="flex flex-row justify-between w-full">
<span>
Copyright {new Date().getFullYear()}{' '}
<a href="https://rhinestone.wtf" target="_blank">
Rhinestone
</a>
</span>
<div className="flex flex-row justify-between gap-x-4">
<a href="https://rhinestone.wtf" target="_blank">
About us
</a>
<a href="https://blog.rhinestone.wtf" target="_blank">
Blog
</a>
<a href="https://twitter.com/rhinestonewtf" target="_blank">
Twitter
</a>
<a href="https://warpcast.com/rhinestone" target="_blank">
Warpcast
</a>
</div>
</div>
),
},
editLink: { component: null },
}
export default config