-
Notifications
You must be signed in to change notification settings - Fork 71
/
mkdocs.yml
377 lines (344 loc) · 11 KB
/
mkdocs.yml
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
# Project information
site_name: Colyseus Multiplayer Framework
site_description: >-
Open-source Multiplayer Framework for Node.js.
JavaScript on the server - SDKs available for major platforms.
site_author: 'Endel Dreyer'
site_url: 'https://colyseus.io/'
edit_uri: 'https://github.com/colyseus/docs/edit/master/docs/'
# Deployment
remote_name: 'origin'
remote_branch: 'gh-pages'
# Repository
repo_name: 'colyseus/colyseus'
repo_url: https://github.com/colyseus/colyseus
# Copyright
copyright: 'Copyright © 2024 Endel Dreyer'
# Documentation and theme
theme:
name: 'material'
custom_dir: theme_overrides
language: 'en'
logo: 'images/logo-white.png'
favicon: 'images/logo-white.png'
icon:
repo: fontawesome/brands/github
palette:
# Palette toggle for dark mode
- media: "(prefers-color-scheme: dark)"
scheme: slate
toggle:
icon: material/brightness-4
name: Switch to system preference
# Palette toggle for light mode
- media: "(prefers-color-scheme: light)"
scheme: default
toggle:
icon: material/brightness-7
name: Switch to dark mode
font:
# text: 'Inter'
text: 'Inter'
code: 'Roboto Mono'
features:
- navigation.indexes
- navigation.sections
- navigation.top
- navigation.tabs
- navigation.footer
# - navigation.instant # "instant" is causing the page to scroll when clicking on code tabs
- navigation.prune
- navigation.tracking
# - navigation.tabs.sticky
- announce.dismiss
- content.action.edit
- content.action.view
- content.code.annotate
- content.code.copy
# - content.tabs.link
- content.tooltips
# - header.autohide
# - navigation.expand
- search.highlight
- search.share
- search.suggest
- toc.follow
plugins:
- search:
# separator: '[\s\-,:!=\[\]()"`/]+|\.(?!\d)|&[lg]t;|(?!\b)(?=[A-Z][a-z])'
lang:
- en
- de
- pt
- git-revision-date-localized:
enable_creation_date: true
- git-committers:
repository: colyseus/docs
branch: master
# - i18n:
# default_language: 'en'
# languages:
# en: "English"
# zh_CN: "简体中文" #Simplified Chinese
# # pt: "Português" # Portuguese
# # de: "Deutsch" # German
# # hi: "हिंदी" # Hindi
# # fr: "Français" # French
# TODO: enable this only on production (takes too much time)
# nav_translations:
# en:
# Getting started: 'Getting started'
# Client-side SDKs: "Client-side SDKs"
# Installation: "Installation"
# Unity: "Unity"
# Deployment: "Deployment"
# Production Deployments: "Production Deployments"
# Managing Deployments: "Managing Deployments"
# Reference: "Reference"
# Tech Demos: "Tech Demos"
# Shooting Gallery: "Shooting Gallery"
# Tanks: "Tanks"
# StarBoss: "StarBoss"
# MMO: "MMO"
# Migrating: "Migrating"
#
# zh_CN:
# Getting started: "开始"
# Client-side SDKs: "客户端 SDK"
# Installation: "安装"
# Unity: "Unity"
# Deployment: "部署"
# Production Deployments: "生产部署"
# Managing Deployments: "管理部署"
# Reference: "参考资料"
# Colyseus for Arena Cloud: "托管于 Arena Cloud 之上的 Colyseus"
# Uploading Server Code: "上传服务器代码"
# Server API: "服务器 API"
# Server: "服务器"
# Room: "房间"
# Timing events: "计时事件"
# Match-maker API: "房间匹配 API"
# Presence: "Presence"
# Transport: "传输"
# Graceful shutdown: "优雅关闭"
# State Synchronization: "状态数据同步"
# Overview: "概览"
# Schema: "Schema"
# Best practices: "最佳实践"
# Built-in Rooms: "内置房间"
# Lobby room: "大厅房间"
# Relay room: "中继房间"
# Tools: "工具"
# Unit Testing: "单元测试"
# Monitoring Panel: "监控面板"
# Load Testing: "负载测试"
# Authentication + Social: "身份认证 + 社交"
# Debugging: "调试"
# Scalability: "可扩展性"
# How-to: "操作说明"
# Customize room id: "自定义房间 ID"
# Password-protect a room: "使用密码保护房间"
# Deny a player joining a room: "拒绝玩家加入房间"
# Custom CORS headers: "自定义 CORS 标头"
# Setup server from scratch (TS): "从头开始搭建服务器 (TS)"
# Tech Demos: "技术演示"
# Shooting Gallery: "Shooting Gallery"
# Tanks: "Tanks"
# StarBoss: "StarBoss"
# MMO: "MMO"
# Migrating: "更新记录"
# FAQ: "常见问题"
extra_css:
- 'stylesheets/custom.css'
# - 'stylesheets/ads.css'
# - 'https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.1.0/styles/github.min.css' # syntax highlight
# - 'https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.1.0/styles/github-dark.min.css' # syntax highlight
extra_javascript:
# - 'javascripts/ads.js'
- 'https://docs.colyseus.io/javascripts/previous_versions.js'
# - 'javascripts/previous_versions.js'
# - 'javascripts/config.js' # hotfix for translation links
# Options
extra:
generator: false
# search:
# language: 'en'
annotate:
json: [.s2]
analytics:
provider: google
property: G-WGT1KNDKM7
social:
- icon: 'fontawesome/brands/github'
link: 'https://github.com/colyseus'
- icon: 'fontawesome/brands/linkedin'
link: 'https://www.linkedin.com/company/colyseus/'
- icon: 'fontawesome/brands/twitter'
link: 'https://twitter.com/colyseus'
- icon: 'fontawesome/brands/discord'
link: 'http://chat.colyseus.io'
- icon: 'fontawesome/solid/circle-dollar-to-slot'
link: 'https://github.com/sponsors/endel'
# Extensions
markdown_extensions:
# - tables
- abbr
- admonition
- attr_list
- def_list
- footnotes
- md_in_html
- toc:
# toc_depth: 3
# title: On this page
# slugify: !!python/object/apply:pymdownx.slugs.slugify
# kwds:
# case: lower
permalink: true
- pymdownx.arithmatex:
generic: true
- pymdownx.betterem:
smart_enable: all
- pymdownx.caret
- pymdownx.details
- pymdownx.emoji:
emoji_generator: !!python/name:materialx.emoji.to_svg
emoji_index: !!python/name:materialx.emoji.twemoji
- pymdownx.highlight:
anchor_linenums: true
line_spans: __span
pygments_lang_class: true
- pymdownx.inlinehilite
- pymdownx.keys
- pymdownx.magiclink:
repo_url_shorthand: true
user: squidfunk
repo: mkdocs-material
- pymdownx.mark
- pymdownx.smartsymbols
- pymdownx.superfences:
custom_fences:
- name: mermaid
class: mermaid
format: !!python/name:pymdownx.superfences.fence_code_format
- pymdownx.tabbed:
alternate_style: true
- pymdownx.tasklist:
custom_checkbox: true
- pymdownx.tilde
# >>> OLD CONFIG
# - admonition
# - pymdownx.highlight:
# use_pygments: false
# - codehilite:
# linenums: False
# guess_lang: False
# - toc:
# permalink: True
# - markdown_fenced_code_tabs:
# single_block_as_tab: False
# active_class: 'active'
# template: 'default'
# # Tooltips
# - abbr
# - attr_list
# - pymdownx.snippets
# Nav menu
nav:
- Documentation & SDKs:
- Home:
- 'index.md'
- Client-side SDKs:
- 'client/index.md'
- Installation:
- Unity: 'getting-started/unity-sdk.md'
- JavaScript: 'getting-started/javascript-client.md'
- Defold Engine: 'getting-started/defold-client.md'
- Haxe: 'getting-started/haxe-client.md'
- Cocos Creator: 'getting-started/cocos-creator.md'
- Construct3: 'getting-started/construct3-sdk.md'
- Babylon.js Editor: "getting-started/babylonjs-editor.md"
- Server API:
- 'server/index.md'
- Room: 'server/room.md'
- Timing events: 'server/timing-events.md'
- Match-maker API: 'server/matchmaker.md'
- Custom HTTP Routes: 'server/custom-http-routes.md'
- Presence: 'server/presence.md'
- Logging: 'server/logging.md'
- Transport: 'server/transport.md'
- Dev Mode: 'devmode.md'
- Exception Handling: 'server/exception-handling.md'
- Graceful shutdown: 'server/graceful-shutdown.md'
# - Custom State Serialization': 'server/state-serialization.md'
- Debugging: 'debugging.md'
- State Synchronization:
- 'state/index.md'
- Schema Definition: 'state/schema.md'
- Client-side Sync Callbacks: 'state/schema-callbacks.md'
- Authentication:
- 'authentication/index.md'
- Auth Module: 'authentication/module.md'
- 'Database & Persistance':
- 'database/index.md'
# - Database Module: 'database/module.md'
- Infrastructure:
- Deployment: 'deployment.md'
- Scalability: 'scalability.md'
- Tools:
- Playground: 'tools/playground.md'
- Monitoring Panel: 'tools/monitor.md'
- Unit Testing: 'tools/unit-testing.md'
- Load Testing: 'tools/loadtest.md'
# - Authentication + Social: 'tools/colyseus-social.md'
- Built-in Rooms:
- Lobby room: 'builtin-rooms/lobby.md'
- Relay room: 'builtin-rooms/relay.md'
- More:
- 'Best practices':
- 'best-practices/index.md'
- Migrating to version:
- '0.15': 'migrating/0.15.md'
- '0.14.18': 'migrating/0.14.18.md'
- '0.14': 'migrating/0.14.md'
- '0.13': 'migrating/0.13.md'
- '0.12': 'migrating/0.12.md'
- '0.11': 'migrating/0.11.md'
- '0.10': 'migrating/0.10.md'
- '0.9': 'migrating/0.9.md'
- Collaborative Content:
- 'community/index.md'
- Videos: 'community/videos.md'
- Tutorials: 'community/tutorials.md'
- Games: 'community/games.md'
- Guides:
- 'Customize room id': 'community/custom-room-id.md'
- 'Password-protect a room': 'community/password-protect-room.md'
- 'Deny a player joining a room': 'community/deny-player-join-a-room.md'
- 'Custom CORS headers': 'community/custom-cors-headers.md'
- 'Setup server from scratch (TS)': 'community/setup-server-from-scratch-typescript.md'
- Example Projects:
- Home: 'examples/index.md'
- Unity:
- "Shooting Gallery": "demo/shooting-gallery.md"
- "StarBoss": "demo/starboss.md"
- "Tanks": "demo/turn-based-tanks.md"
- "MMO": "demo/mmo.md"
- Cocos Creator:
- "MMO": "demo/cocos/mmo.md"
- Babylon.js Editor:
- "Hide and Seek": "demo/babylonjs-editor/hide-and-seek.md"
- FAQ: 'faq.md'
- 'Colyseus Cloud':
- Overview:
- 'cloud/index.md'
- 'cloud/compute-plans.md'
- Deployment:
- 'cloud/continuous-deployment.md'
- 'cloud/environment-variables.md'
- Troubleshooting:
- 'cloud/typescript-compilation-errors.md'
- 'cloud/troubleshooting.md'
- Add-ons:
- 'cloud/ddos-protection.md'
# - 'cloud/postgresql.md'