Skip to content

Commit efd0a45

Browse files
authored
Replace master-api with the new main-api links. (#9751)
This is to replace remove the master-docs-flutter-dev gcp project. Bug: flutter/flutter#133877 ## Presubmit checklist - [X] This PR doesn’t contain automatically generated corrections (Grammarly or similar). - [X] This PR follows the [Google Developer Documentation Style Guidelines](https://developers.google.com/style) — for example, it doesn’t use _i.e._ or _e.g._, and it avoids _I_ and _we_ (first person). - [X] This PR uses [semantic line breaks](https://github.com/dart-lang/site-shared/blob/main/doc/writing-for-dart-and-flutter-websites.md#semantic-line-breaks) of 80 characters or fewer.
1 parent dc8b876 commit efd0a45

File tree

10 files changed

+31
-31
lines changed

10 files changed

+31
-31
lines changed

_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ social:
3232
dart-site: https://dart.dev
3333
news: https://news.dartlang.org
3434
api: https://api.flutter.dev
35-
master-api: https://master-api.flutter.dev
35+
main-api: https://main-api.flutter.dev
3636
pub: https://pub.dev
3737
pub-api: https://pub.dev/documentation
3838
pub-pkg: https://pub.dev/packages
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@
1515
{{site.alert.end}}
1616

1717
[api.flutter.dev]: {{site.api}}
18-
[latest docs]: {{site.master-api}}
18+
[latest docs]: {{site.main-api}}

src/release/breaking-changes/android-14-nonlinear-text-scaling-migration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,6 @@ Seealso:
7070

7171
[Android 14 nonlinear font scaling]: https://developer.android.com/about/versions/14/features#non-linear-font-scaling
7272
[Deprecate `textScaleFactor` in favor of `TextScaler`]: {{site.url}}/release/breaking-changes/deprecate-textscalefactor
73-
[`TextScaler`]: {{site.master-api}}/flutter/painting/TextScaler-class.html
73+
[`TextScaler`]: {{site.main-api}}/flutter/painting/TextScaler-class.html
7474
[New font scaling system (Issue 116231)]: {{site.repo.flutter}}/issues/116231
7575
[Implementing TextScaler for nonlinear text scaling]: {{site.repo.engine}}/pull/44907

src/release/breaking-changes/android-predictive-back.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ In stable release: not yet
328328

329329
## References
330330

331-
{% include docs/master-api.md %}
331+
{% include docs/main-api.md %}
332332

333333
API documentation:
334334

@@ -352,14 +352,14 @@ Relevant PRs:
352352
* [Predictive Back support for root routes][]
353353
* [Platform channel for predictive back][]
354354

355-
[`PopScope`]: {{site.master-api}}/flutter/widgets/PopScope-class.html
356-
[`NavigatorPopHandler`]: {{site.master-api}}/flutter/widgets/NavigatorPopHandler-class.html
357-
[`PopInterface`]: {{site.master-api}}/flutter/widgets/PopInterface-class.html
358-
[`Form.canPop`]: {{site.master-api}}/flutter/widgets/Form/canPop.html
359-
[`Form.onPopInvoked`]: {{site.master-api}}/flutter/widgets/Form/onPopInvoked.html
360-
[`Route.popDisposition`]: {{site.master-api}}/flutter/widgets/Route/popDisposition.html
361-
[`ModalRoute.registerPopInterface`]: {{site.master-api}}/flutter/widgets/ModalRoute/registerPopInterface.html
362-
[`ModalRoute.unregisterPopInterface`]: {{site.master-api}}/flutter/widgets/ModalRoute/unregisterPopInterface.html
355+
[`PopScope`]: {{site.main-api}}/flutter/widgets/PopScope-class.html
356+
[`NavigatorPopHandler`]: {{site.main-api}}/flutter/widgets/NavigatorPopHandler-class.html
357+
[`PopInterface`]: {{site.main-api}}/flutter/widgets/PopInterface-class.html
358+
[`Form.canPop`]: {{site.main-api}}/flutter/widgets/Form/canPop.html
359+
[`Form.onPopInvoked`]: {{site.main-api}}/flutter/widgets/Form/onPopInvoked.html
360+
[`Route.popDisposition`]: {{site.main-api}}/flutter/widgets/Route/popDisposition.html
361+
[`ModalRoute.registerPopInterface`]: {{site.main-api}}/flutter/widgets/ModalRoute/registerPopInterface.html
362+
[`ModalRoute.unregisterPopInterface`]: {{site.main-api}}/flutter/widgets/ModalRoute/unregisterPopInterface.html
363363

364364
[Issue 109513]: {{site.repo.flutter}}/issues/109513
365365
[Predictive back support for root routes]: {{site.repo.flutter}}/pull/120385

src/release/breaking-changes/deprecate-textscalefactor.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -282,11 +282,11 @@ Relevant PRs:
282282

283283

284284
[Android 14 nonlinear font scaling]: https://developer.android.com/about/versions/14/features#non-linear-font-scaling
285-
[`TextScaler`]: {{site.master-api}}/flutter/painting/TextScaler-class.html
286-
[`MediaQuery.textScalerOf`]: {{site.master-api}}/flutter/widgets/MediaQuery/textScalerOf.html
287-
[`MediaQuery.maybeTextScalerOf`]: {{site.master-api}}/flutter/widgets/MediaQuery/maybeTextScalerOf.html
288-
[`MediaQuery.withNoTextScaling`]: {{site.master-api}}/flutter/widgets/MediaQuery/withNoTextScaling.html
289-
[`MediaQuery.withClampedTextScaling`]: {{site.master-api}}/flutter/widgets/MediaQuery/withClampedTextScaling.html
285+
[`TextScaler`]: {{site.main-api}}/flutter/painting/TextScaler-class.html
286+
[`MediaQuery.textScalerOf`]: {{site.main-api}}/flutter/widgets/MediaQuery/textScalerOf.html
287+
[`MediaQuery.maybeTextScalerOf`]: {{site.main-api}}/flutter/widgets/MediaQuery/maybeTextScalerOf.html
288+
[`MediaQuery.withNoTextScaling`]: {{site.main-api}}/flutter/widgets/MediaQuery/withNoTextScaling.html
289+
[`MediaQuery.withClampedTextScaling`]: {{site.main-api}}/flutter/widgets/MediaQuery/withClampedTextScaling.html
290290

291291
[New font scaling system (Issue 116231)]: {{site.repo.flutter}}/issues/116231
292292
[Replaces `textScaleFactor` with `TextScaler`]: {{site.repo.flutter}}/pull/128522

src/release/breaking-changes/describe-enum.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ Relevant PRs:
9292

9393
[`describeEnum` stable]: {{site.api}}/flutter/lib/src/foundation/describeEnum.html
9494
[`EnumProperty` stable]: {{site.api}}/flutter/lib/src/foundation/EnumProperty.html
95-
[`describeEnum` main]: {{site.master-api}}/flutter/lib/src/foundation/describeEnum.html
96-
[`EnumProperty` main]: {{site.master-api}}/flutter/lib/src/foundation/describeEnum.html
95+
[`describeEnum` main]: {{site.main-api}}/flutter/lib/src/foundation/describeEnum.html
96+
[`EnumProperty` main]: {{site.main-api}}/flutter/lib/src/foundation/describeEnum.html
9797

9898
[Cleanup SemanticsFlag and SemanticsAction issue]: {{site.repo.flutter}}/issues/123346
9999
[Deprecate `describeEnum` PR]: {{site.repo.flutter}}/pull/125016

src/release/breaking-changes/template.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -145,11 +145,11 @@ Reverted in version: xxx (OPTIONAL, delete if not used)
145145
These links are commented out because they
146146
cause the GitHubActions (GHA) linkcheck to fail.
147147
Remove the comment tags once you fill this in with
148-
real links. Only use the "master-api" include if
149-
you link to "master-api.flutter.dev"; prefer our
148+
real links. Only use the "main-api" include if
149+
you link to "main-api.flutter.dev"; prefer our
150150
stable documentation if possible.
151151

152-
{% include docs/master-api.md %}
152+
{% include docs/main-api.md %}
153153

154154
API documentation:
155155

@@ -173,21 +173,21 @@ Relevant PRs:
173173
but please remove the comment tags before you commit!
174174

175175
If you are sharing new API that hasn't landed in
176-
the stable channel yet, use the master channel link.
177-
To link to docs on the master channel,
176+
the stable channel yet, use the main channel link.
177+
To link to docs on the main channel,
178178
include the following note and make sure that
179-
the URL includes the master link (as shown below).
179+
the URL includes the main link (as shown below).
180180

181181
Here's an example of defining a stable (site.api) link
182-
and a master channel (master-api) link.
182+
and a main channel (main-api) link.
183183

184184
<!-- Stable channel link: -->
185185
[`ClassName`]: {{site.api}}/flutter/[link_to_relevant_page].html
186186

187187
<!-- Master channel link: -->
188-
{% include docs/master-api.md %}
188+
{% include docs/main-api.md %}
189189

190-
[`ClassName`]: {{site.master-api}}/flutter/[link_to_relevant_page].html
190+
[`ClassName`]: {{site.main-api}}/flutter/[link_to_relevant_page].html
191191

192192
[Issue xxxx]: {{site.repo.flutter}}/issues/[link_to_actual_issue]
193193
[Issue yyyy]: {{site.repo.flutter}}/issues/[link_to_actual_issue]

src/release/upgrade.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ We do not recommend using this channel as
8181
it is more likely to contain serious regressions.
8282

8383
The latest documentation for the **master** branch
84-
is at: <https://master-api.flutter.dev>
84+
is at: <https://main-api.flutter.dev>
8585

8686
### Changing channels
8787

src/release/whats-new.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ and [Introducing Dart 3 alpha][].
322322
* Global selection improvements - ChunHeng Tai (chtai)
323323
* magnification property (who owns this? - I asked Justin)
324324
No docs yet (other than API docs)
325-
https://master-api.flutter.dev/flutter/material/TextField/magnifierConfiguration.html
325+
https://main-api.flutter.dev/flutter/material/TextField/magnifierConfiguration.html
326326
* Implementing iOS PlatformView BackdropFilter. (Blur) - Leigha and Chris Yang
327327
https://docs.google.com/document/d/1V7Jc_RGaknrBBPPBBKB8lT7f3PKhYr8sin35MSMFAf4/edit
328328
* Memory management updates - Zach Anderson

tool/config/linkcheck-skip-list.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# sometimes too long for Travis, so it is simpler just to skip all site links.
77

88
https://github.com
9-
https://master-api.flutter.dev
9+
https://main-api.flutter.dev
1010

1111
# -----------------------------------------------------------------------------
1212
# Valid external links that result in connection failures too often:

0 commit comments

Comments
 (0)