Skip to content

Commit

Permalink
docs(website): move migrations to submenu
Browse files Browse the repository at this point in the history
  • Loading branch information
TheEdoRan committed Feb 4, 2024
1 parent e768ace commit 6f7c637
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 6 deletions.
2 changes: 1 addition & 1 deletion website/docs/contributing.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
sidebar_position: 12
sidebar_position: 9
description: Learn how to contribute to next-safe-action via GitHub.
---

Expand Down
2 changes: 1 addition & 1 deletion website/docs/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ npm i next-safe-action@v4 zod
## Usage

:::note
If you're still using Next.js 13 with next-safe-action v4, you need to enable `serverActions` flag under the `experimental` object in next.config.js file. Find out more [here](/docs/migration-from-v4-to-v5).
If you're still using Next.js 13 with next-safe-action v4, you need to enable `serverActions` flag under the `experimental` object in next.config.js file. Find out more [here](/docs/migration/v4-to-v5).
:::

### 1. Instantiate a new client
Expand Down
5 changes: 5 additions & 0 deletions website/docs/migration/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
sidebar_position: 8
description: Learn how to migrate from a version to the next one.
title: Migration
---
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
sidebar_position: 8
sidebar_position: 1
description: Learn how to migrate from next-safe-action version 3 to version 4.
title: v3 to v4
---

# Migration from v3 to v4
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
sidebar_position: 9
sidebar_position: 2
description: Learn how to migrate from next-safe-action version 4 to version 5.
title: v4 to v5
---

# Migration from v4 to v5
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
sidebar_position: 10
sidebar_position: 3
description: Learn how to migrate from next-safe-action version 5 to version 6.
title: v5 to v6
---

# Migration from v5 to v6
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
sidebar_position: 11
sidebar_position: 4
description: Learn how to migrate from next-safe-action version 6 to version 7.
title: v6 to v7
---

# Migration from v6 to v7
Expand Down

0 comments on commit 6f7c637

Please sign in to comment.