forked from Unity-Technologies/com.unity.multiplayer.docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docusaurus.config.js
567 lines (559 loc) · 27.7 KB
/
docusaurus.config.js
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
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
// Docusaurus v2, see package.json for versions
module.exports = {
title: 'Unity Multiplayer Networking',
tagline: 'Build multiplayer games in Unity',
url: 'https://docs-multiplayer.unity3d.com/',
baseUrl: '/',
onBrokenLinks: 'ignore',
onBrokenMarkdownLinks: 'ignore',
favicon: 'img/favicon.ico',
organizationName: 'unity', // Usually your GitHub org/user name.
projectName: 'docusaurus', // Usually your repo name.
scripts: [{
//OneTrust Cookie required by Unity web team
src: 'https://cdn.cookielaw.org/scripttemplates/otSDKStub.js',
async: true,
'data-domain-script': '6e91be4c-3145-4ea2-aa64-89d716064836'
}],
themeConfig: {
//button on sidebar
hideableSidebar: true,
announcementBar: {
id: 'prerelease', // Any value that will identify this message.
content:
'⭐️ If you like our documentation, give it a star on <a target="_blank" rel="noopener noreferrer" href="https://github.com/Unity-Technologies/com.unity.multiplayer.docs">GitHub</a> and <a target="_blank" rel="noopener noreferrer" href="https://github.com/Unity-Technologies/com.unity.multiplayer.docs/wiki">contribute</a>! ⭐️',
backgroundColor: '#3578e5', // Defaults to `#fff`.
textColor: '#ffffff', // Defaults to `#000`.
isCloseable: true, // Defaults to `true`.
},
algolia: {
apiKey: 'dd157a25931bf7948bfc08e79fbe2c8c',
appId: '42DEOQD6E7',
indexName: 'MultiplayerDocs',
// Optional: for versioned docs
//contextualSearch: false,
// Optional: Algolia search parameters
//searchParameters: {},
//... other Algolia params
},
colorMode: {
defaultMode: 'dark',
disableSwitch: false,
respectPrefersColorScheme: true,
/*switchConfig: {
// CSS to apply to dark icon,
// React inline style object
// see https://reactjs.org/docs/dom-elements.html#style
darkIcon: '\u{1F319}',
darkIconStyle: {
marginLeft: '1px',
},
lightIcon: '\u{1F324}',
lightIconStyle: {
marginLeft: '1px',
},
}*/
},
navbar: {
title: 'Unity Multiplayer Networking',
logo: {
alt: 'Unity',
src: 'img/logo.png',
},
items: [
{
label: 'MLAPI',
className: 'nav-break',
to: '/getting-started/about-mlapi',
position: 'left',
items: [
{
to: '/introduction',
label: 'Release Notes',
docsPluginId: 'releases'
},
{
to: 'getting-started/about-mlapi',
label: 'Documentation',
},
{
to: 'mlapi-api/introduction',
label: 'API Reference',
},
]
},
{
//MLAPI VERSIONS
type: 'docsVersionDropdown',
position: 'left',
// Add additional dropdown items at the beginning/end of the dropdown.
//dropdownItemsBefore: [],
// dropdownItemsAfter: [{to: '/versions', label: 'All versions'}],
// Do not add the link active class when browsing docs.
dropdownActiveClassDisabled: true,
docsPluginId: 'default',
},
{
to: 'introduction',
label: 'Transport',
position: 'left',
docsPluginId: 'transport',
className: 'nav-break',
items: [
{
to: '/transport/transport-changelog',
label: 'Release Notes',
docsPluginId: 'releases'
},
{
to: 'introduction',
label: 'Documentation',
docsPluginId: 'transport',
},
{
to: 'api/introduction',
label: 'API Reference',
docsPluginId: 'transport',
},
]
},
/*{
//TRANSPORT VERSIONS
type: 'docsVersionDropdown',
position: 'left',
dropdownActiveClassDisabled: true,
docsPluginId: 'transport'
},*/
{
to: '/learn/introduction',
label: 'Learn',
className: 'nav-break',
position: 'left',
},
//{
// to: '/introduction',
// label: 'Release Notes',
// docsPluginId: 'releases',
// position: 'left'
// },
{
className: 'navbar-github-link',
position: 'right',
to: 'contribute',
docsPluginId: 'reference',
items: [
{
to: '/introduction',
label: 'Release Notes',
docsPluginId: 'releases'
},
{
label: 'Docs Repo',
href: 'https://github.com/Unity-Technologies/com.unity.multiplayer.docs',
},
{
label: 'MLAPI Repo',
href: 'https://github.com/Unity-Technologies/com.unity.multiplayer.mlapi',
},
{
label: 'MLAPI Community Contributions',
href: 'https://github.com/Unity-Technologies/mlapi-community-contributions',
},
{
label: 'Boss Room Repo',
href: 'https://github.com/Unity-Technologies/com.unity.multiplayer.samples.coop',
},
{
label: 'Bitesize Samples Repo',
href: 'https://github.com/Unity-Technologies/com.unity.multiplayer.samples.bitesize',
},
{
label: 'Contribution Guide',
href: 'https://github.com/Unity-Technologies/com.unity.multiplayer.docs/wiki',
},
{
to: 'template',
label: 'Markdown Template',
docsPluginId: 'reference',
},
]
},
{
position: 'right',
className: 'navbar-grid-menu',
to: 'contribute',
docsPluginId: 'reference',
items: [
{href: '/blog', label: 'Blog', position: 'right', },
{
label: 'Product Roadmap',
href: 'https://resources.unity.com/unity-engine-roadmap/multiplayer',
},
{
label: 'Discord',
href: 'https://discord.gg/buMxnnPvTb',
},
{
label: 'Unity Multiplayer Forum',
href: 'https://forum.unity.com/forums/multiplayer.26/',
},
{
label: 'MLAPI Forum',
href: 'https://forum.unity.com/forums/mlapi.661/',
},
{
label: 'Unity Transport Forum',
href: 'https://forum.unity.com/forums/unity-transport.664/',
},
]
},
],
},
prism: {
theme: require('prism-react-renderer/themes/vsLight'),
darkTheme: require('prism-react-renderer/themes/vsDark'),
additionalLanguages: ['csharp', 'powershell', 'java', 'markdown'],
},
footer: {
style: 'dark',
links: [
{
title: 'Unity',
items: [
{
label: 'Our Company',
href: 'https://unity.com/',
},
{
label: 'Unity Learn',
href: 'https://learn.unity.com/',
},
{
label: 'Unity Manual',
href: 'https://docs.unity3d.com/Manual/index.html',
},
{
label: 'Unity Scripting Reference',
href: 'https://docs.unity3d.com/ScriptReference/index.html',
},
],
},
{
title: 'Multiplayer Networking',
items: [
{
label: 'Licenses',
type: 'doc',
to: '/reference/license',
docsPluginId: 'reference',
},
{
label: 'Product Roadmap',
href: 'https://resources.unity.com/unity-engine-roadmap/multiplayer',
},
{
label: 'GitHub - Code',
href: 'https://github.com/Unity-Technologies/com.unity.multiplayer.mlapi',
},
{
label: 'GitHub - Docs',
href: 'https://github.com/Unity-Technologies/com.unity.multiplayer.docs',
},
{
label: 'MLAPI Releases',
href: 'https://github.com/Unity-Technologies/com.unity.multiplayer.mlapi/releases/',
},
{
label: 'Boss Room Releases',
href: 'https://github.com/Unity-Technologies/com.unity.multiplayer.samples.coop/releases/latest',
},
{
label: 'Bitesize Samples',
href: 'https://github.com/Unity-Technologies/com.unity.multiplayer.samples.bitesize',
},
{
label: 'Multiplayer RFCs',
href: 'https://github.com/Unity-Technologies/com.unity.multiplayer.rfcs',
},
],
},
{
title: 'Contact',
items: [
{
label: 'Unity Blog',
href: 'https://blogs.unity3d.com/',
},
{
label: 'Unity Multiplayer Forum',
href: 'https://forum.unity.com/forums/multiplayer.26/',
},
{
label: 'Unity Forums',
href: 'https://forum.unity.com/',
},
{
label: 'Discord',
href: 'https://discord.gg/buMxnnPvTb',
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} Unity Technologies. Built with Docusaurus.`,
},
},
presets: [
[
'@docusaurus/preset-classic',
{
docs: {
path: 'docs',
sidebarPath: require.resolve('./sidebars.js'),
showLastUpdateAuthor: true,
showLastUpdateTime: true,
// Edit URL for version
editUrl: function ({
versionDocsDirPath,
docPath,
}) {
return `https://github.com/Unity-Technologies/com.unity.multiplayer.docs/edit/master/${versionDocsDirPath}/${docPath}`;
},
includeCurrentVersion: true,
lastVersion: '0.1.0',
versions: {
current: {
label: 'develop',
path: 'develop',
},
'0.1.0': {
label: 'v. 0.1.0',
path: '',
},
},
admonitions: {
customTypes: {
contribution: {
keyword: `contribution`,
infima: true,
svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="black" width="36px" height="36px"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zm3.23 15.39L12 15.45l-3.22 1.94c-.38.23-.85-.11-.75-.54l.85-3.66-2.83-2.45c-.33-.29-.15-.84.29-.88l3.74-.32 1.46-3.45c.17-.41.75-.41.92 0l1.46 3.44 3.74.32c.44.04.62.59.28.88l-2.83 2.45.85 3.67c.1.43-.36.77-.74.54z" fill="#855EF0"/></svg>'
},
funfact: {
keyword: `funfact`,
infima: true,
svg: '<svg xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 24 24" viewBox="0 0 24 24" fill="black" width="24px" height="24px"><g><rect fill="none" height="24" width="24" x="0" y="0"/></g><g><path d="M20,2H4C2.9,2,2,2.9,2,4v18l4-4h14c1.1,0,2-0.9,2-2V4C22,2.9,21.1,2,20,2z M13.57,11.57L12,15l-1.57-3.43L7,10l3.43-1.57 L12,5l1.57,3.43L17,10L13.57,11.57z"/></g></svg>'
},
bestpractice: {
keyword: `bestpractice`,
infima: true,
svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="black" width="18px" height="18px"><path d="M0 0h24v24H0z" fill="none"/><path d="M23 12l-2.44-2.78.34-3.68-3.61-.82-1.89-3.18L12 3 8.6 1.54 6.71 4.72l-3.61.81.34 3.68L1 12l2.44 2.78-.34 3.69 3.61.82 1.89 3.18L12 21l3.4 1.46 1.89-3.18 3.61-.82-.34-3.68L23 12zm-10 5h-2v-2h2v2zm0-4h-2V7h2v6z"/></svg>'
},
faq: {
keyword: `faq`,
infima: true,
svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="black" width="24px" height="24px"><path d="M0 0h24v24H0z" fill="none"/><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 17h-2v-2h2v2zm2.07-7.75l-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25z"/></svg>'
},
unity: {
keyword: `unity`,
infima: true,
svg: '<svg width="25px" height="24px" viewBox="0 0 507 506" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g id="unity-logo-black" fill="#757575" fill-rule="nonzero"><path d="M451.009018,0.49163636 L244.575273,54.2842182 L214.027491,106.713018 L152.028945,106.261527 L0.92378182,253.214836 L152.028945,400.135564 L213.994909,399.684073 L244.612509,452.080291 L451.009018,505.872873 L506.305018,305.192145 L474.886836,253.214836 L506.305018,201.237527 L451.009018,0.49163636 Z M218.998545,115.151709 L376.908655,75.6811636 L286.261382,228.387491 L104.943564,228.387491 L218.998545,115.151709 Z M218.998545,391.240727 L104.943564,278.0096 L286.261382,278.0096 L376.908655,430.711273 L218.998545,391.240727 Z M421.098909,405.888582 L330.419055,253.214836 L421.098909,100.475927 L464.884218,253.214836 L421.098909,405.888582 L421.098909,405.888582 Z" id="Fill-1"></path></g></g></svg>'
}
}
},
},
blog: {
//postsPerPage: 3,
feedOptions: {
type: 'all',
copyright: `Copyright © ${new Date().getFullYear()} Facebook, Inc.`,
},
blogSidebarCount: 'ALL',
blogSidebarTitle: 'All Blog Posts',
},
theme: {
customCss: require.resolve('./src/css/unity-custom.scss'),
},
sitemap: {
changefreq: 'weekly',
priority: 0.5,
trailingSlash: true, //do not change, search requires
},
},
],
],
plugins: [
[
'@docusaurus/plugin-content-docs',
{
id: 'releases',
path: 'releases',
editUrl: ({docPath}) => {
return `https://github.com/Unity-Technologies/com.unity.multiplayer.docs/edit/master/${docPath}`;
},
editCurrentVersion: true,
routeBasePath: 'releases',
sidebarPath: require.resolve('./sidebarsReleases.js'),
showLastUpdateAuthor: true,
showLastUpdateTime: true,
admonitions: {
customTypes: {
contribution: {
keyword: `contribution`,
infima: true,
svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="black" width="36px" height="36px"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zm3.23 15.39L12 15.45l-3.22 1.94c-.38.23-.85-.11-.75-.54l.85-3.66-2.83-2.45c-.33-.29-.15-.84.29-.88l3.74-.32 1.46-3.45c.17-.41.75-.41.92 0l1.46 3.44 3.74.32c.44.04.62.59.28.88l-2.83 2.45.85 3.67c.1.43-.36.77-.74.54z" fill="#855EF0"/></svg>'
},
funfact: {
keyword: `funfact`,
infima: true,
svg: '<svg xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 24 24" viewBox="0 0 24 24" fill="black" width="24px" height="24px"><g><rect fill="none" height="24" width="24" x="0" y="0"/></g><g><path d="M20,2H4C2.9,2,2,2.9,2,4v18l4-4h14c1.1,0,2-0.9,2-2V4C22,2.9,21.1,2,20,2z M13.57,11.57L12,15l-1.57-3.43L7,10l3.43-1.57 L12,5l1.57,3.43L17,10L13.57,11.57z"/></g></svg>'
},
bestpractice: {
keyword: `bestpractice`,
infima: true,
svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="black" width="18px" height="18px"><path d="M0 0h24v24H0z" fill="none"/><path d="M23 12l-2.44-2.78.34-3.68-3.61-.82-1.89-3.18L12 3 8.6 1.54 6.71 4.72l-3.61.81.34 3.68L1 12l2.44 2.78-.34 3.69 3.61.82 1.89 3.18L12 21l3.4 1.46 1.89-3.18 3.61-.82-.34-3.68L23 12zm-10 5h-2v-2h2v2zm0-4h-2V7h2v6z"/></svg>'
},
faq: {
keyword: `faq`,
infima: true,
svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="black" width="24px" height="24px"><path d="M0 0h24v24H0z" fill="none"/><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 17h-2v-2h2v2zm2.07-7.75l-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25z"/></svg>'
},
unity: {
keyword: `unity`,
infima: true,
svg: '<svg width="25px" height="24px" viewBox="0 0 507 506" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g id="unity-logo-black" fill="#757575" fill-rule="nonzero"><path d="M451.009018,0.49163636 L244.575273,54.2842182 L214.027491,106.713018 L152.028945,106.261527 L0.92378182,253.214836 L152.028945,400.135564 L213.994909,399.684073 L244.612509,452.080291 L451.009018,505.872873 L506.305018,305.192145 L474.886836,253.214836 L506.305018,201.237527 L451.009018,0.49163636 Z M218.998545,115.151709 L376.908655,75.6811636 L286.261382,228.387491 L104.943564,228.387491 L218.998545,115.151709 Z M218.998545,391.240727 L104.943564,278.0096 L286.261382,278.0096 L376.908655,430.711273 L218.998545,391.240727 Z M421.098909,405.888582 L330.419055,253.214836 L421.098909,100.475927 L464.884218,253.214836 L421.098909,405.888582 L421.098909,405.888582 Z" id="Fill-1"></path></g></g></svg>'
}
}
},
},
],
[
'@docusaurus/plugin-content-docs',
{
id: 'reference',
path: 'reference',
editUrl: ({docPath}) => {
return `https://github.com/Unity-Technologies/com.unity.multiplayer.docs/edit/master/${docPath}`;
},
editCurrentVersion: true,
routeBasePath: 'reference',
sidebarPath: require.resolve('./sidebarsReference.js'),
showLastUpdateAuthor: true,
showLastUpdateTime: true,
admonitions: {
customTypes: {
contribution: {
keyword: `contribution`,
infima: true,
svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="black" width="36px" height="36px"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zm3.23 15.39L12 15.45l-3.22 1.94c-.38.23-.85-.11-.75-.54l.85-3.66-2.83-2.45c-.33-.29-.15-.84.29-.88l3.74-.32 1.46-3.45c.17-.41.75-.41.92 0l1.46 3.44 3.74.32c.44.04.62.59.28.88l-2.83 2.45.85 3.67c.1.43-.36.77-.74.54z" fill="#855EF0"/></svg>'
},
funfact: {
keyword: `funfact`,
infima: true,
svg: '<svg xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 24 24" viewBox="0 0 24 24" fill="black" width="24px" height="24px"><g><rect fill="none" height="24" width="24" x="0" y="0"/></g><g><path d="M20,2H4C2.9,2,2,2.9,2,4v18l4-4h14c1.1,0,2-0.9,2-2V4C22,2.9,21.1,2,20,2z M13.57,11.57L12,15l-1.57-3.43L7,10l3.43-1.57 L12,5l1.57,3.43L17,10L13.57,11.57z"/></g></svg>'
},
bestpractice: {
keyword: `bestpractice`,
infima: true,
svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="black" width="18px" height="18px"><path d="M0 0h24v24H0z" fill="none"/><path d="M23 12l-2.44-2.78.34-3.68-3.61-.82-1.89-3.18L12 3 8.6 1.54 6.71 4.72l-3.61.81.34 3.68L1 12l2.44 2.78-.34 3.69 3.61.82 1.89 3.18L12 21l3.4 1.46 1.89-3.18 3.61-.82-.34-3.68L23 12zm-10 5h-2v-2h2v2zm0-4h-2V7h2v6z"/></svg>'
},
faq: {
keyword: `faq`,
infima: true,
svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="black" width="24px" height="24px"><path d="M0 0h24v24H0z" fill="none"/><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 17h-2v-2h2v2zm2.07-7.75l-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25z"/></svg>'
},
unity: {
keyword: `unity`,
infima: true,
svg: '<svg width="25px" height="24px" viewBox="0 0 507 506" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g id="unity-logo-black" fill="#757575" fill-rule="nonzero"><path d="M451.009018,0.49163636 L244.575273,54.2842182 L214.027491,106.713018 L152.028945,106.261527 L0.92378182,253.214836 L152.028945,400.135564 L213.994909,399.684073 L244.612509,452.080291 L451.009018,505.872873 L506.305018,305.192145 L474.886836,253.214836 L506.305018,201.237527 L451.009018,0.49163636 Z M218.998545,115.151709 L376.908655,75.6811636 L286.261382,228.387491 L104.943564,228.387491 L218.998545,115.151709 Z M218.998545,391.240727 L104.943564,278.0096 L286.261382,278.0096 L376.908655,430.711273 L218.998545,391.240727 Z M421.098909,405.888582 L330.419055,253.214836 L421.098909,100.475927 L464.884218,253.214836 L421.098909,405.888582 L421.098909,405.888582 Z" id="Fill-1"></path></g></g></svg>'
}
}
},
},
],
[
'@docusaurus/plugin-content-docs',
{
id: 'transport',
path: 'transport',
editUrl: function ({
versionDocsDirPath,
docPath,
}) {
return `https://github.com/Unity-Technologies/com.unity.multiplayer.docs/edit/master/${versionDocsDirPath}/${docPath}`;
},includeCurrentVersion: true,
lastVersion: '0.8.0',
versions: {
//current: {
// label: 'Next',
// path: 'next',
//},
/*'0.9.0': {
label: 'v. 0.9.0preview',
path: '0.9.0',
},*/
'0.8.0': {
label: 'v. 0.8.0preview',
path: '0.8.0',
},
},
//onlyIncludeVersions: ["0.8.0", "0.9.0"],
editCurrentVersion: true,
routeBasePath: 'transport',
sidebarPath: require.resolve('./sidebarsTransport.js'),
showLastUpdateAuthor: true,
showLastUpdateTime: true,
admonitions: {
customTypes: {
contribution: {
keyword: `contribution`,
infima: true,
svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="black" width="36px" height="36px"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zm3.23 15.39L12 15.45l-3.22 1.94c-.38.23-.85-.11-.75-.54l.85-3.66-2.83-2.45c-.33-.29-.15-.84.29-.88l3.74-.32 1.46-3.45c.17-.41.75-.41.92 0l1.46 3.44 3.74.32c.44.04.62.59.28.88l-2.83 2.45.85 3.67c.1.43-.36.77-.74.54z" fill="#855EF0"/></svg>'
},
funfact: {
keyword: `funfact`,
infima: true,
svg: '<svg xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 24 24" viewBox="0 0 24 24" fill="black" width="24px" height="24px"><g><rect fill="none" height="24" width="24" x="0" y="0"/></g><g><path d="M20,2H4C2.9,2,2,2.9,2,4v18l4-4h14c1.1,0,2-0.9,2-2V4C22,2.9,21.1,2,20,2z M13.57,11.57L12,15l-1.57-3.43L7,10l3.43-1.57 L12,5l1.57,3.43L17,10L13.57,11.57z"/></g></svg>'
},
bestpractice: {
keyword: `bestpractice`,
infima: true,
svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="black" width="18px" height="18px"><path d="M0 0h24v24H0z" fill="none"/><path d="M23 12l-2.44-2.78.34-3.68-3.61-.82-1.89-3.18L12 3 8.6 1.54 6.71 4.72l-3.61.81.34 3.68L1 12l2.44 2.78-.34 3.69 3.61.82 1.89 3.18L12 21l3.4 1.46 1.89-3.18 3.61-.82-.34-3.68L23 12zm-10 5h-2v-2h2v2zm0-4h-2V7h2v6z"/></svg>'
},
faq: {
keyword: `faq`,
infima: true,
svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="black" width="24px" height="24px"><path d="M0 0h24v24H0z" fill="none"/><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 17h-2v-2h2v2zm2.07-7.75l-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25z"/></svg>'
},
unity: {
keyword: `unity`,
infima: true,
svg: '<svg width="25px" height="24px" viewBox="0 0 507 506" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g id="unity-logo-black" fill="#757575" fill-rule="nonzero"><path d="M451.009018,0.49163636 L244.575273,54.2842182 L214.027491,106.713018 L152.028945,106.261527 L0.92378182,253.214836 L152.028945,400.135564 L213.994909,399.684073 L244.612509,452.080291 L451.009018,505.872873 L506.305018,305.192145 L474.886836,253.214836 L506.305018,201.237527 L451.009018,0.49163636 Z M218.998545,115.151709 L376.908655,75.6811636 L286.261382,228.387491 L104.943564,228.387491 L218.998545,115.151709 Z M218.998545,391.240727 L104.943564,278.0096 L286.261382,278.0096 L376.908655,430.711273 L218.998545,391.240727 Z M421.098909,405.888582 L330.419055,253.214836 L421.098909,100.475927 L464.884218,253.214836 L421.098909,405.888582 L421.098909,405.888582 Z" id="Fill-1"></path></g></g></svg>'
}
}
},
},
],
[require.resolve('docusaurus-gtm-plugin'),
{
id: 'GTM-5V25JL6', // GTM Container ID
}],
[
'@docusaurus/plugin-client-redirects',
{
redirects: [
{
to: '/docs/advanced-topics/messaging-system',
from: '/docs/advanced-topics/messaging-system/about-rpc',
},
{
to: '/docs/advanced-topics/messaging-system',
from: '/docs/advanced-topics/message-system/serialization',
},
]
},
],
'plugin-image-zoom',
'docusaurus-plugin-sass',
'@saucelabs/theme-github-codeblock',
'react-iframe'
]
};