-
Notifications
You must be signed in to change notification settings - Fork 67
/
sidebars.js
464 lines (457 loc) · 11.2 KB
/
sidebars.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
/**
* Creating a sidebar enables you to:
- create an ordered group of docs
- render a sidebar for each doc of that group
- provide next/previous navigation
The sidebars can be generated from the filesystem, or explicitly defined here.
Create as many sidebars as you want.
*/
// @ts-check
/** @type {import('@docusaurus/plugin-content-docs').SidebarsConfig} */
const sidebars = {
// By default, Docusaurus generates a sidebar from the docs folder structure
// tutorialSidebar: [{type: 'autogenerated', dirName: '.'}],
// But you can create a sidebar manually
tutorialSidebar: [
{
type: 'doc',
label: 'About Stately and XState',
id: 'about',
},
{
type: 'category',
label: 'Get started',
link: {
type: 'generated-index',
title: 'Get started',
description: 'Get started quickly with XState and Stately Studio.',
slug: '/category/get-started',
keywords: ['guides'],
},
collapsed: false,
collapsible: true,
items: [
'quick-start',
{
type: 'doc',
label: 'Install XState',
id: 'installation',
},
{
type: 'doc',
label: 'Migrate to XState v5',
id: 'migration',
},
{
type: 'doc',
label: 'Examples',
id: 'examples',
},
'templates',
'cheatsheet',
'typescript',
{
type: 'link',
label: 'API',
// href: 'https://tsdocs.dev/docs/xstate',
href: 'https://www.jsdocs.io/package/xstate',
},
],
},
{
type: 'category',
label: 'Core concepts',
link: {
type: 'generated-index',
title: 'Core concepts',
description: 'Learn the core concepts for XState and Stately Studio.',
slug: '/category/core-concepts',
keywords: ['guides'],
},
collapsed: false,
collapsible: true,
items: [
{
type: 'doc',
label: 'State machines',
id: 'state-machines-and-statecharts',
},
{
type: 'doc',
label: 'Actor model',
id: 'actor-model',
},
{
type: 'doc',
label: 'What is XState?',
id: 'xstate',
},
],
},
{
type: 'category',
label: 'Stately Studio',
link: {
type: 'generated-index',
title: 'Stately Studio',
description: 'Learn how to use Stately Studio’s editor.',
slug: '/category/studio',
keywords: ['guides'],
},
collapsed: true,
collapsible: true,
items: [
{
type: 'doc',
label: 'Introducing Stately Studio',
id: 'studio',
},
{
type: 'doc',
label: 'Stately Studio Pro',
id: 'studio-pro-plan',
},
{
type: 'doc',
label: 'Stately Studio Team',
id: 'studio-team-plan',
},
{
type: 'doc',
label: 'Stately Studio Enterprise',
id: 'studio-enterprise-plan',
},
{
type: 'doc',
label: 'Stately Studio Community',
id: 'studio-community-plan',
},
{
type: 'doc',
label: 'States and transitions',
id: 'editor-states-and-transitions',
},
{
type: 'doc',
label: 'Actions and actors',
id: 'editor-actions-and-actors',
},
{
type: 'category',
label: 'Design mode',
link: {
type: 'doc',
id: 'design-mode',
},
items: [
{
type: 'doc',
label: 'Generate with AI',
id: 'generate-flow',
},
{
type: 'doc',
label: 'Generate React app',
id: 'generate-react',
},
{
type: 'doc',
label: 'Colors',
id: 'colors',
},
{
type: 'doc',
label: 'Notes',
id: 'annotations',
},
'descriptions',
{
type: 'doc',
label: 'Embed Figma',
id: 'figma',
},
{
type: 'doc',
label: 'Assets',
id: 'assets',
},
{
type: 'doc',
label: 'Tags',
id: 'editor-tags',
},
'machine-restore',
'autolayout',
],
},
{
type: 'category',
label: 'Simulate mode',
link: {
type: 'doc',
id: 'simulate-mode',
},
items: [
{
type: 'doc',
label: 'Live simulation',
id: 'live-simulation',
},
],
},
{
type: 'category',
label: 'Code',
link: {
type: 'generated-index',
title: 'Code',
description: 'Learn how to use Stately Studio’s code.',
slug: '/category/code',
keywords: ['guides'],
},
collapsed: true,
collapsible: true,
items: [
'import-from-code',
'import-from-github',
'generate-test-paths',
'sources',
'export-as-code',
],
},
'projects',
{
type: 'category',
label: 'Stately Sky',
link: {
type: 'doc',
id: 'stately-sky-getting-started',
},
items: [
{
type: 'doc',
label: 'Getting started',
id: 'stately-sky-getting-started',
},
],
},
{
type: 'doc',
label: 'Teams',
id: 'teams',
},
'discover',
{
type: 'category',
label: 'Share',
link: {
type: 'generated-index',
title: 'Share',
description:
'Learn how to share machines created in Stately Studio.',
slug: '/category/share',
keywords: ['guides'],
},
items: [
{
type: 'doc',
label: 'Embed URL',
id: 'embed',
},
{
type: 'doc',
label: 'Image URL',
id: 'image',
},
{
type: 'doc',
label: 'Share URL',
id: 'url',
},
],
},
{
type: 'category',
label: 'Accounts',
link: {
type: 'generated-index',
title: 'Stately Studio accounts',
description:
'Learn about Stately Studio plans and how to manage your account.',
slug: '/category/accounts',
keywords: ['guides'],
},
items: [
{
type: 'doc',
label: 'Sign up',
id: 'sign-up',
},
{
type: 'doc',
label: 'Upgrade',
id: 'upgrade',
},
],
},
{
type: 'doc',
label: 'Version history',
id: 'versions',
},
{
type: 'doc',
label: 'Lock machines',
id: 'lock-machines',
},
'keyboard-shortcuts',
'canvas-view-controls',
'user-preferences',
'studio-api',
],
},
{
type: 'category',
label: 'Actors',
link: {
type: 'generated-index',
title: 'Actors',
description:
'Learn how to use actors and the actor model in XState and Stately Studio.',
slug: '/category/actors',
keywords: ['guides'],
},
collapsed: false,
collapsible: true,
items: [
'actors',
'state-machine-actors',
'promise-actors',
'transition-actors',
'callback-actors',
'observable-actors',
'invoke',
'spawn',
'system',
'inspection',
],
},
{
type: 'category',
label: 'State machines',
link: {
type: 'generated-index',
title: 'State machines',
description:
'Learn how to use state machines in XState and Stately Studio.',
slug: '/category/state-machines',
keywords: ['guides'],
},
collapsed: false,
collapsible: true,
items: [
'machines',
'setup',
'states',
'context',
'input',
'output',
'transitions',
'eventless-transitions',
'delayed-transitions',
'actions',
'guards',
'initial-states',
'finite-states',
'parent-states',
'parallel-states',
'final-states',
'history-states',
'persistence',
'tags',
'event-emitter',
],
},
{
type: 'category',
label: 'Agents',
link: {
type: 'generated-index',
title: 'Agents',
description:
'Learn how to use AI agents with XState and Stately Studio.',
slug: '/category/agents',
keywords: ['agents'],
},
collapsed: true,
collapsible: true,
items: ['agents'],
},
{
type: 'category',
label: 'Guides',
link: {
type: 'generated-index',
title: 'Guides',
description:
'These guides cover different aspects such as using XState with immer, testing strategies, and other upcoming guides that will be added in the future. The purpose of these guides is to provide users with in-depth knowledge and practical examples to effectively utilize XState in their projects.',
slug: '/category/guides',
keywords: ['guides'],
},
collapsed: false,
collapsible: true,
items: ['testing', 'immer'],
},
{
type: 'category',
label: 'Packages',
link: {
type: 'generated-index',
title: 'Packages',
description: 'Find all the packages in XState.',
slug: '/category/xstate-packages',
keywords: ['guides'],
},
collapsed: true,
collapsible: true,
items: [
'xstate-store',
'xstate-react',
'xstate-vue',
'xstate-svelte',
'xstate-graph',
'xstate-test',
],
},
{
type: 'category',
label: 'Developer tools',
collapsed: false,
collapsible: true,
link: {
type: 'generated-index',
title: 'Stately developer tools',
description:
'Find all the developer tools you can use with XState and Stately Studio’s editor.',
slug: '/category/developer-tools',
keywords: ['guides'],
},
items: [
'xstate-vscode-extension',
'visualizer',
'inspector',
{
type: 'doc',
label: 'Other tools',
id: 'developer-tools',
},
],
},
{
type: 'doc',
label: 'Glossary',
id: 'glossary',
},
],
};
module.exports = sidebars;