Migrate the flutter/flutter wiki to docs/unsorted_wiki (#148562)

Part of https://github.com/flutter/flutter/issues/145009
This is part one of the wiki migration.
This moves all wiki pages wholesale into the new docs directory with no changes.
Follow up PRs will sort them, updating breadcrumbs and links.
This commit is contained in:
Kate Lovett
2024-05-17 17:12:18 -05:00
committed by GitHub
parent 8317bc2b16
commit ed8eaf1b84
174 changed files with 34483 additions and 1 deletions

View File

@@ -1240,7 +1240,10 @@ Future<void> verifyIssueLinks(String workingDirectory) async {
final Set<String> suggestions = <String>{};
final List<File> files = await _gitFiles(workingDirectory);
for (final File file in files) {
if (path.basename(file.path).endsWith('_test.dart') || path.basename(file.path) == 'analyze.dart') {
if (path.basename(file.path).endsWith('_test.dart')
|| path.basename(file.path) == 'analyze.dart'
// TODO(Piinks): Disables checks in docs/unsorted, enabling unchanged initial migration, https://github.com/flutter/flutter/issues/145009
|| file.path.contains('unsorted_wiki')) {
continue; // Skip tests, they're not public-facing.
}
final Uint8List bytes = file.readAsBytesSync();
@@ -1322,6 +1325,10 @@ Future<void> verifyRepositoryLinks(String workingDirectory) async {
final Set<String> suggestions = <String>{};
final List<File> files = await _allFiles(workingDirectory, null, minimumMatches: 10).toList();
for (final File file in files) {
// TODO(Piinks): Disables checks in docs/unsorted, enabling unchanged initial migration, https://github.com/flutter/flutter/issues/145009
if (file.path.contains('unsorted_wiki')) {
continue;
}
final Uint8List bytes = file.readAsBytesSync();
// We allow invalid UTF-8 here so that binaries don't trip us up.
// There's a separate test in this file that verifies that all text