Skip to content

Commit

Permalink
Fix server tutorial prev->next links (#5092)
Browse files Browse the repository at this point in the history
The Fetch Data tutorial wasn't set up as in this flow. This PR adds it.
  • Loading branch information
parlough authored Aug 4, 2023
1 parent 612e8f6 commit 9673dfe
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/_tutorials/server/cmdline.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
title: Write command-line apps
description: Basics for command-line apps.
nextpage:
url: /tutorials/server/httpserver
title: Write HTTP servers
url: /tutorials/server/fetch-data
title: Fetch data from the internet
prevpage:
url: /tutorials/server/get-started
title: "Get started: Command-line and server apps"
Expand Down
6 changes: 6 additions & 0 deletions src/_tutorials/server/fetch-data.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
title: Fetch data from the internet
description: Fetch data over the internet using the http package.
js: [{url: 'https://dartpad.dev/inject_embed.dart.js', defer: true}]
prevpage:
url: /tutorials/server/cmdline
title: Write command-line apps
nextpage:
url: /tutorials/server/httpserver
title: Write HTTP servers
---

<?code-excerpt path-base="fetch_data"?>
Expand Down
8 changes: 4 additions & 4 deletions src/_tutorials/server/get-started.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
---
title: "Get started: Command-line and server apps"
description: Get Dart, run and compile a small app.
nextpage:
url: /tutorials/server/cmdline
title: Write command-line apps
js: [{url: 'https://dartpad.dev/inject_embed.dart.js', defer: true}]
prevpage:
url: /tutorials/server
title: Dart command-line and server tutorials
js: [{url: 'https://dartpad.dev/inject_embed.dart.js', defer: true}]
nextpage:
url: /tutorials/server/cmdline
title: Write command-line apps
---

Follow these steps to start using the Dart SDK to develop command-line and server apps.
Expand Down
4 changes: 2 additions & 2 deletions src/_tutorials/server/httpserver.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ title: "Write HTTP servers"
description: Communicate over the internet
toc: false
prevpage:
url: /tutorials/server/cmdline
title: "Write command-line apps"
url: /tutorials/server/fetch-data
title: Fetch data from the internet
---

Here are some resources for writing servers using Dart:
Expand Down

0 comments on commit 9673dfe

Please sign in to comment.