Shuffle docs order (#4183)
This PR brings updates the docs order, bringing collaboration higher up. ### Change type - [x] `other`
This commit is contained in:
parent
077d42c6f9
commit
bc20b2a418
7 changed files with 10 additions and 14 deletions
|
@ -34,11 +34,11 @@ const getExamplesForCategory = (category: Category) =>
|
||||||
|
|
||||||
const categories: Record<Category, string> = {
|
const categories: Record<Category, string> = {
|
||||||
basic: 'Getting started',
|
basic: 'Getting started',
|
||||||
|
collaboration: 'Collaboration',
|
||||||
ui: 'UI & theming',
|
ui: 'UI & theming',
|
||||||
'shapes/tools': 'Shapes & tools',
|
'shapes/tools': 'Shapes & tools',
|
||||||
'data/assets': 'Data & assets',
|
'data/assets': 'Data & assets',
|
||||||
'editor-api': 'Editor API',
|
'editor-api': 'Editor API',
|
||||||
collaboration: 'Collaboration',
|
|
||||||
'use-cases': 'Use cases',
|
'use-cases': 'Use cases',
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
---
|
---
|
||||||
title: Camera options
|
title: Camera options
|
||||||
component: ./CameraOptionsExample.tsx
|
component: ./CameraOptionsExample.tsx
|
||||||
category: basic
|
category: editor-api
|
||||||
keywords: [api, fixed, constraints, camera bounds, pan speed, zoom speed]
|
keywords: [api, fixed, constraints, camera bounds, pan speed, zoom speed]
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,7 @@
|
||||||
---
|
---
|
||||||
title: Editor focus
|
title: Editor focus
|
||||||
component: ./EditorFocusExample.tsx
|
component: ./EditorFocusExample.tsx
|
||||||
category: basic
|
category: editor-api
|
||||||
priority: 7
|
|
||||||
keywords: [instance, state, keyboard shortcuts]
|
keywords: [instance, state, keyboard shortcuts]
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
---
|
---
|
||||||
title: Multiplayer demo
|
title: Multiplayer with tlsync
|
||||||
component: ./MultiplayerDemoExample.tsx
|
component: ./MultiplayerDemoExample.tsx
|
||||||
category: basic
|
category: collaboration
|
||||||
priority: 3
|
priority: 1
|
||||||
keywords: [basic, intro, simple, quick, start, multiplayer, sync, collaboration]
|
keywords: [basic, intro, simple, quick, start, multiplayer, sync, collaboration]
|
||||||
multiplayer: true
|
multiplayer: true
|
||||||
---
|
---
|
||||||
|
|
|
@ -1,8 +1,7 @@
|
||||||
---
|
---
|
||||||
title: User presence
|
title: User presence
|
||||||
component: ./UserPresenceExample.tsx
|
component: ./UserPresenceExample.tsx
|
||||||
category: collaboration
|
category: editor-api
|
||||||
priority: 2
|
|
||||||
keywords: [Instance presence record, cursor]
|
keywords: [Instance presence record, cursor]
|
||||||
---
|
---
|
||||||
|
|
||||||
|
@ -10,6 +9,4 @@ Show other users editing the same document.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
Here, we add fake InstancePresence records to the store to simulate other users.
|
Here, we add fake InstancePresence records to the store to simulate other users. If you have your own presence system, you could add real records to the store in the same way.
|
||||||
|
|
||||||
If you have your own presence system, you could add real records to the store in the same way.
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
---
|
---
|
||||||
title: YJS
|
title: Collaboration with YJS
|
||||||
component: ./YjsExample.tsx
|
component: ./YjsExample.tsx
|
||||||
category: collaboration
|
category: collaboration
|
||||||
priority: 2
|
priority: 2
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
export default function YjsExample() {
|
export default function YjsExample() {
|
||||||
return (
|
return (
|
||||||
<div className="tldraw__editor">
|
<div className="tldraw__editor" style={{ padding: 32 }}>
|
||||||
We’ve moved! See{' '}
|
We’ve moved! See{' '}
|
||||||
<a href="https://github.com/tldraw/tldraw-yjs-example">
|
<a href="https://github.com/tldraw/tldraw-yjs-example">
|
||||||
https://github.com/tldraw/tldraw-yjs-example
|
https://github.com/tldraw/tldraw-yjs-example
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue