-
Notifications
You must be signed in to change notification settings - Fork 0
/
theme.config.tsx
99 lines (95 loc) · 2.79 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
import { DocsThemeConfig } from 'nextra-theme-docs';
import { Logo } from './components/logo';
const config: DocsThemeConfig = {
logo: <Logo />,
project: {
link: 'https://github.com/smarttokenlabs/tokenscript-doc',
},
chat: {
link: 'https://discord.gg/smartlayer',
},
docsRepositoryBase:
'https://github.com/smarttokenlabs/tokenscript-doc/tree/main',
useNextSeoProps() {
return {
titleTemplate: '%s – Smart Layer Launchpad',
};
},
head: function useHead() {
const socialCard =
'https://launchpad.smartlayer.network/opengraph-image.png';
return (
<>
<meta name="msapplication-TileColor" content="#fff" />
<meta name="theme-color" content="#fff" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta httpEquiv="Content-Language" content="en" />
<meta
name="description"
content="A token centric architecture for a token centric web"
/>
<meta
name="og:description"
content="A token centric architecture for a token centric web"
/>
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:image" content={socialCard} />
<meta
name="twitter:site:domain"
content="launchpad.smartlayer.network"
/>
<meta
name="twitter:url"
content="https://launchpad.smartlayer.network/opengraph-image.png"
/>
<meta name="og:title" content={'Launchpad Docs'} />
<meta name="og:image" content={socialCard} />
<meta name="apple-mobile-web-app-title" content="Launchpad Docs" />
{/* <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)"
/> */}
</>
);
},
editLink: {
text: 'Edit this page on GitHub →',
},
feedback: {
content: 'Question? Give us feedback →',
labels: 'feedback',
},
sidebar: {
titleComponent({ title, type }) {
if (type === 'separator') {
return <span className="cursor-default">{title}</span>;
}
return <>{title}</>;
},
autoCollapse: false,
toggleButton: true,
},
footer: {
text: (
<div className="flex w-full flex-col items-center sm:items-start">
<p className="mt-6 text-xs">
© {new Date().getFullYear()} SmartToken Labs.
</p>
</div>
),
},
toc: {
backToTop: true,
},
};
export default config;