Fix the path where footer is written. (#114469)

The footer file was being written in dev/bot instead of dev/docs.

Bug: https://github.com/flutter/flutter/issues/113805
This commit is contained in:
godofredoc 2022-11-03 11:15:07 -07:00 committed by GitHub
parent 33b81ed954
commit 0186b1496b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -65,7 +65,7 @@ Future<void> postProcess() async {
final File versionFile = File('version');
final String version = versionFile.readAsStringSync();
// Recreate footer
final String publishPath = path.join(docsPath, 'doc', 'api', 'footer.js');
final String publishPath = path.join(docsPath, '..', 'docs', 'doc', 'flutter', 'footer.js');
final File footerFile = File(publishPath)..createSync(recursive: true);
createFooter(footerFile, version);
}