forked from xmtp/docs-xmtp-org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vocs.config.tsx
363 lines (361 loc) · 9.2 KB
/
vocs.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
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
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
import { defineConfig } from "vocs";
// console.log('Loading Vocs config...')
export default defineConfig({
head: () => {
// console.log(`Generating head content... ${new Date().toISOString()}`)
return (
<>
<script
src="https://plausible.io/js/script.js"
data-domain="docs.xmtp.org"
defer
/>
</>
);
},
title: "XMTP Documentation",
description:
"Documentation for XMTP, the open and secure messaging protocol for web3",
editLink: {
pattern: "https://github.com/xmtp/docs-xmtp-org/edit/main/docs/pages/:path",
text: "Suggest changes to this page",
},
logoUrl: {
light: "/logomark-dark-purple.png",
dark: "/logomark-light-purple.png",
},
iconUrl: "/x-mark-blue.png",
topNav: [
{
text: "Support 💬",
link: "https://converse.xyz/group-invite/a0XKzl9oVpWNXcuYDZLMf",
},
{ text: "XMTP.org", link: "https://xmtp.org/" },
],
ogImageUrl: {
"/": "/xmtp-og-card.jpeg",
"/docs":
"https://vocs.dev/api/og?logo=%logo&title=%title&description=%description",
},
socials: [
{
icon: "github",
link: "https://github.com/xmtp",
},
],
sidebar: [
{
text: "⚡️ Preview XMTP V3 docs ⚡️",
link: "/preview",
items: [], // Add this line
},
{
text: "Overview",
collapsed: true,
items: [
{
text: "Intro to XMTP",
link: "/get-started/intro",
},
{
text: "FAQ",
link: "/get-started/faq",
},
],
},
{
text: "Build chat bots with MessageKit ↗",
link: "https://messagekit.ephemerahq.com/",
items: [], // Add this line
},
{
text: "Embed a chat widget",
link: "/chat-widget/chat-widget",
items: [], // Add this line
},
{
text: "Broadcast notifications",
collapsed: true,
items: [
{
text: "Use case",
link: "/consent/build-engagement",
},
{
text: "Enable subscriptions",
link: "/consent/subscribe",
},
{
text: "Broadcast notifications",
link: "/consent/broadcast",
},
{
text: "Quickstart repos",
link: "/consent/consent-quickstarts",
},
],
},
{
text: "Build chat inboxes",
collapsed: true,
items: [
{
text: "Get started",
collapsed: false,
items: [
{
text: "Developer quickstart",
link: "/get-started/developer-quickstart",
},
{
text: "SDKs and example apps",
link: "/get-started/examples",
},
{
text: "SDK references",
link: "/get-started/references",
},
],
},
{
text: "Create a client",
link: "/client/create-client",
},
{
text: "Build 1:1 chat",
collapsed: true,
items: [
{
text: "Create a 1:1 conversation",
link: "/dms/conversations",
},
{
text: "Send 1:1 messages",
link: "/dms/messages",
},
{
text: "Stream 1:1 conversations & messages",
link: "/dms/streams",
},
],
},
{
text: "Build group chat",
collapsed: true,
items: [
{
text: "Build group chat",
link: "/groups/build-group-chat",
},
{
text: "Handle group consent",
link: "/groups/group-consent",
},
{
text: "Handle group permissions",
link: "/groups/group-permissions",
},
{
text: "Handle group metadata",
link: "/groups/group-metadata",
},
],
},
{
text: "Build push notifications",
collapsed: true,
items: [
{
text: "Send push notifications",
link: "/notifications/build-notifications",
},
{
text: "Set up a push notification server",
link: "/notifications/notif-server",
},
{
text: "Best practices",
link: "/notifications/notif-best-practices",
},
{
text: "Try Android example notifications",
link: "/notifications/notifs-android",
},
{
text: "Try iOS example notifications",
link: "/notifications/notifs-ios",
},
],
},
{
text: "Support spam-free inboxes",
collapsed: true,
items: [
{
text: "User consent and spam-free inboxes",
link: "/consent/user-consent",
},
{
text: "Build with consent methods",
link: "/consent/consent-methods",
},
{
text: "Handle unknown contacts",
link: "/consent/filter-spam",
},
],
},
{
text: "Support content types",
collapsed: true,
items: [
{
text: "Understand content types",
link: "/content-types/content-types",
},
{
text: "Remote attachment",
link: "/content-types/remote-attachment",
},
{
text: "Replies",
link: "/content-types/reply",
},
{
text: "Reactions",
link: "/content-types/reaction",
},
{
text: "Read receipts",
link: "/content-types/read-receipt",
},
{
text: "Onchain transaction references",
link: "/content-types/transaction-ref",
},
{
text: "Custom content type",
link: "/content-types/custom",
},
],
},
{
text: "Display Open Frames",
collapsed: true,
items: [
{
text: "Get started with Open Frames",
link: "/open-frames/open-frames",
},
{
text: "Display transactional Open Frames",
link: "/open-frames/transactional-open-frames",
},
{
text: "Display subscription Open Frames",
link: "/open-frames/subscription-open-frames",
},
],
},
{
text: "Performance & UX",
collapsed: true,
items: [
{
text: "Use local-first architecture",
link: "/perf-ux/local-first",
},
{
text: "Use optimistic sending",
link: "/perf-ux/optimistic-sending",
},
{
text: "Resolve identities",
link: "/perf-ux/identity-resolution",
},
{
text: "Performance test",
link: "/perf-ux/debug-and-test",
},
{
text: "Launch checklist",
link: "/perf-ux/get-featured",
},
{
text: "MetaMask Snap",
link: "/perf-ux/xmtp-metamask-snap",
},
],
},
{
text: "Troubleshoot",
link: "/dms/troubleshoot",
},
],
},
{
text: "Learn protocol concepts",
collapsed: true,
items: [
{
text: "Account signatures",
link: "/protocol/signatures",
},
{
text: "Security and encryption",
link: "/protocol/security-encryption",
},
{
text: "Protocols",
link: "/protocol/protocols",
},
{
text: "Multi-wallet identity",
link: "/protocol/v3/identity",
},
{
text: "Message history",
link: "/protocol/v3/message-history",
},
{
text: "Smart wallet support",
link: "/protocol/v3/smart-wallet",
},
{
text: "Portable inbox",
link: "/protocol/portable-inbox",
},
{
text: "XIPs",
link: "/protocol/xips",
},
{
text: "XMTP versions",
link: "/protocol/xmtp-versions",
},
{
text: "XMTP V2",
collapsed: true,
items: [
{
text: "Architecture",
link: "/protocol/v2/architectural-overview",
},
{
text: "Key generation",
link: "/protocol/v2/key-generation-and-usage",
},
{
text: "Encryption",
link: "/protocol/v2/invitation-and-message-encryption",
},
{
text: "Algorithms in use",
link: "/protocol/v2/algorithms-in-use",
},
],
},
],
},
],
});