-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocusaurus.config.js
More file actions
260 lines (256 loc) · 7.59 KB
/
Copy pathdocusaurus.config.js
File metadata and controls
260 lines (256 loc) · 7.59 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
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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
/** @type {import('@docusaurus/types').DocusaurusConfig} */
const math = require("remark-math");
const katex = require("rehype-katex");
module.exports = {
title: "Invariant Docs",
tagline: "Comprehensive guide for using Invariant DEX.",
url: "https://docs.invariant.app",
baseUrl: "/",
onBrokenLinks: "ignore",
onBrokenMarkdownLinks: "warn",
favicon: "img/favicon-16x16.png",
organizationName: "Invariant",
projectName: "Invariant docs",
themeConfig: {
metadata: [
{
name: "description",
content:
"Invariant Docs: Comprehensive guide for using Invariant DEX - the most efficient tool for creating concentrated liquidity.",
},
{
name: "keywords",
content:
"AMM DEX, concentrated liquidity, DeFi exchange, crypto trading, capital efficiency, risk management, decentralized finance, DeFi, liquidity pools, yield farming, blockchain",
},
{ name: "author", content: "Invariant" },
{ name: "robots", content: "index, follow" },
{
httpEquiv: "Cache-Control",
content: "no-cache, no-store, must-revalidate",
},
{ httpEquiv: "X-UA-Compatible", content: "IE=edge" },
{ property: "og:type", content: "website" },
{ property: "og:url", content: "https://docs.invariant.app/" },
{
property: "og:title",
content: "Invariant Docs - Your Guide to Invariant DEX",
},
{
property: "og:description",
content:
"Learn how to use Invariant's AMM DEX with our comprehensive documentation. Dive into advanced DeFi tools and maximize efficiency.",
},
{
property: "og:image",
content: "https://docs.invariant.app/img/logo.png",
},
{ name: "twitter:card", content: "summary_large_image" },
{ name: "twitter:url", content: "https://docs.invariant.app/" },
{
name: "twitter:title",
content: "Invariant Docs - Comprehensive Guide for Invariant DEX",
},
{
name: "twitter:description",
content:
"Explore Invariant's features and learn how to leverage its concentrated liquidity for optimal DeFi strategies.",
},
{
name: "twitter:image",
content: "https://docs.invariant.app/img/logo.png",
},
{ name: "twitter:creator", content: "@invariant_labs" },
],
headTags: [
{
tagName: "script",
attributes: { type: "application/ld+json" },
innerHTML: `
{
"@context": "https://schema.org",
"@type": "WebSite",
"name": "Invariant Docs",
"url": "https://docs.invariant.app/",
"description": "Comprehensive documentation for Invariant DEX.",
"publisher": {
"@type": "Organization",
"name": "Invariant",
"logo": "https://docs.invariant.app/img/logo.png"
}
}
`,
},
{
tagName: "link",
attributes: { rel: "canonical", href: "https://docs.invariant.app/" },
},
],
navbar: {
title: "Invariant",
logo: {
alt: "Invariant Logo",
src: "img/logoShort.png",
},
items: [
{ to: "/docs/solana/introduction", label: "Solana", position: "left" },
{ to: "/docs/eclipse/get_started", label: "Eclipse", position: "left" },
// {
// to: "/docs/aleph_zero/get_started",
// label: "Aleph Zero",
// position: "left",
// },
// { to: '/docs/casper/installation', label: 'Casper Network', position: 'left' },
// { to: "/docs/vara/get_started", label: "VARA", position: "left" },
// {
// to: "/docs/alephium/installation",
// label: "Alephium",
// position: "left",
// },
{
html: '<i class="fa-solid fa-x icon-x"></i>',
href: "https://x.com/invariant_labs",
position: "right",
},
{
html: '<i class="fab fa-github fa-lg icon-github"></i>',
href: "https://github.com/invariant-labs",
position: "right",
},
{
html: '<i class="fab fa-discord icon-discord"></i>',
href: "https://discord.com/invite/w6hTeWTJvG",
position: "right",
},
{
html: '<i class="fab fa-youtube icon-youtube"></i>',
href: "https://www.youtube.com/@invariant_labs",
position: "right",
},
],
},
footer: {
style: "dark",
links: [
{
title: "Docs",
items: [
{
label: "Home",
to: "/docs/",
},
],
},
{
title: "Community",
items: [
{
label: "Discord",
href: "https://discord.gg/w6hTeWTJvG",
},
{
label: "Twitter",
href: "https://twitter.com/invariant_labs",
},
],
},
{
title: "More",
items: [
{
label: "GitHub",
href: "https://github.com/invariant-labs",
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} Invariant | Built with Docusaurus.`,
},
prism: {
theme: require("prism-react-renderer/themes/vsDark"),
additionalLanguages: ["rust"],
},
},
presets: [
[
"@docusaurus/preset-classic",
{
docs: {
remarkPlugins: [math],
rehypePlugins: [katex],
sidebarPath: require.resolve("./sidebars.js"),
editUrl: undefined,
},
theme: {
customCss: require.resolve("./src/css/custom.css"),
},
},
],
],
stylesheets: [
{
href: "https://cdn.jsdelivr.net/npm/katex@0.13.24/dist/katex.min.css",
type: "text/css",
integrity:
"sha384-odtC+0UGzzFL/6PNoE8rX/SPcQDXBJ+uRepguP4QkPCm2LBxH3FA3y+fKSiJ+AmM",
crossorigin: "anonymous",
},
],
plugins: [
[
"@docusaurus/plugin-client-redirects",
{
fromExtensions: ["html"],
toExtensions: ["html"],
redirects: [
{
from: "/docs/aleph_zero/",
to: "/docs/aleph_zero/installation",
},
// {
// from: "/docs/alephium/",
// to: "/docs/alephium/installation",
// },
{
from: "/docs/solana/",
to: "/docs/solana/introduction",
},
{
from: "/docs/eclipse/",
to: "/docs/eclipse/introduction",
},
// {
// from: '/docs/casper/',
// to: '/docs/casper/installation'
// },
{
from: "/docs/vara/",
to: "/docs/vara/installation",
},
],
createRedirects(existingPath) {
if (existingPath === "/docs/aleph_zero/") {
return "/docs/aleph_zero/installation";
}
// if (existingPath === "/docs/alephium/") {
// return "/docs/alephium/installation";
// }
if (existingPath === "/docs/solana/") {
return "/docs/solana/introduction";
}
// if (existingPath === '/docs/casper/') {
// return '/docs/casper/installation'
// }
if (existingPath === "/docs/eclipse/") {
return "/docs/eclipse/introduction";
}
if (existingPath === "/docs/vara/") {
return "/docs/vara/installation";
}
// Path does not require a redirect.
return undefined;
},
},
],
],
};