diff --git a/firebase.json b/firebase.json index caab93192f..1acac338fa 100644 --- a/firebase.json +++ b/firebase.json @@ -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 }, @@ -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 }, @@ -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 }, @@ -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 }, @@ -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 }, diff --git a/src/_data/side-nav.yml b/src/_data/side-nav.yml index 05d8507dfc..143e3050ed 100644 --- a/src/_data/side-nav.yml +++ b/src/_data/side-nav.yml @@ -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 @@ -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 @@ -337,7 +337,7 @@ - title: Testing & optimization children: - title: Testing - permalink: /guides/testing + permalink: /tools/testing - title: Debugging web apps permalink: /web/debugging diff --git a/src/_includes/tools/dart-compile-js-options.md b/src/_includes/tools/dart-compile-js-options.md index 51fde4a3a7..7f0f8225d2 100644 --- a/src/_includes/tools/dart-compile-js-options.md +++ b/src/_includes/tools/dart-compile-js-options.md @@ -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 diff --git a/src/content/guides/environment-declarations.md b/src/content/libraries/core/environment-declarations.md similarity index 100% rename from src/content/guides/environment-declarations.md rename to src/content/libraries/core/environment-declarations.md diff --git a/src/content/libraries/dart-convert.md b/src/content/libraries/dart-convert.md index 0c71874329..8862497137 100644 --- a/src/content/libraries/dart-convert.md +++ b/src/content/libraries/dart-convert.md @@ -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 diff --git a/src/content/guides/json.md b/src/content/libraries/serialization/json.md similarity index 100% rename from src/content/guides/json.md rename to src/content/libraries/serialization/json.md diff --git a/src/content/resources/useful-packages.md b/src/content/resources/useful-packages.md index 6e62f9a192..c956b0efef 100644 --- a/src/content/resources/useful-packages.md +++ b/src/content/resources/useful-packages.md @@ -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() | diff --git a/src/content/resources/whats-new.md b/src/content/resources/whats-new.md index 76f148472d..294c95c2d2 100644 --- a/src/content/resources/whats-new.md +++ b/src/content/resources/whats-new.md @@ -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 diff --git a/src/content/tools/build_runner.md b/src/content/tools/build_runner.md index 85a250e4a7..f2a15998fe 100644 --- a/src/content/tools/build_runner.md +++ b/src/content/tools/build_runner.md @@ -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 diff --git a/src/content/tools/dart-test.md b/src/content/tools/dart-test.md index 3e1d186b13..2b92f12941 100644 --- a/src/content/tools/dart-test.md +++ b/src/content/tools/dart-test.md @@ -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 diff --git a/src/content/guides/testing.md b/src/content/tools/testing.md similarity index 100% rename from src/content/guides/testing.md rename to src/content/tools/testing.md diff --git a/src/content/tutorials/server/fetch-data.md b/src/content/tutorials/server/fetch-data.md index 94e002cd44..c1300316bb 100644 --- a/src/content/tutorials/server/fetch-data.md +++ b/src/content/tutorials/server/fetch-data.md @@ -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