Skip to content

Commit b6c38a7

Browse files
parloughTony Sansone
authored and
Tony Sansone
committed
Cleanup global config and fix a few links (dart-lang#5543)
Consolidates a few duplicate entries in the config and fixes Android site links that use a config variable.
1 parent 42150d2 commit b6c38a7

File tree

6 files changed

+13
-16
lines changed

6 files changed

+13
-16
lines changed

src/_data/site.yml

+5-7
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ url: https://dart.dev
88
repo:
99
this: https://github.com/dart-lang/site-www
1010
shared: https://github.com/dart-lang/site-shared
11+
dart:
12+
org: https://github.com/dart-lang
13+
sdk: https://github.com/dart-lang/sdk
14+
lang: https://github.com/dart-lang/language
1115
branch: main
1216

1317
flutter: https://flutter.dev
@@ -20,12 +24,6 @@ pub-pkg: https://pub.dev/packages
2024
dartpad: https://dartpad.dev
2125
news: https://news.dartlang.org
2226
announce: https://groups.google.com/a/dartlang.org/g/announce
23-
gh: https://github.com
24-
gh-dart:
25-
org: https://github.com/dart-lang
26-
sdk: https://github.com/dart-lang/sdk
27-
lang: https://github.com/dart-lang/language
28-
site: https://github.com/dart-lang/site-www
2927
android-dev: https://developer.android.com
3028
apple-dev: https://developer.apple.com
3129

@@ -38,4 +36,4 @@ og_image_vers: "?2"
3836

3937
sdkInfo:
4038
channel: stable
41-
version: 3.1.5
39+
version: 3.2.6

src/content/get-dart/_mac.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,5 +60,5 @@ $ brew info dart
6060
```
6161

6262
[Homebrew]: https://brew.sh
63-
[tap]: {{site.gh-dart.org}}/homebrew-dart
63+
[tap]: {{site.repo.dart.org}}/homebrew-dart
6464
[Homebrew FAQ]: https://docs.brew.sh/FAQ#my-mac-apps-dont-find-homebrew-utilities

src/content/guides/libraries/useful-libraries.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ Use these packages for a wide range of projects.
5656
[stack_trace]: {{pubpkg}}/stack_trace
5757
[test]: {{pubpkg}}/test
5858
[yaml]: {{pubpkg}}/yaml
59-
[Cronet]: {{site.android-dev}}guide/topics/connectivity/cronet/reference/org/chromium/net/package-summary
59+
[Cronet]: {{site.android-dev}}/develop/connectivity/cronet
6060
[furl]: {{site.apple-dev}}/documentation/foundation/url_loading_system
6161

6262
## Packages that expand on Dart core libraries {:#packages-that-correspond-to-sdk-libraries}

src/content/resources/faq.md

+3-4
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ description: You have questions about Dart, we have answers.
55
---
66

77
{% assign pdf = '<i style="vertical-align: text-top" class="material-symbols">picture_as_pdf</i>' %}
8-
{% assign site-repo = site.gh-dart.site %}
9-
{% assign sdk-repo = site.gh-dart.sdk %}
10-
{% assign lang-repo = site.gh-dart.lang %}
8+
{% assign site-repo = site.repo.this %}
9+
{% assign sdk-repo = site.repo.dart.sdk %}
10+
{% assign lang-repo = site.repo.dart.lang %}
1111
{% assign ecma-pdf = 'https://ecma-international.org/wp-content/uploads' %}
1212

1313
This page collects some of the top questions from the community.
@@ -350,7 +350,6 @@ either of those lists results in a runtime exception.
350350
[package:js]: {{site.pub-pkg}}/js
351351
[dart compile]: /tools/dart-compile
352352
[dart analyze]: /tools/dart-analyze
353-
[typescript]: {{site.news}}/2012/10/the-dart-team-welcomes-typescript.html
354353
[webdev]: /tools/webdev
355354

356355
[dart-mirror]: {{site.dart-api}}/{{site.data.pkg-vers.SDK.channel}}/dart-mirrors

src/content/tools/sdk.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -50,5 +50,5 @@ go to [the SDK issue tracker][sdk-issues].
5050
[Dart libraries]: /libraries
5151
[flutter]: {{site.flutter-docs}}/get-started/install
5252
[site SDK version]: {{site.dart-api}}/{{site.sdkInfo.channel}}/{{site.sdkInfo.version}}/index.html
53-
[readme]: ({{site.gh-dart.sdk}}/blob/main/README.dart-sdk)
54-
[sdk-issues]: ({{site.gh-dart.sdk}}/issues)
53+
[readme]: ({{site.repo.dart.sdk}}/blob/main/README.dart-sdk)
54+
[sdk-issues]: ({{site.repo.dart.sdk}}/issues)

src/content/tutorials/server/fetch-data.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ To learn more about their capabilities,
8181
consult the package documentation.
8282
:::
8383

84-
[Cronet]: {{site.android-dev}}guide/topics/connectivity/cronet/reference/org/chromium/net/package-summary
84+
[Cronet]: {{site.android-dev}}/develop/connectivity/cronet
8585
[furl]: {{site.apple-dev}}/documentation/foundation/url_loading_system
8686
[Introducing JSON]: https://www.json.org/
8787

0 commit comments

Comments
 (0)