Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial attempt at combining tutorials and codelabs #4875

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 3 additions & 1 deletion firebase.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@
{ "source": "/assets/dart-logo-wordmark*.png", "destination": "/assets/shared/dart-logo-for-shares.png?2", "type": 301 },
{ "source": "/books", "destination": "/resources/books", "type": 301 },
{ "source": "/cloud{,/**}", "destination": "/server/google-cloud", "type": 301 },
{ "source": "/codelabs", "destination": "/tutorials", "type": 301 },
{ "source": "/codelabs/server{,/**}", "destination": "/tutorials/server/httpserver", "type": 301 },
{ "source": "/code-of-conduct", "destination": "/community/code-of-conduct", "type": 301 },
{ "source": "/concurrency", "destination": "/language/concurrency", "type": 301 },
Expand Down Expand Up @@ -124,7 +125,8 @@
{ "source": "/docs/tutorials/httpserver", "destination": "/tutorials/server/httpserver", "type": 301 },
{ "source": "/docs/tutorials/indexeddb{,/**}", "destination": "https://api.dart.dev/stable/dart-indexed_db/dart-indexed_db-library.html", "type": 301 },
{ "source": "/docs/tutorials/remove-elements", "destination": "/tutorials/web/low-level-html/remove-elements", "type": 301 },
{ "source": "/docs/tutorials/shared-pkgs", "destination": "/tutorials/libraries/shared-pkgs", "type": 301 },
{ "source": "/docs/tutorials/shared-pkgs", "destination": "/guides/packages", "type": 301 },
{ "source": "/docs/tutorials/libraries{,/**}", "destination": "/guides/packages", "type": 301 },
{ "source": "/docs/tutorials/streams", "destination": "/tutorials/language/streams", "type": 301 },
{ "source": "/docs/tutorials{,/**}", "destination": "/tutorials", "type": 301 },
{ "source": "/docs{,/**}", "destination": "/guides", "type": 301 },
Expand Down
42 changes: 24 additions & 18 deletions src/_data/side-nav.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,36 @@
- title: Tutorials & codelabs
- title: Tutorials
expanded: false
children:
- title: Tutorials
- title: Introduction
match-page-url-exactly: true
permalink: /tutorials
- title: Codelabs
expanded: true
- title: Language
expanded: false
children:
- title: List of Dart codelabs
match-page-url-exactly: true
permalink: /codelabs
- title: Language cheatsheet
permalink: /codelabs/dart-cheatsheet
- title: Koans (code exercises)
permalink: /codelabs/dart-cheatsheet
- title: Null safety
permalink: /codelabs/null-safety
- title: Coming from ...
expanded: false
children:
- title: JavaScript to Dart
permalink: /guides/language/coming-from/js-to-dart
- title: Swift to Dart
permalink: /guides/language/coming-from/swift-to-dart
- title: Java to Dart
permalink: https://codelabs.developers.google.com/codelabs/from-java-to-dart/
- title: Libraries
expanded: false
children:
- title: Library tour
permalink: /guides/libraries/library-tour
- title: Iterable collections
permalink: /codelabs/iterables
- title: Asynchronous programming
permalink: /codelabs/async-await
- title: Null safety
permalink: /codelabs/null-safety
- title: Building a command-line app
permalink: /tutorials/server/get-started
- title: Language
expanded: false
children:
Expand Down Expand Up @@ -332,13 +345,6 @@
permalink: /guides/language/spec
- title: Dart 3 migration guide
permalink: /resources/dart-3-migration
- title: Coming from ...
expanded: false
children:
- title: JavaScript to Dart
permalink: /guides/language/coming-from/js-to-dart
- title: Swift to Dart
permalink: /guides/language/coming-from/swift-to-dart
- title: Books
permalink: /resources/books
- title: Videos
Expand Down
25 changes: 21 additions & 4 deletions src/_tutorials/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,27 @@ title: Tutorials
description: Tutorials for writing Dart apps.
---

These tutorials teach you how to use the Dart
language, tools, and APIs to build applications.
If you want a hands-on coding experience, try a
**[codelab](/codelabs)**.
Welcome to the Dart tutorials!
These teach you how to use the Dart
language, libraries, and tools build applications.

## Language

If you like learning via coding exercises
checkout the [Dart koans](/codelabs/dart-cheatsheet).
For a more textual introduction see the
[language intro](/language).
The Language menu on the left also has tutorials
on more detailed topics, and tutorials written
for those with existing knowledge of other programming languages.
Comment on lines +12 to +18
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

issue: Need to add commas to the dependent clauses.

Suggested change
If you like learning via coding exercises
checkout the [Dart koans](/codelabs/dart-cheatsheet).
For a more textual introduction see the
[language intro](/language).
The Language menu on the left also has tutorials
on more detailed topics, and tutorials written
for those with existing knowledge of other programming languages.
If you like learning via coding exercises,
check out the [Dart koans](/codelabs/dart-cheatsheet).
To get an in-depth explanation, see the
[language intro](/language).
The Language menu also includes tutorials on more
detailed topics and for those with existing knowledge
of other programming languages.


## Libraries

The Libraries menu contains tutorials on the Dart core libraries,
including collections, math, asynchronous programming, and I/O.
Comment on lines +22 to +23
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

issue: We don't need to describe the TOC. We can link to it.

Suggested change
The Libraries menu contains tutorials on the Dart core libraries,
including collections, math, asynchronous programming, and I/O.
Libraries contains tutorials on the Dart core libraries,
including collections, math, asynchronous programming, and I/O.





## The basics

Expand Down
13 changes: 0 additions & 13 deletions src/_tutorials/libraries/index.md

This file was deleted.