-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy paththeme.config.tsx
143 lines (127 loc) Β· 3.99 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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
// @ts-check
/* eslint sort-keys: error */
/**
* @type {import('nextra-theme-docs').DocsThemeConfig}
*/
import { useRouter } from 'next/router';
import { GitHubIcon } from 'nextra/icons';
import type { DocsThemeConfig } from 'nextra-theme-docs';
import { Link, useConfig } from 'nextra-theme-docs'
import { Footer } from './components/Footer';
import { TelegramIcon } from './components/icons';
import SecureRPCLogo from './public/secure_rpc.svg';
const config: DocsThemeConfig = {
banner: {
key: '3.0-release',
content: (
<div className='before:content-["π_"]'>
SecureRPC 3.0 is out!{' '}
<Link
href="https://forums.manifoldfinance.com"
className='after:content-["_β"]'
>
Read more
</Link>
</div>
)
},
logo: (
<>
<SecureRPCLogo className="logo" />
<span className="_sr-only">SecureRPC</span>
</>
),
project: {
link: 'https://github.com/manifoldfinance',
icon: (
<>
<GitHubIcon className="text-neutral-800 transition-colors hover:text-neutral-900 dark:text-neutral-200 dark:hover:text-neutral-100" />
<span className="_sr-only">GitHub</span>
</>
),
},
chat: {
link: 'https://t.me/manifoldfinance',
icon: (
<>
<TelegramIcon className="text-neutral-800 transition-colors hover:text-neutral-900 dark:text-neutral-200 dark:hover:text-neutral-100" />
<span className="_sr-only">Telegram</span>
</>
),
},
footer: {
content: <Footer />,
},
color: {
hue: { dark: 186, light: 186 },
saturation: { dark: 86, light: 86 },
},
docsRepositoryBase: 'https://github.com/manifoldfinance/securerpc-frontend/tree/master/docs',
sidebar: {
defaultMenuCollapseLevel: 2,
toggleButton: true
},
editLink: {
content: 'Edit this page on GitHub β',
},
toc: {
backToTop: true,
},
feedback: {
content: null,
},
navigation: {
prev: true,
next: true,
},
darkMode: true,
nextThemes: {
defaultTheme: 'dark',
},
faviconGlyph: 'π',
head: function useHead() {
const config = useConfig();
const { route } = useRouter();
const isDefault = route === '/' || !config.title;
// Building Your Application: Caching | Next.js
const title = isDefault
? 'SecureRPC β Connect to Opportunities'
: `${config.frontMatter.title ?? 'Documentation'} β SecureRPC`;
// An overview of caching mechanisms in Next.js.
const description = config.frontMatter.description ?? 'SecureRPC';
const image = config.frontMatter.image ?? 'https://SecureRPC.com/og.png';
return (
<>
<title>{title}</title>
<meta property="og:title" content={title} />
<meta name="description" content={description} />
<meta property="og:description" content={description} />
<meta property="og:image" content={image} />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:site" content="@foldfinance" />
<meta name="twitter:site:domain" content="SecureRPC.com" />
<meta name="twitter:url" content="https://SecureRPC.com" />
<meta httpEquiv="Content-Language" content="en" />
<meta name="apple-mobile-web-app-title" content="SecureRPC" />
<meta name="msapplication-TileColor" content="#fff" />
{/* <link rel="icon" href="/favicon.svg" type="image/svg+xml" />
<link rel="icon" href="/favicon.png" type="image/png" />
<link
rel="icon"
href="/favicon-dark.svg"
type="image/svg+xml"
media="(prefers-color-scheme: dark)"
/>
<link
rel="icon"
href="/favicon-dark.png"
type="image/png"
media="(prefers-color-scheme: dark)"
/> */}
<meta name="theme-color" content="#ffffff" media="(prefers-color-scheme: light)" />
<meta name="theme-color" content="#111111" media="(prefers-color-scheme: dark)" />
</>
);
},
};
export default config;