Skip to content

Commit 2e254cb

Browse files
committed
docs: update order
1 parent 5aec30f commit 2e254cb

File tree

13 files changed

+14
-15
lines changed

13 files changed

+14
-15
lines changed

docs/getting-started/all-components.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: All Components
33
description: Overview of all components offered by @react-three/xr.
4-
nav: 3
4+
nav: 4
55
---
66

77
### `XR`

docs/getting-started/all-hooks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: All Hooks
33
description: Overview of all hooks offered by @react-three/xr.
4-
nav: 4
4+
nav: 5
55
---
66

77
### `useXR`

docs/getting-started/convert-to-xr.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
---
22
title: Convert to XR
33
description: How to convert an existing react-three-fiber app into an interactive immersive experience.
4-
nav: 0
4+
nav: 1
55
---
66

77
In case your app is already an R3F app build with natuerlich or @react-three/xr v5. Check out the migration guides for [natuerlich](../migration/from-natuerlich.md) and [@react-three/xr v5](../migration/from-react-three-xr-5.md).
88

99
The first step is to install the latest version of react-three/xr.
1010

11-
```
11+
```bash
1212
npm install @react-three/xr@latest
1313
```
1414

@@ -35,7 +35,6 @@ Using the `store`, we can set up a way for the user to enter the XR experience.
3535
Lastly, use the `store` to setup the `XR` component to wrap your scene.
3636

3737
```tsx
38-
3938
<>
4039
<button onClick={() => store.enterVR()}>Enter VR</button>
4140
<button onClick={() => store.enterAR()}>Enter AR</button>

docs/getting-started/examples.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Examples
33
description: Examples made with @react-three/xr
4-
nav: 1
4+
nav: 2
55
---
66

77
<Grid cols={2}>

docs/getting-started/showcases.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Showcases
33
description: Public products build with @react-three/xr
4-
nav: 2
4+
nav: 3
55
---
66

77

docs/tutorials/custom-inputs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Custom Hands/Controllers/...
33
description: Customize interactions and style of inputs such as hands, controllers, and more
4-
nav: 10
4+
nav: 12
55
---
66

77
@react-three/xr provides a set of default hands, controllers, transient pointers, gazes, and screen input that can be configured and completely exchanged with your own implementation. The following example shows how to configure the ray color of the ray pointer in the users hand.

docs/tutorials/gamepad.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Gamepad
33
description: How to use the XRControllers gamepad?
4-
nav: 9
4+
nav: 10
55
---
66

77
All XR controllers are part of the state inside the xr store. The existing controllers can be read using the `useXR` hook. Alternatively, a specific xr controller can be retrived using `useXRController("left")`.

docs/tutorials/guards.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Guards
33
description: Render and show parts of your application conditionally using guards
4-
nav: 11
4+
nav: 13
55
---
66

77
Guards allow to conditionally display or include content. For instance, the `IfInSessionMode` guard allows only displaying a background when the session is not an AR session. The `IfInSessionMode` can receive either a list of `allow` session modes or a list of `deny` session modes.

docs/tutorials/interactions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Interactions
33
description: Build interactions that work across XR and non-XR web applications
4-
nav: 5
4+
nav: 6
55
---
66

77
@react-three/xr uses the same pointer events as @react-three/fiber, which allows building interactions that work on non-XR devices as well as XR devices. So, just like you'd expect from @react-three/fiber and everywhere else in react, interactions are built using

docs/tutorials/object-detection.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Object Detection
33
description: Use detected objects such as meshes and planes for rendering, scene understanding, physics, and more
4-
nav: 8
4+
nav: 11
55
---
66

77
@react-three/xr allows to use the devices mesh and plane detection functionality to detect the meshes and planes in the environment to modify the rendering, allow physics interactions with the environment, and more.

0 commit comments

Comments
 (0)