Skip to content

Commit

Permalink
Move remaining docs out from /guides directory (#6301)
Browse files Browse the repository at this point in the history
Contributes to #5767
  • Loading branch information
parlough authored Jan 6, 2025
1 parent 10d79c3 commit 283a3ac
Show file tree
Hide file tree
Showing 12 changed files with 17 additions and 13 deletions.
8 changes: 6 additions & 2 deletions firebase.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
{ "source": "/articles/idiomatic-dart{,/**}", "destination": "/effective-dart", "type": 301 },
{ "source": "/articles/io", "destination": "/articles/libraries/dart-io", "type": 301 },
{ "source": "/articles/js-dart-interop", "destination": "/interop/js-interop", "type": 301 },
{ "source": "/articles/json-web-service", "destination": "/guides/json", "type": 301 },
{ "source": "/articles/json-web-service", "destination": "/libraries/serialization/json", "type": 301 },
{ "source": "/articles/language", "destination": "/language", "type": 301 },
{ "source": "/articles/language/await-async", "destination": "/libraries/async/async-await", "type": 301 },
{ "source": "/articles/language/mixins", "destination": "/language/mixins", "type": 301 },
Expand All @@ -82,7 +82,7 @@
{ "source": "/articles/native-extensions-for-standalone-dart-vm", "destination": "/server/c-interop-native-extensions", "type": 301 },
{ "source": "/articles/numeric-computation", "destination": "/resources/language/number-representation", "type": 301 },
{ "source": "/articles/optional-types", "destination": "/language/type-system", "type": 301 },
{ "source": "/articles/serialization", "destination": "/guides/json", "type": 301 },
{ "source": "/articles/serialization", "destination": "/libraries/serialization/json", "type": 301 },
{ "source": "/articles/server/native-extensions", "destination": "/server/c-interop-native-extensions", "type": 301 },
{ "source": "/articles/server{,/**}", "destination": "/server", "type": 301 },
{ "source": "/articles/snapshots", "destination": "/tools/dart-compile", "type": 301 },
Expand Down Expand Up @@ -208,8 +208,10 @@
{ "source": "/go/unsound-null-safety", "destination": "/null-safety/unsound-null-safety", "type": 301 },

{ "source": "/googleapis", "destination": "https://github.com/dart-lang/googleapis", "type": 301 },
{ "source": "/guides/environment-declarations", "destination": "/libraries/core/environment-declarations", "type": 301 },
{ "source": "/guides/get-started", "destination": "/overview", "type": 301 },
{ "source": "/guides/google-apis", "destination": "/resources/google-apis", "type": 301 },
{ "source": "/guides/json", "destination": "/libraries/serialization/json", "type": 301 },
{ "source": "/guides/language", "destination": "/language", "type": 301 },
{ "source": "/guides/language/analysis-options", "destination": "/tools/analysis", "type": 301 },
{ "source": "/guides/language/cheatsheet", "destination": "/language", "type": 301 },
Expand Down Expand Up @@ -246,6 +248,7 @@
{ "source": "/guides/libraries/useful-libraries", "destination": "/resources/useful-packages", "type": 301 },
{ "source": "/guides/packages", "destination": "/tools/pub/packages", "type": 301 },
{ "source": "/guides/platforms", "destination": "/overview#platform", "type": 301 },
{ "source": "/guides/testing", "destination": "/tools/testing", "type": 301 },
{ "source": "/guides/whats-new", "destination": "/resources/whats-new", "type": 301 },
{ "source": "/install", "destination": "/get-dart", "type": 301 },
{ "source": "/install/**", "destination": "/get-dart", "type": 301 },
Expand Down Expand Up @@ -334,6 +337,7 @@
{ "source": "/language/control-flow", "destination": "/language/loops", "type": 301 },
{ "source": "/language/enum", "destination": "/language/enums", "type": 301 },
{ "source": "/language/generators", "destination": "/language/functions#generators", "type": 301 },
{ "source": "/libraries/serialization", "destination": "/libraries/serialization/json", "type": 301 },
{ "source": "/linter/lints/:lint*", "destination": "/tools/linter-rules/:lint", "type": 301 },
{ "source": "/lints", "destination": "/tools/linter-rules", "type": 301 },
{ "source": "/lints/:lint*", "destination": "/tools/linter-rules/:lint", "type": 301 },
Expand Down
8 changes: 4 additions & 4 deletions src/_data/side-nav.yml
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,8 @@
- title: Development
expanded: false
children:
- title: JSON
permalink: /guides/json
- title: JSON serialization
permalink: /libraries/serialization/json
- title: Number representation
permalink: /resources/language/number-representation
- title: Google APIs
Expand Down Expand Up @@ -233,7 +233,7 @@
- title: Wasm compilation
permalink: /web/wasm
- title: Environment declarations
permalink: /guides/environment-declarations
permalink: /libraries/core/environment-declarations

- title: Interoperability
expanded: false
Expand Down Expand Up @@ -337,7 +337,7 @@
- title: Testing & optimization
children:
- title: Testing
permalink: /guides/testing
permalink: /tools/testing
- title: Debugging web apps
permalink: /web/debugging

Expand Down
2 changes: 1 addition & 1 deletion src/_includes/tools/dart-compile-js-options.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ Some other handy options include:
[`int.fromEnvironment`]: {{site.dart-api}}/dart-core/int/int.fromEnvironment.html
[`bool.fromEnvironment`]: {{site.dart-api}}/dart-core/bool/bool.fromEnvironment.html
[`bool.hasEnvironment`]: {{site.dart-api}}/dart-core/bool/bool.hasEnvironment.html
[Configuring apps with compilation environment declarations]: /guides/environment-declarations
[Configuring apps with compilation environment declarations]: /libraries/core/environment-declarations

###### Display options

Expand Down
2 changes: 1 addition & 1 deletion src/content/libraries/dart-convert.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ option is to omit the second argument, in which case the encoder calls
the object's `toJson()` method.

For more examples and links to JSON-related packages, see
[Using JSON](/guides/json).
[Using JSON](/libraries/serialization/json).


## Decoding and encoding UTF-8 characters
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/content/resources/useful-packages.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Use these packages for a wide range of projects.
| [cupertino_http][] | Provides access to Apple's [Foundation URL Loading System][furl] using the same interface as `package:http`. | |
| [http][] | Provides set of high-level functions and classes to simplify consuming HTTP resources. | delete(), get(), post(), read() |
| [intl][] | Internationalization and localization facilities, with support for plurals and genders, date and number formatting and parsing, and bidirectional text. | Bidi, DateFormat, MicroMoney, TextDirection |
| [json_serializable][] | Generates JSON manipulation code. To learn more, consult [JSON Support](/guides/json). | @JsonSerializable |
| [json_serializable][] | Generates JSON manipulation code. To learn more, consult [JSON Support](/libraries/serialization/json). | @JsonSerializable |
| [logging][] | Adds message logging to your application. | LoggerHandler, Level, LogRecord |
| [mockito][] | Mocks objects in tests. Helps when you write tests for dependency injection. Use with the [test][] package. | Answering, Expectation, Verification |
| [path][] | Manipulates different types of paths. To learn more, consult [Unboxing Packages: path.]({{site.news}}/2016/06/unboxing-packages-path.html) | absolute(), basename(), extension(), join(), normalize(), relative(), split() |
Expand Down
2 changes: 1 addition & 1 deletion src/content/resources/whats-new.md
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ we made the following changes:
[Dart 3 migration guide]: /resources/dart-3-migration
[language evolution]: /resources/language/evolution
[language versioning]: /resources/language/evolution#language-versioning
[compilation environment declarations]: /guides/environment-declarations
[compilation environment declarations]: /libraries/core/environment-declarations
[Java interop]: /interop/java-interop
[unnamed extensions]: /language/extension-methods#unnamed-extensions
[`dart info`]: /tools/dart-info
Expand Down
2 changes: 1 addition & 1 deletion src/content/tools/build_runner.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,6 @@ For details on using build_runner, see the following:
[on build]: {{site.pub-pkg}}?q=dependency%3Abuild
[on build_runner.]: {{site.pub-pkg}}?q=dependency%3Abuild_runner
[sass_builder]: {{site.pub-pkg}}/sass_builder
[tests]: /guides/testing
[tests]: /tools/testing
[webdev]: /tools/webdev
[webdev serve]: /tools/webdev#serve
2 changes: 1 addition & 1 deletion src/content/tools/dart-test.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ For information on writing tests, see the
If you're working on Flutter code, then use the `flutter test` command instead,
as described in [Testing Flutter apps][].

[testing documentation]: /guides/testing
[testing documentation]: /tools/testing
[`test` package]: {{site.pub-pkg}}/test
[Testing Flutter apps]: {{site.flutter-docs}}/testing

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/content/tutorials/server/fetch-data.md
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,7 @@ to prevent your interface from becoming unresponsive.
[isolate]: /language/concurrency#isolates

[URI]: https://wikipedia.org/wiki/Uniform_Resource_Identifier
[Using JSON]: /guides/json
[Using JSON]: /libraries/serialization/json
[convert-docs]: {{site.dart-api}}/dart-convert/dart-convert-library.html
[http-pub]: {{site.pub-pkg}}/http
[http-docs]: {{site.pub-api}}/http

0 comments on commit 283a3ac

Please sign in to comment.