Skip to content

Commit 096cdc3

Browse files
authored
Update links and surrounding text for new main-api docs (#138602)
Issue reference: flutter/flutter#133877
1 parent a8fbd27 commit 096cdc3

File tree

7 files changed

+16
-16
lines changed

7 files changed

+16
-16
lines changed

dev/benchmarks/macrobenchmarks/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,4 +145,4 @@ cd dev/devicelab
145145
File `test/frame_policy.dart` and its driving script `test_driver/frame_policy_test.dart`
146146
are used for testing [`fullyLive`](https://api.flutter.dev/flutter/flutter_test/LiveTestWidgetsFlutterBindingFramePolicy-class.html)
147147
and [`benchmarkLive`](https://api.flutter.dev/flutter/flutter_test/LiveTestWidgetsFlutterBindingFramePolicy-class.html)
148-
policies in terms of its effect on [`WidgetTester.handlePointerEventRecord`](https://master-api.flutter.dev/flutter/flutter_test/WidgetTester/handlePointerEventRecord.html).
148+
policies in terms of its effect on [`WidgetTester.handlePointerEventRecord`](https://api.flutter.dev/flutter/flutter_test/WidgetTester/handlePointerEventRecord.html).

dev/bots/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ request permission.
1515

1616
The [Cirrus](https://cirrus-ci.org)-based bots run the [`test.dart`](test.dart)
1717
script for each PR and submission. This does testing for the tools, for the
18-
framework, and (for submitted changes only) rebuilds and updates the master
19-
branch API docs [staging site](https://master-docs.flutter.dev/).
18+
framework, and (for submitted changes only) rebuilds and updates the main
19+
branch API docs [staging site](https://main-api.flutter.dev/).
2020
For tagged dev and beta builds, it also builds and deploys the gallery app to
2121
the app stores. It is configured by the [.cirrus.yml](/.cirrus.yml).
2222

dev/docs/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ the following locations:
1515

1616
* [flutter.dev](https://flutter.dev) (main Flutter site)
1717
* [Stable channel API Docs](https://api.flutter.dev)
18-
* [Main channel API Docs](https://master-api.flutter.dev)
18+
* [Main channel API Docs](https://main-api.flutter.dev)
1919
* Engine Embedder API documentation:
2020
* [Android Embedder](../javadoc/index.html)
2121
* [iOS Embedder](../ios-embedder/index.html)
@@ -39,16 +39,16 @@ to 900 MB.**
3939
Offline HTML documentation ZIP bundles:
4040

4141
* [Stable channel](https://api.flutter.dev/offline/flutter.docs.zip)
42-
* [Master channel](https://master-api.flutter.dev/offline/flutter.docs.zip)
42+
* [Main channel](https://main-api.flutter.dev/offline/flutter.docs.zip)
4343

4444
Or, you can add Flutter to the open-source [Zeal](https://zealdocs.org/) app
4545
using the following XML configurations. Follow the instructions in the
4646
application for adding a feed.
4747

4848
* Stable channel Zeal XML configuration URL:
4949
<https://api.flutter.dev/offline/flutter.xml>
50-
* Master channel Zeal XML configuration URL:
51-
<https://master-api.flutter.dev/offline/flutter.xml>
50+
* Main channel Zeal XML configuration URL:
51+
<https://main-api.flutter.dev/offline/flutter.xml>
5252

5353
## Importing a Library
5454

dev/tools/create_api_docs.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ class Configurator {
341341
final String branch = FlutterInformation.instance.getBranchName();
342342
final String metadata = template.replaceAll(
343343
'{SITE_URL}',
344-
branch == 'stable' ? 'https://api.flutter.dev/' : 'https://master-api.flutter.dev/',
344+
branch == 'stable' ? 'https://api.flutter.dev/' : 'https://main-api.flutter.dev/',
345345
);
346346
metadataPath.parent.create(recursive: true);
347347
metadataPath.writeAsStringSync(metadata);
@@ -412,7 +412,7 @@ class Configurator {
412412
final bool isStable = platform.environment['LUCI_BRANCH'] == 'stable';
413413
offlineDir.childFile('flutter.xml').writeAsStringSync('<entry>\n'
414414
' <version>${FlutterInformation.instance.getFlutterVersion()}</version>\n'
415-
' <url>https://${isStable ? '' : 'master-'}api.flutter.dev/offline/flutter.docset.tar.gz</url>\n'
415+
' <url>https://${isStable ? '' : 'main-'}api.flutter.dev/offline/flutter.docset.tar.gz</url>\n'
416416
'</entry>\n');
417417
}
418418

examples/api/lib/widgets/interactive_viewer/interactive_viewer.builder.0.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ class _TableBuilder extends StatelessWidget {
122122
return SizedBox(
123123
// Stack needs constraints, even though we then Clip.none outside of them.
124124
// InteractiveViewer.builder always sets constrained to false, giving infinite constraints to the child.
125-
// See: https://master-api.flutter.dev/flutter/widgets/InteractiveViewer/constrained.html
125+
// See: https://api.flutter.dev/flutter/widgets/InteractiveViewer/constrained.html
126126
width: 1,
127127
height: 1,
128128
child: Stack(

packages/flutter_tools/lib/src/commands/create.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ class CreateCommand extends CreateBase {
101101
/// The hostname for the Flutter docs for the current channel.
102102
String get _snippetsHost => globals.flutterVersion.channel == 'stable'
103103
? 'api.flutter.dev'
104-
: 'master-api.flutter.dev';
104+
: 'main-api.flutter.dev';
105105

106106
Future<String?> _fetchSampleFromServer(String sampleId) async {
107107
// Sanity check the sampleId

packages/flutter_tools/test/commands.shard/permeable/create_test.dart

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2035,7 +2035,7 @@ void main() {
20352035
return () {
20362036
return FakeHttpClient.list(<FakeRequest>[
20372037
FakeRequest(
2038-
Uri.parse('https://master-api.flutter.dev/snippets/foo.bar.Baz.dart'),
2038+
Uri.parse('https://main-api.flutter.dev/snippets/foo.bar.Baz.dart'),
20392039
response: FakeResponse(body: utf8.encode('void main() {}')),
20402040
),
20412041
]);
@@ -2058,7 +2058,7 @@ void main() {
20582058
return () {
20592059
return FakeHttpClient.list(<FakeRequest>[
20602060
FakeRequest(
2061-
Uri.parse('https://master-api.flutter.dev/snippets/foo.bar.Baz.dart'),
2061+
Uri.parse('https://main-api.flutter.dev/snippets/foo.bar.Baz.dart'),
20622062
response: FakeResponse(body: utf8.encode('void main() { String? foo; print(foo); } // ignore: avoid_print')),
20632063
),
20642064
]);
@@ -2085,7 +2085,7 @@ void main() {
20852085
return () {
20862086
return FakeHttpClient.list(<FakeRequest>[
20872087
FakeRequest(
2088-
Uri.parse('https://master-api.flutter.dev/snippets/index.json'),
2088+
Uri.parse('https://main-api.flutter.dev/snippets/index.json'),
20892089
response: FakeResponse(body: utf8.encode(samplesIndexJson)),
20902090
),
20912091
]);
@@ -2114,7 +2114,7 @@ void main() {
21142114
return () {
21152115
return FakeHttpClient.list(<FakeRequest>[
21162116
FakeRequest(
2117-
Uri.parse('https://master-api.flutter.dev/snippets/index.json'),
2117+
Uri.parse('https://main-api.flutter.dev/snippets/index.json'),
21182118
),
21192119
]);
21202120
};
@@ -2138,7 +2138,7 @@ void main() {
21382138
return () {
21392139
return FakeHttpClient.list(<FakeRequest>[
21402140
FakeRequest(
2141-
Uri.parse('https://master-api.flutter.dev/snippets/index.json'),
2141+
Uri.parse('https://main-api.flutter.dev/snippets/index.json'),
21422142
response: const FakeResponse(statusCode: HttpStatus.notFound),
21432143
),
21442144
]);

0 commit comments

Comments
 (0)