generated from shuding/nextra-docs-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
theme.config.tsx
210 lines (208 loc) · 9.35 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
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
import React from "react";
import { DocsThemeConfig } from "nextra-theme-docs";
import { useRouter } from "next/router";
import { useConfig } from "nextra-theme-docs";
const config: DocsThemeConfig = {
logo: (
<span className="nx-flex nx-text-2xl">
<svg
width="30"
height="30"
viewBox="0 0 460 404"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M408.664 312.768L423.373 311.583L457.367 308.866C457.367 308.866 459.995 305.874 459.995 302.897C459.995 299.919 381.05 0.0434206 381.05 0.0434206C381.05 0.0434206 379.981 0.549284 376.82 0.0434206C373.659 -0.49135 85.2188 4.76963 85.2188 4.76963C85.2188 4.76963 78.9829 3.729 75.2009 18.9916L3.61779 308.519C3.61779 308.519 -14.4837 380.54 30.2937 401.295C38.6371 405.154 440.19 401.295 440.19 401.295C440.19 401.295 444.087 397.927 440.19 391.452C423.676 364.15 423.445 313.086 423.387 311.598C418.191 322.308 410.483 344.074 413.167 360.19C415.116 371.926 415.968 381.956 420.933 392.868C423.387 398.245 38.7093 392.868 38.7093 392.868C38.7093 392.868 -8.7963 361.765 22.0946 312.581L408.678 312.783L408.664 312.768ZM83.4289 22.4171C83.5011 22.0557 85.2044 16.8092 85.3487 16.4768L86.8788 13.2681C87.3696 12.1263 89.2317 10.6087 90.4732 10.5943C115.835 10.0306 372.172 4.42276 375.507 6.4173C375.507 6.4173 450.727 289.123 451.377 291.84C453.066 298.864 450.901 298.185 450.901 298.185L26.6849 298.749H23.1772L83.4289 22.4171Z"
fill="white"
/>
<path
d="M416.834 352.804L67.1606 353.613L417.238 351.142L416.834 352.804Z"
fill="white"
/>
<path
d="M84.6413 370.032H370.411L220.749 371.347L84.6413 370.032Z"
fill="white"
/>
<path
d="M45.1761 336.79H385.481L207.252 337.989L45.1761 336.79Z"
fill="white"
/>
<path
d="M396.509 263.931L298.871 263.83V261.604L393.824 261.705L375.954 167.239L378.134 166.834L396.509 263.931Z"
fill="white"
/>
<path
d="M410.771 248.321L373.644 248.307V246.096H408.043L388.902 154.982L391.067 154.534L410.771 248.321Z"
fill="white"
/>
<path
d="M380.992 280.205L272.325 280.075V277.864L378.379 277.979L373.24 247.353L375.434 246.992L380.992 280.205Z"
fill="white"
/>
<path
d="M418.263 280.249L397.332 280.22L393.824 261.705L414.351 261.734L418.263 280.249ZM399.165 278.008H415.52L412.547 263.96H396.495L399.151 278.008H399.165Z"
fill="white"
/>
<path
d="M169.88 263.656L72.0829 263.541L90.9206 166.487L93.1002 166.906L74.7678 261.329L169.88 261.43V263.656Z"
fill="white"
/>
<path
d="M95.0201 247.974L57.8788 247.902L78.0445 154.158L80.2098 154.621L60.6215 245.691L95.0201 245.749V247.974Z"
fill="white"
/>
<path
d="M196.181 279.96L87.5139 279.844L93.2302 246.645L95.4243 247.021L90.1411 277.633L196.181 277.748V279.96Z"
fill="white"
/>
<path
d="M71.1735 279.829L50.2427 279.8L54.2412 261.3H74.7678L71.1735 279.815V279.829ZM52.9854 277.589H69.3402L72.0684 263.541H56.0167L52.9854 277.589Z"
fill="white"
/>
<path
d="M363.944 97.5884L352.064 35.3093L282.877 35.237V33.0257L353.883 33.098L366.124 97.1692L363.944 97.5884Z"
fill="white"
/>
<path
d="M380.227 108.053L366.643 43.8801L340.632 43.8367L340.646 41.6109L368.433 41.6687L382.406 107.59L380.227 108.053Z"
fill="white"
/>
<path
d="M340.083 42.9261L337.369 26.9553L262.726 26.8686V24.6572L339.246 24.7439L342.263 42.5504L340.083 42.9261Z"
fill="white"
/>
<path
d="M367.654 35.3382H352.064L350.043 24.7584H365.402L367.654 35.3382ZM353.897 33.1124H364.926L363.626 26.9987H352.742L353.912 33.1124H353.897Z"
fill="white"
/>
<path
d="M107.795 97.3137L105.615 96.8946L117.943 32.8522H118.852L188.732 32.9245V35.1503L119.762 35.0636L107.795 97.3137Z"
fill="white"
/>
<path
d="M91.498 107.735L89.3327 107.272L103.378 41.3796L131.18 41.3941V43.6199L105.182 43.6054L91.498 107.735Z"
fill="white"
/>
<path
d="M131.743 42.7094L129.563 42.3336L132.594 24.5272H133.533L209.114 24.6139V26.8252L134.471 26.7385L131.743 42.7094Z"
fill="white"
/>
<path
d="M119.762 35.0636H104.172L106.438 24.4838H121.797L119.762 35.0636ZM106.915 32.8378H117.943L119.127 26.7241H108.243L106.929 32.8378H106.915Z"
fill="white"
/>
<path
d="M396.509 263.931L298.871 263.83V261.604L393.824 261.705L375.954 167.239L378.134 166.834L396.509 263.931Z"
fill="white"
/>
<path
d="M410.771 248.321L373.644 248.307V246.096H408.043L388.902 154.982L391.067 154.534L410.771 248.321Z"
fill="white"
/>
<path
d="M380.992 280.205L272.325 280.075V277.864L378.379 277.979L373.24 247.353L375.434 246.992L380.992 280.205Z"
fill="white"
/>
<path
d="M418.263 280.249L397.332 280.22L393.824 261.705L414.351 261.734L418.263 280.249ZM399.165 278.008H415.52L412.547 263.96H396.495L399.151 278.008H399.165Z"
fill="white"
/>
<path
d="M169.88 263.656L72.0829 263.541L90.9206 166.487L93.1002 166.906L74.7678 261.329L169.88 261.43V263.656Z"
fill="white"
/>
<path
d="M95.0201 247.974L57.8788 247.902L78.0445 154.158L80.2098 154.621L60.6215 245.691L95.0201 245.749V247.974Z"
fill="white"
/>
<path
d="M196.181 279.96L87.5139 279.844L93.2302 246.645L95.4243 247.021L90.1411 277.633L196.181 277.748V279.96Z"
fill="white"
/>
<path
d="M71.1735 279.829L50.2427 279.8L54.2412 261.3H74.7678L71.1735 279.815V279.829ZM52.9854 277.589H69.3402L72.0684 263.541H56.0167L52.9854 277.589Z"
fill="white"
/>
<path
d="M363.944 97.5884L352.064 35.3093L282.877 35.237V33.0257L353.883 33.098L366.124 97.1692L363.944 97.5884Z"
fill="white"
/>
<path
d="M380.227 108.053L366.643 43.8801L340.632 43.8367L340.646 41.6109L368.433 41.6687L382.406 107.59L380.227 108.053Z"
fill="white"
/>
<path
d="M340.083 42.9261L337.369 26.9553L262.726 26.8686V24.6572L339.246 24.7439L342.263 42.5504L340.083 42.9261Z"
fill="white"
/>
<path
d="M367.654 35.3382H352.064L350.043 24.7584H365.402L367.654 35.3382ZM353.897 33.1124H364.926L363.626 26.9987H352.742L353.912 33.1124H353.897Z"
fill="white"
/>
<path
d="M107.795 97.3137L105.615 96.8946L117.943 32.8522H118.852L188.732 32.9245V35.1503L119.762 35.0636L107.795 97.3137Z"
fill="white"
/>
<path
d="M91.498 107.735L89.3327 107.272L103.378 41.3796L131.18 41.3941V43.6199L105.182 43.6054L91.498 107.735Z"
fill="white"
/>
<path
d="M131.743 42.7094L129.563 42.3336L132.594 24.5272H133.533L209.114 24.6139V26.8252L134.471 26.7385L131.743 42.7094Z"
fill="white"
/>
<path
d="M119.762 35.0636H104.172L106.438 24.4838H121.797L119.762 35.0636ZM106.915 32.8378H117.943L119.127 26.7241H108.243L106.929 32.8378H106.915Z"
fill="white"
/>
<path
d="M299.997 129.646C296.1 113.501 285.649 99.6696 272.109 91.5036C262.278 85.5777 250.831 82.4847 237.912 82.0222L237.32 66.6151C237.32 66.6151 235.285 72.5409 230.897 78.2355L230.94 82.0222C220.46 82.3835 210.182 84.4359 201.709 88.7719C186.307 96.6634 174.644 111.68 171.208 129.646C165.737 158.234 182.063 186.346 214.037 196.015C218.786 197.46 225.859 198.212 232.181 198.53L232.6 238.117C232.6 238.117 238.056 217.175 242.791 208.011L242.43 198.602C248.089 198.226 253.675 196.853 258.8 195.437C291.293 186.404 307.012 158.798 299.997 129.646ZM193.885 169.999C185.354 158.321 182.655 143.42 184.82 128.677C188.472 103.717 207.18 86.1414 230.969 84.7394L232.095 191.115C216.693 189.815 202.532 181.851 193.885 169.999ZM280.091 167.802C272.34 180.81 258.179 189.395 242.127 191.014L238.028 84.7972C260.921 86.6039 280.611 104.049 285.345 128.677C287.973 142.292 286.789 156.558 280.091 167.802Z"
fill="white"
/>
</svg>
<span className="nx-ml-2">Eternum Guide</span>
</span>
),
head: () => {
const { asPath } = useRouter();
const { frontMatter } = useConfig();
return (
<>
<meta
property="og:url"
content={`https://guide.bibliothecadao.com${asPath}`}
/>
<meta
property="og:title"
content={frontMatter.title || "Bibliotheca DAO"}
/>
<meta
property="og:description"
content={frontMatter.description || "Eternum Guide"}
/>
</>
);
},
project: {
link: "https://github.com/BibliothecaDAO/master-scroll",
},
chat: {
link: "https://discord.gg/uQnjZhZPfu",
},
docsRepositoryBase: "https://github.com/BibliothecaDAO/eternum-guide",
faviconGlyph: "📖",
footer: {
text: (
<span>
MIT {new Date().getFullYear()} ©{" "}
<a href="https://bibliothecadao.xyz/" target="_blank">
BibliothecaDAO
</a>
.
</span>
),
},
primaryHue: 150,
};
export default config;