-
Notifications
You must be signed in to change notification settings - Fork 6
/
theme.config.tsx
130 lines (122 loc) · 5.05 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
import { DocsThemeConfig, useConfig } from 'nextra-theme-docs';
import { TelegramIcon, ExternalLink } from './components';
import { LINKS } from './constants';
import { useRouter } from 'next/router';
const config: DocsThemeConfig = {
logo: (
<div className="nx-flex nx-items-center max-[500px]:gap-2 min-[500px]:gap-3">
<svg
width="32"
height="32"
viewBox="0 0 32 32"
fill="none"
xmlns="http://www.w3.org/2000/svg">
<path d="M14 14L4 14L14 4L14 14Z" fill="currentColor" />
<path opacity="0.8" d="M14 14L4 28L4 14L14 14Z" fill="currentColor" />
<path opacity="0.8" d="M28 4L14 4L14 14L28 4Z" fill="currentColor" />
<path opacity="0.4" d="M14 14L28 28L4 28L14 14Z" fill="currentColor" />
<path opacity="0.6" d="M28 28L28 4L14 14L28 28Z" fill="currentColor" />
</svg>
<span className="nx-font-bold max-[500px]:text-lg min-[500px]:text-2xl">Documentation</span>
</div>
),
head: () => {
const { title } = useConfig();
const { route } = useRouter();
return (
<>
<meta charSet="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta data-cd-check="1cb6adb6d4b631b9" />
<title>{title && route !== '/' ? title + ' – Console Docs' : 'Console Docs'}</title>
{/*indexing*/}
<meta name="fragment" content="”!”" />
<meta name="robots" content="index,follow" />
<meta name="audience" content="all" />
{/*indexing*/}
{/*description*/}
<meta
name="description"
content="Knowledge base for Ton Console users and partners: manage dapps, tokens and payments in one place with powerful API and deep commercial integrations"
/>
<meta
name="keywords"
content="tonconsole, tonapi, documentation, dapps, business, TON, API, blockchain, Web3, console, B2B, development"
/>
{/*description*/}
{/*Open Graph meta*/}
<meta property="og:type" content="website" />
<meta property="og:locale" content="en_US" />
<meta property="og:url" content="https://docs.tonconsole.com" />
<meta property="og:site_name" content="Documentation" />
<meta property="og:title" content="Console Docs" />
<meta property="og:image" content="https://docs.tonconsole.com/og-image.png" />
<meta
property="og:description"
content="Knowledge base for Ton Console users and partners: manage dapps, tokens and payments in one place with powerful API and deep commercial integrations"
/>
{/*Open Graph meta*/}
{/*Twitter meta*/}
<meta name="twitter:card" content="summary" />
<meta name="twitter:site" content="@tonappshq" />
<meta property="twitter:url" content="https://docs.tonconsole.com" />
<meta name="twitter:title" content="Console Docs" />
<meta
name="twitter:description"
content="Service with business tools for TON blockchain. All to easy launching Web3 apps, API calls and transactions control in few clicks"
/>
{/*Twitter meta*/}
{/*favicon*/}
<link rel="icon" href="/favicon.ico" sizes="any" />
<link rel="icon" href="/icon.svg" type="image/svg+xml" />
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
<link rel="manifest" href="/manifest.json" />
{/*favicon*/}
</>
);
},
project: {
link: LINKS.GITHUB,
},
chat: {
icon: <TelegramIcon />,
link: LINKS.TELEGRAM_CHANNEL,
},
toc: {
float: true,
},
feedback: {
useLink: () => 'https://t.me/tonrostislav',
},
editLink: {
component: () => null,
},
footer: {
component: (
<footer className="nx-bg-gray-100 nx-pb-[env(safe-area-inset-bottom)] dark:nx-bg-neutral-900 print:nx-bg-transparent">
<hr className="dark:nx-border-neutral-800" />
<div className="nx-mx-auto nx-flex gap-8 flex-wrap justify-between nx-max-w-[90rem] py-5 nx-text-gray-600 dark:nx-text-gray-400 md:nx-justify-start nx-pl-[max(env(safe-area-inset-left),1.5rem)] nx-pr-[max(env(safe-area-inset-right),1.5rem)]">
<a
className="nx-text-gray-500 hover:nx-text-gray-900 dark:nx-text-gray-400 dark:hover:nx-text-gray-100 contrast-more:nx-text-gray-800 contrast-more:dark:nx-text-gray-50"
href="/disclaimer">
Disclaimer
</a>
<ExternalLink variant="secondary" href={LINKS.TERMS}>Terms</ExternalLink>
{/* <ExternalLink variant="secondary" href={LINKS.PRIVACY}>Privacy</ExternalLink> */}
<ExternalLink variant="secondary" href={LINKS.SUPPORT}>
Support
</ExternalLink>
<ExternalLink variant="secondary" href={LINKS.CONTACT}>
Contact us
</ExternalLink>
<div className="flex flex-1 justify-end">
<ExternalLink variant="secondary" href={LINKS.CONSOLE}>
tonconsole.com
</ExternalLink>
</div>
</div>
</footer>
),
},
};
export default config;